00001
00002
00003
00004
00005
00006
00007 #ifdef STORM_USEF
00008 #include "rtmraputscalcoef_.h"
00009 #include "drtmraputscalcoef_.h"
00010 #include "irtmraputscalcoef_.h"
00011 #include "artmraputscalcoef1_.h"
00012 #include "dartmraputscalcoef1_.h"
00013 #include "iartmraputscalcoef1_.h"
00014 #endif
00015
00016 void rtmraputscalcoef(
00017 const int& Msize,
00018 const int& mmax,
00019 const int& mrastep,
00020 float* mracoef,
00021 const int& m,
00022 const float& scalcoef
00023 ) {
00024 #ifdef STORM_USEF
00025 rtmraputscalcoef_( &Msize, &mmax, &mrastep, mracoef, &m, &scalcoef );
00026 #else
00027 if ( ( m >= 0 ) && ( m <= mmax ) ) { mracoef[2*m] = scalcoef; }
00028 #endif
00029 }
00030
00031
00032 void rtmraputscalcoef(
00033 const int& Msize,
00034 const int& mmax,
00035 const int& mrastep,
00036 double* mracoef,
00037 const int& m,
00038 const double& scalcoef
00039 ) {
00040 #ifdef STORM_USEF
00041 drtmraputscalcoef_( &Msize, &mmax, &mrastep, mracoef, &m, &scalcoef);
00042 #else
00043 if ( ( m >= 0 ) && ( m <= mmax ) ) { mracoef[2*m] = scalcoef; }
00044 #endif
00045 }
00046
00047
00048 void rtmraputscalcoef(
00049 const int& Msize,
00050 const int& mmax,
00051 const int& mrastep,
00052 int* mracoef,
00053 const int& m,
00054 const int& scalcoef
00055 ) {
00056 #ifdef STORM_USEF
00057 irtmraputscalcoef_( &Msize, &mmax, &mrastep, mracoef, &m, &scalcoef);
00058 #else
00059 if ( ( m >= 0 ) && ( m <= mmax ) ) { mracoef[2*m] = scalcoef; }
00060 #endif
00061 }
00062
00063 void rtmraputscalcoef(
00064 const int& Asize,
00065 const int& Msize,
00066 const int& amax,
00067 const int& mmax,
00068 const int& mrastep,
00069 float* mracoef,
00070 const int& a,
00071 const int& m,
00072 const float& scalcoef
00073 ) {
00074 #ifdef STORM_USEF
00075 artmraputscalcoef1_(
00076 &Asize, &Msize,
00077 &amax, &mmax,
00078 &mrastep, mracoef,
00079 &a,&m, &scalcoef
00080 );
00081 #else
00082 if ( ( a >= 0 ) && ( a <= amax ) && ( m >= 0 ) && ( m <= mmax ) ) {
00083 mracoef[ Msize*2*a + 2*m ] = scalcoef;
00084 }
00085 #endif
00086 }
00087
00088
00089 void rtmraputscalcoef(
00090 const int& Asize,
00091 const int& Msize,
00092 const int& amax,
00093 const int& mmax,
00094 const int& mrastep,
00095 double* mracoef,
00096 const int& a,
00097 const int& m,
00098 const double& scalcoef
00099 ) {
00100 #ifdef STORM_USEF
00101 dartmraputscalcoef1_(
00102 &Asize, &Msize,
00103 &amax, &mmax,
00104 &mrastep, mracoef,
00105 &a, &m, &scalcoef
00106 );
00107 #else
00108 if ((a>=0)&&(a<=amax)&&(m>=0)&&(m<=mmax)) {
00109 mracoef[ Msize*2*a + 2*m ]=scalcoef;
00110 }
00111 #endif
00112 }
00113
00114
00115 void rtmraputscalcoef(
00116 const int& Asize,
00117 const int& Msize,
00118 const int& amax,
00119 const int& mmax,
00120 const int& mrastep,
00121 int* mracoef,
00122 const int& a,
00123 const int& m,
00124 const int& scalcoef
00125 ) {
00126 #ifdef STORM_USEF
00127 iartmraputscalcoef1_(
00128 &Asize, &Msize,
00129 &amax, &mmax,
00130 &mrastep, mracoef,
00131 &a, &m, &scalcoef
00132 );
00133 #else
00134 if ((a>=0)&&(a<=amax)&&(m>=0)&&(m<=mmax)) {
00135 mracoef[ Msize*2*a + 2*m ]=scalcoef;
00136 }
00137 #endif
00138 }
00139