Changeset 1921 for LMDZ5/branches/testing/libf/phylmd/moy_undefSTD.F
- Timestamp:
- Dec 20, 2013, 10:04:40 AM (10 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 1912-1920
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/moy_undefSTD.F
r1910 r1921 2 2 ! $Id$ 3 3 ! 4 SUBROUTINE moy_undefSTD(itap, freq_outNMC,freq_moyNMC)4 SUBROUTINE moy_undefSTD(itap,itapm1) 5 5 USE netcdf 6 6 USE dimphy 7 USE phys_state_var_mod ! Variables sauvegardees de la physique 7 USE phys_state_var_mod 8 USE phys_cal_mod, only : mth_len 8 9 IMPLICIT none 10 include "clesphys.h" 9 11 c 10 12 c==================================================================== … … 33 35 c INTEGER nlevSTD, klevSTD, itap 34 36 c PARAMETER(klevSTD=17) 35 INTEGER itap 37 INTEGER itap, itapm1 36 38 c 37 39 c variables locales … … 40 42 INTEGER i, k, n 41 43 c REAL dtime, freq_outNMC(nout), freq_moyNMC(nout) 42 REAL freq_outNMC(nout), freq_moyNMC(nout) 44 c REAL freq_outNMC(nout), freq_calNMC(nout) 45 REAL freq_moyNMC(nout) 43 46 c 44 47 c variables Output … … 46 49 c REAL tsumSTD(klon,klevSTD,nout) 47 50 c 51 REAL un_jour 52 PARAMETER(un_jour=86400.) 48 53 REAL missing_val 49 54 c … … 51 56 c 52 57 DO n=1, nout 58 IF(freq_outNMC(n).LT.0) THEN 59 freq_moyNMC(n)=(mth_len*un_jour)/freq_calNMC(n) 60 c print*,'moy_undefSTD n freq_out freq_moy =', 61 c $n,freq_moyNMC(n) 62 ELSE 63 freq_moyNMC(n)=freq_outNMC(n)/freq_calNMC(n) 64 ENDIF 53 65 c 54 c calcul 1 fois pa r jour66 c calcul 1 fois pas mois, 1 fois par jour ou toutes les 6h 55 67 c 56 IF(MOD(itap,NINT(freq_outNMC(n)/dtime)).EQ.0) THEN 68 IF(n.EQ.1.AND.itap.EQ.itapm1.OR. 69 $n.GT.1.AND.MOD(itap,NINT(freq_outNMC(n)/dtime)).EQ.0) THEN 70 c 71 c print*,'moy_undefSTD n itap itapm1',n,itap,itapm1 57 72 c 58 73 DO k=1, nlevSTD … … 61 76 tsumSTD(i,k,n)=tsumSTD(i,k,n)/ 62 77 $ (freq_moyNMC(n)-tnondef(i,k,n)) 63 cIM BEG64 78 usumSTD(i,k,n)=usumSTD(i,k,n)/ 65 79 $ (freq_moyNMC(n)-tnondef(i,k,n)) … … 96 110 O3daysumSTD(i,k,n)=O3daysumSTD(i,k,n)/ 97 111 $ (freq_moyNMC(n)-tnondef(i,k,n)) 98 cIM END99 112 ELSE 100 113 tsumSTD(i,k,n)=missing_val
Note: See TracChangeset
for help on using the changeset viewer.