Changeset 723 for LMDZ4/branches/LMDZ4_V2_patch/libf
- Timestamp:
- Oct 6, 2006, 1:06:22 PM (18 years ago)
- Location:
- LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/clesphys.h
r652 r723 26 26 LOGICAL ok_isccp, ok_regdyn 27 27 REAL lonmin_ins, lonmax_ins, latmin_ins, latmax_ins 28 INTEGERecrit_ins, ecrit_hf, ecrit_hf2mth, ecrit_day29 INTEGERecrit_mth, ecrit_tra, ecrit_reg28 REAL ecrit_ins, ecrit_hf, ecrit_hf2mth, ecrit_day 29 REAL ecrit_mth, ecrit_tra, ecrit_reg 30 30 31 31 COMMON/clesphys/cycle_diurne, soil_model, new_oliq, -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_bilKP_ave.h
r644 r723 5 5 c 6 6 zsto = dtime 7 zout = dtime * FLOAT(ecrit_day)7 zout = dtime * ecrit_day 8 8 typeval=tave 9 9 c -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histISCCP.h
r644 r723 47 47 . lmaxm1, cldtopres, nvert,'down') 48 48 c 49 49 IF(type_run.EQ."ENSP".OR.type_run.EQ."CLIM") THEN 50 50 c 51 51 c variables a ecrire … … 63 63 . "ave(X)", zstophy,zout) 64 64 c 65 65 ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN 66 66 c 67 67 DO k=1, kmaxm1 … … 81 81 . "ave(X)", zstophy,zout) 82 82 c 83 83 ENDIF 84 84 c 85 85 CALL histend(nid_isccp) -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histday.h
r644 r723 5 5 c 6 6 zstophy = dtime 7 zstoday= dtime * FLOAT(ecrit_day)8 zout = dtime * FLOAT(ecrit_day)7 zstoday= dtime * ecrit_day 8 zout = dtime * ecrit_day 9 9 c 10 10 idayref = day_ref -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histday_seri.h
r644 r723 2 2 c $Header$ 3 3 c 4 IF (type_run.EQ."AMIP") THEN4 IF (type_run.EQ."AMIP") THEN 5 5 c 6 6 zstophy = dtime 7 zout = dtime * FLOAT(ecrit_day)7 zout = dtime * ecrit_day 8 8 c 9 9 idayref = day_ref -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histhf.h
r644 r723 5 5 IF (ok_hf) THEN 6 6 c 7 zstohf = dtime * FLOAT(ecrit_hf)7 zstohf = dtime * ecrit_hf 8 8 zstophy = dtime 9 zstoday = dtime * FLOAT(ecrit_day)10 zout = dtime * FLOAT(ecrit_hf)9 zstoday = dtime * ecrit_day 10 zout = dtime * ecrit_hf 11 11 c 12 12 idayref = day_ref … … 190 190 ENDIF !lev_histhf.GE.4 191 191 c 192 c 192 193 ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN 193 194 c -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histhf3d.h
r644 r723 8 8 cIM zstohf = dtime * FLOAT(ecrit_hf) 9 9 cIM zout = dtime * FLOAT(ecrit_hf) 10 zstohf = dtime * FLOAT(ecrit_hf)11 zout = dtime * FLOAT(ecrit_hf)10 zstohf = dtime * ecrit_hf 11 zout = dtime * ecrit_hf 12 12 c 13 13 c PRINT*, 'La frequence de sortie hf3d est de ', ecrit_hf -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histmth.h
r653 r723 5 5 c 6 6 zstophy = dtime 7 zstomth = dtime * FLOAT(ecrit_mth)!valeurs mensuelles "instantannees"7 zstomth = dtime * ecrit_mth !valeurs mensuelles "instantannees" 8 8 zstorad = dtime * FLOAT(radpas) !variables stockees toutes les 2h 9 zstohf = dtime * FLOAT(ecrit_hf)!variables stockees toutes les 6h10 zout = dtime * FLOAT(ecrit_mth)!frequence des sorties : 1 val. par mois9 zstohf = dtime * ecrit_hf !variables stockees toutes les 6h 10 zout = dtime * ecrit_mth !frequence des sorties : 1 val. par mois 11 11 c 12 12 cIM PRINT*,' La zstophy,zstorad,zstohf,zstomth,zout=', -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histmthNMC.h
r644 r723 5 5 c 6 6 zstophy = dtime 7 zstohf = dtime * FLOAT(ecrit_hf)8 zstomth = dtime * FLOAT(ecrit_mth)9 zout = dtime * FLOAT(ecrit_mth)7 zstohf = dtime * ecrit_hf 8 zstomth = dtime * ecrit_mth 9 zout = dtime * ecrit_mth 10 10 c 11 11 idayref = day_ref -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histrac.h
r646 r723 39 39 40 40 zsto = pdtphys 41 zout = pdtphys * FLOAT(ecrit_tra)41 zout = pdtphys * ecrit_tra 42 42 c 43 43 CALL histdef(nid_tra, "phis", "Surface geop. height", "-", -
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 -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/physiq.F
r656 r723 38 38 c CLEFS CPP POUR LES IO 39 39 c ===================== 40 #define histins 40 41 #define histhf 41 42 #define histday 42 43 #define histmth 43 #define histins44 44 #define histISCCP 45 45 #define histREGDYN … … 456 456 INTEGER nbapp_isccp,isccppas 457 457 458 #undef histISCCP459 #define histISCCP460 c data ok_isccp,ecrit_isccp/.true.,0.125/461 c data ok_isccp,ecrit_isccp/.true.,1./462 cIM 190504 data ok_isccp/.true./463 cIM 190504 #else464 cIM 190504 data ok_isccp/.false./465 cIM 190504 #endif466 467 458 c sorties statistiques regime dynamique 468 459 c logical ok_regdyn … … 471 462 c save ok_regdyn, ecrit_regdyn, nid_regdyn 472 463 save nid_regdyn 473 474 #undef histREGDYN475 #define histREGDYN476 cIM 190504 #ifdef histREGDYN477 c data ok_regdyn,ecrit_regdyn/.true.,0.125/478 c data ok_regdyn,ecrit_regdyn/.true.,1./479 cIM 190504 data ok_regdyn/.true./480 cIM 190504 #else481 cIM 190504 data ok_regdyn/.false./482 cIM 190504 #endif483 464 484 465 REAL zx_tau(kmaxm1), zx_pc(lmaxm1), zx_o500(iwmax) … … 1520 1501 #endif 1521 1502 1522 c#undef histmthNMC1523 c#define histmthNMC1524 1503 #ifdef histmthNMC 1525 1504 #include "ini_histmthNMC.h" … … 2747 2726 c==================================================================== 2748 2727 C 2749 call phytrac (iflag_con, 2750 I rnpb, 2728 call phytrac (rnpb, 2751 2729 I itap, 2752 2730 I julien, -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/phytrac.F
r644 r723 4 4 c 5 5 c 6 SUBROUTINE phytrac (iflag_con, 7 I rnpb, 6 SUBROUTINE phytrac (rnpb, 8 7 I nstep, 9 8 I julien, … … 156 155 REAL flxmass_w(klon,klev) 157 156 #endif 158 integer iflag_con 157 cIM integer iflag_con 158 #include "clesphys.h" 159 159 160 160 cAA Rem : nbtr : nombre de vrais traceurs est defini dans dimphy.h … … 266 266 C Variables liees a l'ecriture de la bande histoire : phytrac.nc 267 267 c 268 269 268 cIM INTEGER ecrit_tra 269 cIM SAVE ecrit_tra 270 270 logical ok_sync 271 271 parameter (ok_sync = .true.) … … 387 387 if (debutphy) then 388 388 389 390 389 cIM ecrit_tra = NINT(86400./pdtphys *ecritphy) 390 cIM print*,'dans phytrac ',pdtphys,ecritphy,ecrit_tra 391 391 392 392 if(nbtr.lt.nqmax) then -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/write_histmthNMC.h
r644 r723 84 84 DO i=1, klon 85 85 IF(tnondef(i,k,3).NE.1.E+20) THEN 86 zx_tmp_fi3d(i,k) = (100.*tnondef(i,k,3))/ FLOAT(ecrit_hf2mth)86 zx_tmp_fi3d(i,k) = (100.*tnondef(i,k,3))/ecrit_hf2mth 87 87 ELSE 88 88 zx_tmp_fi3d(i,k) = 1.E+20 -
LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/write_histrac.h
r646 r723 6 6 ndex3d = 0 7 7 c 8 zsto = pdtphys9 zout = pdtphys * FLOAT(ecrit_tra)10 8 itau_w = itau_phy + nstep 11 12 9 13 i = NINT(zout/zsto)14 10 CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) 15 11 CALL histwrite(nid_tra,"phis",itau_w,zx_tmp_2d,iim*(jjm+1),ndex2d)
Note: See TracChangeset
for help on using the changeset viewer.