Changeset 1234 for LMDZ4/branches
- Timestamp:
- Aug 28, 2009, 11:26:56 AM (15 years ago)
- Location:
- LMDZ4/branches/LMDZ4-dev/libf/phylmd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/phylmd/moy_undefSTD.F
r776 r1234 5 5 $ dtime,ecrit_day,ecrit_mth,ecrit_hf2mth, 6 6 $ tnondef,tsumSTD) 7 USE netcdf 7 8 USE dimphy 8 9 IMPLICIT none … … 29 30 cym#include "dimphy.h" 30 31 c 32 c 31 33 c variables Input 32 34 INTEGER nlevSTD, klevSTD, itap … … 42 44 REAL tsumSTD(klon,klevSTD,nout) 43 45 c 46 REAL missing_val 47 c 48 missing_val=nf90_fill_real 49 c 44 50 c calcul 1 fois par jour 45 51 c … … 51 57 $ (ecrit_day/dtime-tnondef(i,k,1)) 52 58 ELSE 53 tsumSTD(i,k,1)= 1.E+2059 tsumSTD(i,k,1)=missing_val 54 60 ENDIF !tnondef 55 61 ENDDO !i … … 66 72 $ (ecrit_mth/dtime-tnondef(i,k,2)) 67 73 ELSE 68 tsumSTD(i,k,2)= 1.E+2074 tsumSTD(i,k,2)=missing_val 69 75 ENDIF !tnondef 70 76 c … … 73 79 $ (ecrit_hf2mth-tnondef(i,k,3)) 74 80 ELSE 75 tsumSTD(i,k,3)= 1.E+2081 tsumSTD(i,k,3)=missing_val 76 82 ENDIF !tnondef 77 83 c -
LMDZ4/branches/LMDZ4-dev/libf/phylmd/plevel.F
r866 r1234 7 7 c================================================================ 8 8 c================================================================ 9 USE netcdf 9 10 USE dimphy 10 11 IMPLICIT none … … 54 55 c$OMP THREADPRIVATE(first) 55 56 INTEGER i, k 57 c 58 REAL missing_val 59 c 60 missing_val=nf90_fill_real 56 61 c 57 62 if (first) then … … 119 124 do i = 1, klon 120 125 if (pgcm(i,1).LT.pres) THEN 121 c Qpres(i)=1e33 122 Qpres(i)=1e+20 126 Qpres(i)=missing_val 123 127 endif 124 128 enddo -
LMDZ4/branches/LMDZ4-dev/libf/phylmd/plevel_new.F
r1230 r1234 7 7 c================================================================ 8 8 c================================================================ 9 USE netcdf 9 10 USE dimphy 10 11 IMPLICIT none … … 55 56 c$OMP THREADPRIVATE(first) 56 57 INTEGER i, k 58 c 59 REAL missing_val 60 c 61 missing_val=nf90_fill_real 57 62 c 58 63 if (first) then … … 120 125 DO i=1,klon 121 126 IF (pgcm(i,1).LT.pres(nlev)) THEN 122 c Qpres(i)=1e33 123 Qpres(i,nlev) = 1e+20 127 Qpres(i,nlev) = missing_val 124 128 ELSE 125 129 Qpres(i,nlev) = -
LMDZ4/branches/LMDZ4-dev/libf/phylmd/undefSTD.F
r776 r1234 5 5 $ dtime,ecrit_hf, 6 6 $ oknondef,tnondef,tsumSTD) 7 USE netcdf 7 8 USE dimphy 8 9 IMPLICIT none … … 32 33 cym#include "dimphy.h" 33 34 c variables Input 35 c 34 36 INTEGER nlevSTD, klevSTD, itap 35 37 PARAMETER(klevSTD=17) … … 45 47 REAL tnondef(klon,klevSTD,nout) 46 48 c 49 REAL missing_val 50 c 51 missing_val=nf90_fill_real 52 c 47 53 c calcul variables tous les pas de temps de la physique 48 54 c 49 55 DO k=1, nlevSTD 50 56 DO i=1, klon 51 IF(tlevSTD(i,k).EQ. 1E+20) THEN57 IF(tlevSTD(i,k).EQ.missing_val) THEN 52 58 IF(oknondef(i,k,1)) THEN 53 59 tnondef(i,k,1)=tnondef(i,k,1)+1. … … 58 64 ENDIF !oknondef(i,k) 59 65 c 60 ELSE IF(tlevSTD(i,k).NE. 1E+20) THEN66 ELSE IF(tlevSTD(i,k).NE.missing_val) THEN 61 67 tsumSTD(i,k,1)=tsumSTD(i,k,1)+tlevSTD(i,k) 62 68 tsumSTD(i,k,2)=tsumSTD(i,k,2)+tlevSTD(i,k) … … 71 77 DO k=1, nlevSTD 72 78 DO i=1, klon 73 IF(tlevSTD(i,k).EQ. 1E+20) THEN79 IF(tlevSTD(i,k).EQ.missing_val) THEN 74 80 IF(oknondef(i,k,3)) THEN 75 81 tnondef(i,k,3)=tnondef(i,k,3)+1. 76 82 ENDIF !oknondef(i,k) 77 83 c 78 ELSE IF(tlevSTD(i,k).NE. 1E+20) THEN84 ELSE IF(tlevSTD(i,k).NE.missing_val) THEN 79 85 tsumSTD(i,k,3)=tsumSTD(i,k,3)+tlevSTD(i,k) 80 86 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.