Changeset 723 for LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/moy_undefSTD.F
- Timestamp:
- Oct 6, 2006, 1:06:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/moy_undefSTD.F
r644 r723 1 1 SUBROUTINE moy_undefSTD(nlevSTD,itap, 2 $ ecrit_day,ecrit_mth,ecrit_hf2mth,2 $ dtime,ecrit_day,ecrit_mth,ecrit_hf2mth, 3 3 $ tnondef,tsumSTD) 4 4 IMPLICIT none … … 28 28 INTEGER nlevSTD, klevSTD, itap 29 29 PARAMETER(klevSTD=17) 30 INTEGERecrit_day, ecrit_mth, ecrit_hf2mth30 REAL dtime, ecrit_day, ecrit_mth, ecrit_hf2mth 31 31 c 32 32 c variables locales … … 40 40 c calcul 1 fois par jour 41 41 c 42 IF(MOD(itap, ecrit_day).EQ.0) THEN42 IF(MOD(itap,NINT(ecrit_day/dtime)).EQ.0) THEN 43 43 DO k=1, nlevSTD 44 44 DO i=1, klon 45 IF(tnondef(i,k,1).NE. FLOAT(ecrit_day)) THEN45 IF(tnondef(i,k,1).NE.(ecrit_day/dtime)) THEN 46 46 tsumSTD(i,k,1)=tsumSTD(i,k,1)/ 47 $ ( FLOAT(ecrit_day)-tnondef(i,k,1))47 $ (ecrit_day/dtime-tnondef(i,k,1)) 48 48 ELSE 49 49 tsumSTD(i,k,1)=1.E+20 … … 55 55 c calcul 1 fois par mois 56 56 c 57 IF(MOD(itap, ecrit_mth).EQ.0) THEN57 IF(MOD(itap,NINT(ecrit_mth/dtime)).EQ.0) THEN 58 58 DO k=1, nlevSTD 59 59 DO i=1, klon 60 IF(tnondef(i,k,2).NE. FLOAT(ecrit_mth)) THEN60 IF(tnondef(i,k,2).NE.ecrit_mth/dtime) THEN 61 61 tsumSTD(i,k,2)=tsumSTD(i,k,2)/ 62 $ ( FLOAT(ecrit_mth)-tnondef(i,k,2))62 $ (ecrit_mth/dtime-tnondef(i,k,2)) 63 63 ELSE 64 64 tsumSTD(i,k,2)=1.E+20 65 65 ENDIF !tnondef 66 66 c 67 IF(tnondef(i,k,3).NE. FLOAT(ecrit_hf2mth)) THEN67 IF(tnondef(i,k,3).NE.NINT(ecrit_hf2mth)) THEN 68 68 tsumSTD(i,k,3)=tsumSTD(i,k,3)/ 69 $ ( FLOAT(ecrit_hf2mth)-tnondef(i,k,3))69 $ (ecrit_hf2mth-tnondef(i,k,3)) 70 70 ELSE 71 71 tsumSTD(i,k,3)=1.E+20
Note: See TracChangeset
for help on using the changeset viewer.