00001 c artrsmrascala1_.F
00002 c*********************************************************************
00003 c* (c) Copyright 2000-2002 Brown Deer Technology, LLC.
00004 c* All rights reserved.
00005 c*********************************************************************
00006
00007 subroutine artrsmrascala1(
00008 & Asize,Msize
00009 & ,amax,mmax
00010 & ,mrastep,mracoef
00011 & ,mracoefrs
00012 & ,a,m,scala
00013 & )
00014
00015 implicit none
00016
00017 c ****************************************
00018 c ***** COMMON BLOCKS AND PARAMETERS *****
00019 c ****************************************
00020
00021 #include "stormdef.h"
00022 real INVSQRT2
00023 parameter( INVSQRT2 = STORMDEF_MATHCONST_INVSQRT2 )
00024
00025 c *******************************
00026 c ***** VARIABLES EXCHANGED *****
00027 c *******************************
00028
00029 integer Asize
00030 integer Msize
00031 integer amax
00032 integer mmax
00033 integer mrastep
00034 real mracoef(0:1,0:Msize-1,0:Asize-1)
00035 real mracoefrs(0:1,0:Msize-1,0:Asize-1)
00036 integer a
00037 integer m
00038 real scala
00039
00040 c ****************************
00041 c ***** LOCAL VARIABLES ******
00042 c ****************************
00043
00044 c ******************************
00045 c ***** EXTERNAL FUNCTIONS *****
00046 c ******************************
00047
00048 c if ((a.ge.0).and.(a.le.amax).and.(m.ge.0).and.(m.le.mmax)) then
00049 scala=mracoef(0,m,a)*INVSQRT2**(m)
00050 c else
00051 c scala=1.0/0.0
00052 c endif
00053
00054 return
00055 end
00056 c********************************************************