Changeset 102
- Timestamp:
- Mar 24, 2011, 11:46:27 AM (14 years ago)
- Location:
- trunk/libf
- Files:
-
- 19 deleted
- 36 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/libf/phytitan/YOMCST.h
r97 r102 10 10 REAL RDAY,REA,REPSM,RSIYEA,RSIDAY,ROMEGA 11 11 ! A1.1.bis Constantes concernant l'orbite de la Terre: 12 REAL ::R_ecc, R_peri, R_incl12 REAL R_ecc, R_peri, R_incl 13 13 ! A1.2 Geoide 14 14 REAL RA,RG,R1SA 15 15 ! A1.3 Radiation 16 ! REAL ::RSIGMA,RI016 ! REAL RSIGMA,RI0 17 17 REAL RSIGMA 18 18 ! A1.4 Thermodynamic gas phase … … 31 31 ! 32 32 COMMON/YOMCST/RPI ,RCLUM, RHPLA, RKBOL, RNAVO ,RDAY ,REA & 33 & ,REPSM ,RSIYEA,RSIDAY,ROMEGA , R_ecc, R_peri, R_incl ,&33 & ,REPSM ,RSIYEA,RSIDAY,ROMEGA , R_ecc, R_peri, R_incl & 34 34 & ,RA ,RG ,R1SA & 35 35 & ,RSIGMA,R ,RMD ,RMV ,RD ,RV ,RCPD ,RCPV,RCVD & -
trunk/libf/phytitan/aaam_bud.F
r3 r102 2 2 i rea,rg,ome, 3 3 i plat,plon,phis, 4 i dragu,liftu, phyu,5 i dragv,liftv, phyv,4 i dragu,liftu,clu, 5 i dragv,liftv,clv, 6 6 i p, u, v) 7 7 c 8 use dimphy 8 9 implicit none 9 10 c====================================================================== … … 17 18 C C ra,rg,romega, 18 19 C C rlat,rlon,pphis, 19 C C zustrdr,zustrli,zustr ph,20 C C zvstrdr,zvstrli,zvstr ph,20 C C zustrdr,zustrli,zustrcl, 21 C C zvstrdr,zvstrli,zvstrcl, 21 22 C C paprs,u,v) 22 23 C … … 39 40 c dragu---input-R-orodrag stress (zonal) 40 41 c liftu---input-R-orolift stress (zonal) 41 c phyu----input-R-Stress total de la physique(zonal)42 c clu-----input-R-Boundary layer stress (zonal) 42 43 c dragv---input-R-orodrag stress (Meridional) 43 44 c liftv---input-R-orolift stress (Meridional) 44 c phyv----input-R-Stress total de la physique(Meridional)45 c clv-----input-R-Boundary layer stress (Meridional) 45 46 c p-------input-R-Pressure (Pa) at model half levels 46 47 c u-------input-R-Horizontal wind (m/s) … … 78 79 79 80 #include "dimensions.h" 80 #include "dimphy.h"81 81 c 82 82 c ARGUMENTS … … 85 85 REAL rjour,rsec,rea,rg,ome 86 86 REAL plat(nlon),plon(nlon),phis(nlon) 87 REAL dragu(nlon),liftu(nlon), phyu(nlon)88 REAL dragv(nlon),liftv(nlon), phyv(nlon)87 REAL dragu(nlon),liftu(nlon),clu(nlon) 88 REAL dragv(nlon),liftv(nlon),clv(nlon) 89 89 REAL p(nlon,nlev+1), u(nlon,nlev), v(nlon,nlev) 90 90 c … … 148 148 ssou(i,1)=dragu(l)+liftu(l) 149 149 ssov(i,1)=dragv(l)+liftv(l) 150 blsu(i,1)= phyu(l)-dragu(l)-liftu(l)151 blsv(i,1)= phyv(l)-dragv(l)-liftv(l)150 blsu(i,1)=clu(l) 151 blsv(i,1)=clv(l) 152 152 153 153 enddo … … 162 162 ssou(iim+1,j)=dragu(l+1)+liftu(l+1) 163 163 ssov(iim+1,j)=dragv(l+1)+liftv(l+1) 164 blsu(iim+1,j)= phyu(l+1)-dragu(l+1)-liftu(l+1)165 blsv(iim+1,j)= phyv(l+1)-dragv(l+1)-liftv(l+1)164 blsu(iim+1,j)=clu(l+1) 165 blsv(iim+1,j)=clv(l+1) 166 166 zlon(iim+1)=-plon(l+1)*xpi/180. 167 167 zlat(j)=plat(l+1)*xpi/180. … … 182 182 ssou(i,j)=dragu(l)+liftu(l) 183 183 ssov(i,j)=dragv(l)+liftv(l) 184 blsu(i,j)= phyu(l)-dragu(l)-liftu(l)185 blsv(i,j)= phyv(l)-dragv(l)-liftv(l)184 blsu(i,j)=clu(l) 185 blsv(i,j)=clv(l) 186 186 zlon(i)=plon(l)*xpi/180. 187 187 … … 214 214 ssou(i,jjm+1)=dragu(l)+liftu(l) 215 215 ssov(i,jjm+1)=dragv(l)+liftv(l) 216 blsu(i,jjm+1)= phyu(l)-dragu(l)-liftu(l)217 blsv(i,jjm+1)= phyv(l)-dragv(l)-liftv(l)216 blsu(i,jjm+1)=clu(l) 217 blsv(i,jjm+1)=clv(l) 218 218 ub(i,jjm+1)=ub(1,jjm+1) 219 219 vb(i,jjm+1)=vb(1,jjm+1) … … 333 333 c tmou(3)/hadley,tsso(3)/hadley,tbls(3)/hadley 334 334 100 format(F12.5,15(1x,F12.5)) 335 c 100 format(F12.5,5(1x,F12.5))335 c00 format(F12.5,5(1x,F12.5)) 336 336 337 337 write(iam+1,*)((zs(i,j),i=1,iim),j=1,jjm+1) -
trunk/libf/phytitan/ajsec.F
r3 r102 3 3 ! 4 4 ! ADAPTATION GCM POUR CP(T) 5 SUBROUTINE ajsec(paprs, pplay, ppk, tfi, ufi, vfi, nq, qfi, 5 SUBROUTINE ajsec(paprs, pplay, ppk, tfi, ufi, vfi, nq, qfi, 6 6 . d_tfi, d_ufi, d_vfi, d_qfi) 7 8 use dimphy 7 9 IMPLICIT none 8 10 c====================================================================== … … 23 25 c d_vfi-----output-R-Incrementation du vent meridien 24 26 c d_qfi-----output-R-Incrementation des traceurs 25 26 27 c====================================================================== 27 28 #include "dimensions.h" 28 #include "dimphy.h"29 29 #include "YOMCST.h" 30 30 REAL paprs(klon,klev+1), pplay(klon,klev) … … 36 36 REAL qfi(klon,klev,nq), d_qfi(klon,klev,nq) 37 37 c 38 INTEGER limbas, limhau ! les couches a ajuster 39 ccc PARAMETER (limbas=klev-3, limhau=klev) 40 PARAMETER (limbas=1, limhau=klev) 38 INTEGER,save :: limbas, limhau ! les couches a ajuster 41 39 c 42 40 REAL zh(klon,klev) … … 51 49 c Initialisation: 52 50 c 51 limbas=1 52 limhau=klev 53 53 54 DO k = 1, klev 54 55 DO i = 1, klon … … 56 57 d_ufi(i,k) = 0.0 57 58 d_vfi(i,k) = 0.0 58 59 d_qfi(i,k,:) = 0.0 59 60 zu(i,k) = ufi(i,k) 60 61 zv(i,k) = vfi(i,k) 61 62 zq(i,k,:) = qfi(i,k,:) 62 63 ENDDO 63 64 ENDDO … … 119 120 zum=0. 120 121 zvm=0. 121 122 zqm=0. 122 123 DO k = k1, k2 123 124 zalpha=zalpha+ABS(zh(i,k)-hm)*zdp(i,k) … … 125 126 zum=zum+ufi(i,k)*zdp(i,k) 126 127 zvm=zvm+vfi(i,k)*zdp(i,k) 127 128 129 128 do iq=1,nq 129 zqm(iq)=zqm(iq)+qfi(i,k,iq)*zdp(i,k) 130 enddo 130 131 ENDDO 131 132 zalpha=zalpha/(hm*(paprs(i,k1)-paprs(i,k2+1))) 132 133 zum=zum/(paprs(i,k1)-paprs(i,k2+1)) 133 134 zvm=zvm/(paprs(i,k1)-paprs(i,k2+1)) 134 135 136 135 do iq=1,nq 136 zqm(iq)=zqm(iq)/(paprs(i,k1)-paprs(i,k2+1)) 137 enddo 137 138 138 139 IF(zalpha.GT.1.) THEN … … 153 154 zv(i,k)=vfi(i,k)+zalpha*(zvm-vfi(i,k)) 154 155 do iq=1,nq 155 156 zq(i,k,iq)=qfi(i,k,iq)+zalpha*(zqm(iq)-qfi(i,k,iq)) 156 157 enddo 157 158 ENDDO … … 187 188 do iq=1,nq 188 189 d_qfi(i,k,iq) = 0.0 189 enddo 190 enddo 190 191 ENDDO 191 192 ENDDO … … 200 201 do iq=1,nq 201 202 d_qfi(i,k,iq) = 0.0 202 enddo 203 enddo 203 204 ENDDO 204 205 ENDDO -
trunk/libf/phytitan/ballon.F
r3 r102 2 2 i temp, p, u, v, geop) 3 3 4 use dimphy 4 5 implicit none 5 6 … … 94 95 95 96 #include "dimensions.h" 96 #include "dimphy.h"97 97 #include "YOMCST.h" 98 98 c … … 255 255 . phi,lam,ubal,vbal,abal) 256 256 257 use dimphy 257 258 implicit none 258 259 … … 283 284 284 285 #include "dimensions.h" 285 #include "dimphy.h"286 286 #include "YOMCST.h" 287 287 c … … 354 354 subroutine pos_implem(phi,lam,ubal,vbal,dt) 355 355 356 use dimphy 356 357 implicit none 357 358 … … 370 371 371 372 #include "dimensions.h" 372 #include "dimphy.h"373 373 #include "YOMCST.h" 374 374 c -
trunk/libf/phytitan/calchim.F
r97 r102 2 2 . ctemp,cplay,cplev, 3 3 . dqyc) 4 implicit none5 4 6 5 c------------------------------------------------- 7 6 c 8 c Introduction d 'une routine chimique7 c Introduction d une routine chimique 9 8 c 10 9 c Auteur: S. Lebonnois, 01/2000 | 09/2003 … … 13 12 c------------------------------------------------- 14 13 c 15 14 use dimphy 15 implicit none 16 16 #include "dimensions.h" 17 #include "dimphy.h"18 17 #include "clesphys.h" 19 18 #include "paramet.h" -
trunk/libf/phytitan/clmain.F
r3 r102 34 34 USE ioipsl 35 35 USE interface_surf 36 use dimphy 36 37 IMPLICIT none 37 38 c====================================================================== … … 65 66 c====================================================================== 66 67 #include "dimensions.h" 67 #include "dimphy.h"68 68 c$$$ PB ajout pour soil 69 69 #include "dimsoil.h" … … 477 477 478 478 USE interface_surf 479 use dimphy 479 480 480 481 IMPLICIT none … … 484 485 c====================================================================== 485 486 #include "dimensions.h" 486 #include "dimphy.h"487 487 #include "YOMCST.h" 488 488 #include "dimsoil.h" … … 755 755 e paprs,pplay,delp, 756 756 s d_ven,flux_v) 757 758 use dimphy 757 759 IMPLICIT none 758 760 c====================================================================== … … 778 780 c====================================================================== 779 781 #include "dimensions.h" 780 #include "dimphy.h"781 782 #include "iniprint.h" 782 783 INTEGER knon … … 883 884 . ts,u,v,t, 884 885 . pcfm, pcfh) 886 887 use dimphy 885 888 IMPLICIT none 886 889 c====================================================================== … … 903 906 c====================================================================== 904 907 #include "dimensions.h" 905 #include "dimphy.h"906 908 #include "YOMCST.h" 907 909 #include "iniprint.h" … … 938 940 PARAMETER (prandtl=0.4) 939 941 INTEGER isommet ! le sommet de la couche limite 940 c TEST VENUS941 PARAMETER (isommet=klev)942 c PARAMETER (isommet=5)943 942 944 943 LOGICAL tvirtu ! calculer Ri d'une maniere plus performante … … 984 983 DATA appel1er /.TRUE./ 985 984 c 985 isommet=klev 986 986 987 IF (appel1er) THEN 987 988 if (prt_level > 9) THEN … … 1166 1167 SUBROUTINE coefkz2(knon, paprs, pplay,t, 1167 1168 . pcfm, pcfh) 1169 1170 use dimphy 1168 1171 IMPLICIT none 1169 1172 c====================================================================== … … 1182 1185 c====================================================================== 1183 1186 #include "dimensions.h" 1184 #include "dimphy.h"1185 1187 #include "YOMCST.h" 1186 1188 #include "iniprint.h" -
trunk/libf/phytitan/cltrac.F
r3 r102 4 4 SUBROUTINE cltrac(dtime,coef,t,tr,flux,paprs,pplay,delp, 5 5 s d_tr) 6 7 use dimphy 6 8 IMPLICIT none 7 9 c====================================================================== … … 26 28 c====================================================================== 27 29 #include "dimensions.h" 28 #include "dimphy.h"29 30 REAL dtime 30 31 REAL coef(klon,klev) … … 118 119 ENDDO 119 120 c 121 c ATTENTION SHUNTE!!!!!! 122 c DO k = 1, klev 123 c DO i = 1, klon 124 c d_tr(i,k) = 0. 125 c ENDDO 126 c ENDDO 127 120 128 RETURN 121 129 END -
trunk/libf/phytitan/cooling.F
r3 r102 1 1 SUBROUTINE COOLING(ngrid,NL,PRESS,TEMP,Z,Q0,lwnet,pfluxi) 2 IMPLICIT NONE3 2 4 3 c======================================================================= … … 52 51 c ------------ 53 52 53 use dimphy 54 IMPLICIT NONE 54 55 #include "dimensions.h" 55 #include "dimphy.h"56 56 #include "YOMCST.h" 57 57 INTEGER NLAYER,NSPECI,NSPC1I -
trunk/libf/phytitan/diagphy.F
r3 r102 7 7 $ , d_etp_tot, d_qt_tot, d_ec_tot 8 8 $ , fs_bound, fq_bound) 9 10 ! ATTENTION !! PAS DU TOUT A JOUR POUR VENUS OU TITAN... 11 9 12 C====================================================================== 10 13 C … … 45 48 C====================================================================== 46 49 C 50 use dimphy 47 51 implicit none 48 52 49 53 #include "dimensions.h" 50 #include "dimphy.h"51 54 #include "YOMCST.h" 52 55 C … … 205 208 c====================================================================== 206 209 210 use dimphy 207 211 IMPLICIT NONE 208 212 C 209 213 #include "dimensions.h" 210 #include "dimphy.h"211 214 #include "YOMCST.h" 212 215 C -
trunk/libf/phytitan/heating.F
r3 r102 1 1 SUBROUTINE heating(dist,rmu0,fract,sol_htg,swnet) 2 3 IMPLICIT NONE4 2 5 3 … … 30 28 c ------------- 31 29 30 use dimphy 31 IMPLICIT NONE 32 32 #include "dimensions.h" 33 #include "dimphy.h"34 33 35 34 INTEGER NLEVEL,NLAYER,NSPECV -
trunk/libf/phytitan/hgardfou.F
r3 r102 3 3 ! 4 4 SUBROUTINE hgardfou (t,tsol,text) 5 IMPLICIT none6 5 c====================================================================== 7 6 c Verifier la temperature 8 7 c====================================================================== 8 use dimphy 9 IMPLICIT none 9 10 #include "dimensions.h" 10 #include "dimphy.h"11 11 #include "YOMCST.h" 12 12 REAL t(klon,klev), tsol(klon) -
trunk/libf/phytitan/inicondens.F
r3 r102 9 9 c ------------- 10 10 11 use dimphy 11 12 IMPLICIT NONE 12 13 #include "dimensions.h" 13 #include "dimphy.h"14 14 #include "YOMCST.h" 15 15 -
trunk/libf/phytitan/iniphysiq.F
r3 r102 9 9 $ plat,plon,parea,pcu,pcv, 10 10 $ prad,pg,pr,pcpp) 11 IMPLICIT NONE 11 12 12 c 13 13 c======================================================================= … … 43 43 c ------------- 44 44 45 use dimphy 46 USE comgeomphy 47 IMPLICIT NONE 45 48 #include "dimensions.h" 46 #include "dimphy.h"47 #include "comgeomphy.h"48 49 49 50 REAL prad,pg,pr,pcpp,punjours -
trunk/libf/phytitan/optci.F
r97 r102 1 1 SUBROUTINE OPTCI(ykim,nmicro,IPRINT) 2 use dimphy 2 3 #include "dimensions.h" 3 #include "dimphy.h"4 4 #include "microtab.h" 5 5 #include "numchimrad.h" -
trunk/libf/phytitan/optci_1pt.F
r3 r102 2 2 . COSBI_1pt,DTAUI_1pt,TAUHI_1pt,TAUHID_1pt,TAUCI_1pt, 3 3 . TAUGI_1pt,TAUGID_1pt,WBARI_1pt,TAUI_1pt,IPRINT) 4 use dimphy 4 5 #include "dimensions.h" 5 #include "dimphy.h"6 6 #include "microtab.h" 7 7 #include "numchimrad.h" -
trunk/libf/phytitan/optcv.F
r97 r102 2 2 3 3 4 use dimphy 4 5 #include "dimensions.h" 5 #include "dimphy.h"6 6 #include "microtab.h" 7 7 #include "clesphys.h" -
trunk/libf/phytitan/optcv_1pt.F
r3 r102 4 4 5 5 6 use dimphy 6 7 #include "dimensions.h" 7 #include "dimphy.h"8 8 #include "microtab.h" 9 9 #include "clesphys.h" -
trunk/libf/phytitan/pg2.F
r3 r102 41 41 c------------------------------------------------------ 42 42 43 use dimphy 44 USE comgeomphy 43 45 #include "dimensions.h" 44 #include "dimphy.h"45 46 #include "microtab.h" 46 47 #include "paramet.h" 47 48 #include "aerprod.h" 48 49 #include "clesphys.h" 49 #include "comgeomphy.h"50 50 #include "YOMCST.h" 51 51 -
trunk/libf/phytitan/phyetat0.F
r97 r102 10 10 . tabcntr0, 11 11 . t_ancien,ancien_ok) 12 IMPLICIT none13 12 c====================================================================== 14 13 c Auteur(s) Z.X. Li (LMD/CNRS) date: 19930818 15 14 c Objet: Lecture de l'etat initial pour la physique 16 15 c====================================================================== 16 use dimphy 17 IMPLICIT none 17 18 #include "dimensions.h" 18 #include "dimphy.h"19 19 #include "netcdf.inc" 20 20 #include "dimsoil.h" -
trunk/libf/phytitan/phyredem.F
r97 r102 11 11 12 12 USE control_mod 13 use dimphy 13 14 IMPLICIT none 14 15 c====================================================================== … … 17 18 c====================================================================== 18 19 #include "dimensions.h" 19 #include "dimphy.h"20 20 #include "netcdf.inc" 21 21 #include "dimsoil.h" … … 75 75 IF( cycle_diurne ) tab_cntrl( 7 ) = 1. 76 76 IF( soil_model ) tab_cntrl( 8 ) = 1. 77 IF( new_oliq ) tab_cntrl( 9 ) = 1.78 77 IF( ok_orodr ) tab_cntrl(10 ) = 1. 79 78 IF( ok_orolf ) tab_cntrl(11 ) = 1. 79 IF( ok_gw_nonoro ) tab_cntrl(12 ) = 1. 80 80 81 81 tab_cntrl(13) = day_end -
trunk/libf/phytitan/physiq.F
r97 r102 10 10 . d_u, d_v, d_t, d_qx, d_ps) 11 11 12 USE ioipsl13 USE histcom14 USE infotrac15 USE control_mod16 IMPLICIT none17 12 c====================================================================== 18 13 c … … 29 24 cAA - stockage des moyennes des champs necessaires 30 25 cAA en mode traceur off-line 31 c======================================================================32 c CLEFS CPP POUR LES IO33 c =====================34 #define histmth35 #define histday36 #define histins37 c======================================================================38 26 c modif ( P. Le Van , 12/10/98 ) 39 27 c … … 67 55 c d_ps----output-R-tendance physique de la pression au sol 68 56 c====================================================================== 57 USE ioipsl 58 USE histcom 59 USE infotrac 60 USE control_mod 61 use dimphy 62 USE comgeomphy 63 IMPLICIT none 64 c====================================================================== 65 c CLEFS CPP POUR LES IO 66 c ===================== 67 #define histmth 68 #define histday 69 #define histins 70 c====================================================================== 69 71 #include "dimensions.h" 70 72 integer jjmp1 71 73 parameter (jjmp1=jjm+1-1/jjm) 72 #include "dimphy.h"73 74 #include "dimsoil.h" 74 75 #include "clesphys.h" 75 76 #include "temps.h" 76 #include "comgeomphy.h"77 77 #include "iniprint.h" 78 #include "raddim.h"79 78 #include "timerad.h" 80 79 #include "logic.h" … … 583 582 do iq=1,nqmax 584 583 nom = tname(iq) 585 c print*,iq,"nom=",nom,"tname=",tname(iq) ,"tnom=",tnom(iq)584 c print*,iq,"nom=",nom,"tname=",tname(iq) 586 585 print*,iq,"nom=",nom 587 586 if (nom(1:1).eq."q") then -
trunk/libf/phytitan/phytrac.F
r97 r102 3 3 . pplev,pplay,delp,ptemp,pmu0,pfract,pdecli, 4 4 . lonsol,tr_seri,d_tr_mph,d_tr_kim) 5 6 USE infotrac7 8 IMPLICIT none9 5 10 6 c====================================================================== … … 32 28 c d_tr_kim----output-R-tendance chimique de "qx" (kg/kg/s) 33 29 c====================================================================== 30 USE infotrac 31 use dimphy 32 IMPLICIT none 34 33 #include "dimensions.h" 35 #include "dimphy.h"36 34 #include "clesphys.h" 37 35 #include "YOMCST.h" -
trunk/libf/phytitan/printflag.F
r3 r102 12 12 13 13 REAL tabcntr0( 100 ) 14 LOGICAL cycle_diurn0,soil_model0, new_oliq0,ok_orodr015 LOGICAL ok_orolf0,ok_ limitvr014 LOGICAL cycle_diurn0,soil_model0,ok_orodr0 15 LOGICAL ok_orolf0,ok_gw_nonoro0 16 16 LOGICAL ok_mensuel, ok_journe, ok_instan 17 17 INTEGER radpas , radpas0 … … 33 33 PRINT 100 34 34 35 c PRINT 11, new_oliq, ok_orodr, ok_orolf36 cPRINT 10035 PRINT 11, ok_orodr, ok_orolf, ok_gw_nonoro 36 PRINT 100 37 37 38 38 PRINT 12, nbapp_rad … … 55 55 cycle_diurn0 = .FALSE. 56 56 soil_model0 = .FALSE. 57 new_oliq0 = .FALSE.58 57 ok_orodr0 = .FALSE. 59 58 ok_orolf0 = .FALSE. 60 ok_ limitvr0= .FALSE.59 ok_gw_nonoro0 = .FALSE. 61 60 62 61 IF( tabcntr0( 7 ).EQ. 1. ) cycle_diurn0 = .TRUE. 63 62 IF( tabcntr0( 8 ).EQ. 1. ) soil_model0 = .TRUE. 64 IF( tabcntr0( 9 ).EQ. 1. ) new_oliq0 = .TRUE.65 63 IF( tabcntr0(10 ).EQ. 1. ) ok_orodr0 = .TRUE. 66 64 IF( tabcntr0(11 ).EQ. 1. ) ok_orolf0 = .TRUE. 67 IF( tabcntr0(12 ).EQ. 1. ) ok_limitvr0 = .TRUE.65 IF( tabcntr0(12 ).EQ. 1. ) ok_gw_nonoro0 = .TRUE. 68 66 69 67 PRINT *,' $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ … … 108 106 ENDIF 109 107 110 IF( new_oliq0.AND..NOT.new_oliq.OR..NOT.new_oliq0.AND.111 , new_oliq ) THEN112 PRINT 16, new_oliq0, new_oliq113 PRINT 100114 ENDIF115 116 108 IF( ok_orodr0.AND..NOT.ok_orodr.OR..NOT.ok_orodr0.AND. 117 109 , ok_orodr ) THEN … … 126 118 ENDIF 127 119 128 IF( ok_ limitvr0.AND..NOT.ok_limitvrai.OR..NOT.ok_limitvr0.129 , AND.ok_ limitvrai) THEN130 PRINT 18, ok_ limitvr0, ok_limitvrai120 IF( ok_gw_nonoro0.AND..NOT.ok_gw_nonoro.OR..NOT.ok_gw_nonoro0. 121 , AND.ok_gw_nonoro ) THEN 122 PRINT 18, ok_gw_nonoro0, ok_gw_nonoro 131 123 PRINT 100 132 124 ENDIF … … 140 132 . , ok_instan = ',l3,8x,5(1H*) ) 141 133 142 7 FORMAT(2x,5(1H*),15x,' ok_limitvrai = ',l3,16x,5(1h*) )143 144 134 8 FORMAT(2x,'***** radpas = ' , 145 135 , i4,6x,' *****') … … 149 139 150 140 151 11 FORMAT(2x,5(1H*),' new_oliq = ',l3,3x,', Ok_orodr = ',152 , l3,3x,', Ok_orolf= ',l3,3x,5(1H*) )141 11 FORMAT(2x,5(1H*),', Ok_orodr = ',l3,3x,', Ok_orolf = ',l3,3x, 142 , ' ok_gw_nonoro = ',l3,3x,5(1H*) ) 153 143 154 144 … … 165 155 , /1x,10x,' startphy = ',l3,2x,' et run.def = ',l3) 166 156 167 16 FORMAT(2x,'$$$$$$$$ Attention !! new_oliq different sur',168 , /1x,10x,' startphy = ',l3,2x,' et run.def = ',l3)169 170 157 17 FORMAT(2x,'$$$$$$$$ Attention !! ok_orolf different sur', 171 158 , /1x,10x,' startphy = ',l3,2x,' et run.def = ',l3) 172 159 173 18 FORMAT(2x,'$$$$$$$$ Attention !! ok_ limitvraidifferent sur',160 18 FORMAT(2x,'$$$$$$$$ Attention !! ok_gw_nonoro different sur', 174 161 , /1x,10x,' startphy = ',l3,2x,' et run.def = ',l3) 175 162 -
trunk/libf/phytitan/radlwsw.F
r97 r102 6 6 . lwnet, swnet) 7 7 c 8 IMPLICIT none9 8 c====================================================================== 10 9 c Auteur(s): Z.X. Li (LMD/CNRS) date: 19960719 … … 39 38 40 39 c====================================================================== 40 use dimphy 41 USE comgeomphy 42 IMPLICIT none 41 43 #include "dimensions.h" 42 #include "dimphy.h"43 #include "raddim.h"44 44 #include "YOMCST.h" 45 45 #include "clesphys.h" 46 #include "comgeomphy.h"47 46 c 48 47 c ARGUMENTS -
trunk/libf/phytitan/radtitan.F
r97 r102 1 1 SUBROUTINE RADTITAN(p,nq,nmicro,ycomp) 2 3 IMPLICIT NONE4 5 2 6 3 c======================================================================= … … 34 31 c ------------- 35 32 33 USE infotrac 34 use dimphy 35 USE comgeomphy 36 IMPLICIT NONE 36 37 #include "dimensions.h" 37 #include "dimphy.h"38 38 #include "clesphys.h" 39 39 #include "microtab.h" 40 40 #include "numchimrad.h" 41 #include "comgeomphy.h"42 41 #include "YOMCST.h" 43 #include "advtrac.h" !! pour noms des traceurs44 42 45 43 c Pour le CRAY, les block data doivent etre declares external … … 297 295 298 296 do i=1,nq 299 if (tn om(i).eq."CH4") then297 if (tname(i).eq."CH4") then 300 298 iradch4=i 301 elseif (tn om(i).eq."C2H2") then299 elseif (tname(i).eq."C2H2") then 302 300 iradc2h2=i 303 elseif (tn om(i).eq."C2H6") then301 elseif (tname(i).eq."C2H6") then 304 302 iradc2h6=i 305 elseif (tn om(i).eq."HCN") then303 elseif (tname(i).eq."HCN") then 306 304 iradhcn=i 307 elseif (tn om(i).eq."N2") then305 elseif (tname(i).eq."N2") then 308 306 iradn2=i 309 elseif (tn om(i).eq."H2") then307 elseif (tname(i).eq."H2") then 310 308 iradh2=i 311 309 endif -
trunk/libf/phytitan/readstartphy.F
r3 r102 9 9 . fder,radsol, 10 10 . tabcntr0) 11 IMPLICIT none12 11 c====================================================================== 13 12 c Auteur(s) Z.X. Li (LMD/CNRS) date: 19930818 14 13 c Objet: Lecture de l'etat initial pour la physique 15 14 c====================================================================== 15 use dimphy 16 IMPLICIT none 16 17 #include "dimensions.h" 17 #include "dimphy.h"18 18 #include "netcdf.inc" 19 19 #include "dimsoil.h" -
trunk/libf/phytitan/sfluxv.F
r3 r102 1 1 SUBROUTINE SFLUXV(IPRINT,IG,dist_sol) 2 2 3 use dimphy 3 4 IMPLICIT NONE 4 5 5 #include "dimensions.h" 6 #include "dimphy.h"7 6 #include "comorbit.h" 8 7 -
trunk/libf/phytitan/soil.F
r3 r102 4 4 SUBROUTINE soil(ptimestep, knon, ptsrf, ptsoil, 5 5 s pcapcal, pfluxgrd) 6 IMPLICIT NONE7 6 8 7 c======================================================================= … … 47 46 c ------------- 48 47 48 use dimphy 49 IMPLICIT NONE 49 50 #include "dimensions.h" 50 51 #include "YOMCST.h" 51 #include "dimphy.h"52 52 #include "dimsoil.h" 53 53 #include "clesphys.h" … … 74 74 c ---------------------- 75 75 REAL dz1(nsoilmx),dz2(nsoilmx) 76 REAL zc(klon,nsoilmx),zd(klon,nsoilmx)76 REAL,allocatable :: zc(:,:),zd(:,:) 77 77 REAL lambda 78 78 SAVE dz1,dz2,zc,zd,lambda … … 95 95 96 96 IF (firstcall) THEN 97 98 allocate(zc(klon,nsoilmx),zd(klon,nsoilmx)) 97 99 98 100 c----------------------------------------------------------------------- -
trunk/libf/phytitan/ustarhb.F
r3 r102 3 3 ! 4 4 SUBROUTINE ustarhb(knon,u,v,cd_m, ustar) 5 IMPLICIT none6 5 c====================================================================== 7 6 c Laurent Li (LMD/CNRS), le 30 septembre 1998 … … 17 16 c model. J. of Climate, vol. 6, 1825-1842. 18 17 c====================================================================== 18 use dimphy 19 IMPLICIT none 19 20 #include "dimensions.h" 20 #include "dimphy.h"21 21 #include "YOMCST.h" 22 22 c -
trunk/libf/phytitan/vdif_kcay.F
r3 r102 5 5 s ,zlev,zlay,u,v,teta,cd,q2,q2diag,km,kn,ustar 6 6 s ,l_mix) 7 c....................................................................... 8 use dimphy 7 9 IMPLICIT NONE 8 c.......................................................................9 10 #include "dimensions.h" 10 #include "dimphy.h"11 11 c....................................................................... 12 12 c … … 195 195 PARAMETER (q2min=1.e-5) 196 196 PARAMETER (q2max=1.E+2) 197 PARAMETER (nlay=klev)198 PARAMETER (nlev=klev+1)199 197 c 200 198 PARAMETER ( … … 221 219 save first 222 220 data first/.true./ 221 222 nlay=klev 223 nlev=klev+1 223 224 c....................................................................... 224 225 c traitment des valeur de q2 en entree -
trunk/libf/phytitan/writerestartphy.F
r3 r102 6 6 . t_ancien) 7 7 8 IMPLICIT none9 8 10 9 c====================================================================== 11 10 c Ecriture de l'etat de redemarrage pour la physique (pour newstart) 12 11 c====================================================================== 12 use dimphy 13 IMPLICIT none 13 14 #include "dimensions.h" 14 #include "dimphy.h"15 15 #include "netcdf.inc" 16 16 #include "dimsoil.h" -
trunk/libf/phytitan/yamada.F
r3 r102 5 5 s ,zlev,zlay,u,v,teta,cd,q2,km,kn,ustar 6 6 s ,l_mix) 7 c....................................................................... 8 use dimphy 7 9 IMPLICIT NONE 8 c.......................................................................9 10 #include "dimensions.h" 10 #include "dimphy.h"11 11 c....................................................................... 12 12 c … … 46 46 integer l_mix,ngrid 47 47 48 49 integer nlay,nlev50 PARAMETER (nlay=klev)51 PARAMETER (nlev=klev+1)52 53 48 logical first 54 49 save first 55 50 data first/.true./ 56 57 51 58 52 integer ig,k … … 98 92 99 93 c Correction d'un bug sauvage a verifier. 100 c do k=2, nlev101 do k=2, nlay94 c do k=2,klevp1 95 do k=2,klev 102 96 do ig=1,ngrid 103 97 dz(ig,k)=zlay(ig,k)-zlay(ig,k-1) -
trunk/libf/phytitan/yamada4.F
r3 r102 6 6 s ,zlev,zlay,u,v,teta,cd,km,kn,kq,ustar 7 7 s ,iflag_pbl) 8 c....................................................................... 9 use dimphy 8 10 IMPLICIT NONE 9 c.......................................................................10 11 #include "dimensions.h" 11 #include "dimphy.h"12 12 c....................................................................... 13 13 c … … 50 50 REAL teta(klon,klev) 51 51 REAL cd(klon) 52 REAL q 2(klon,klev+1),qpre52 REAL qpre 53 53 REAL unsdz(klon,klev) 54 54 REAL unsdzdec(klon,klev+1) … … 65 65 66 66 integer nlay,nlev 67 PARAMETER (nlay=klev)68 PARAMETER (nlev=klev+1)69 67 70 68 logical first … … 83 81 real dtetadz(klon,klev+1) 84 82 real m2cstat,mcstat,kmcstat 85 real l(klon,klev+1) ,l0(klon)86 save l083 real l(klon,klev+1) 84 real,save,allocatable :: l0(:) 87 85 c ATTENTION! mis ici car j'ai enlevé q2 des arguments... 88 86 c sinon, c'est au-dessus que ça se passe... 89 save q287 REAL,save,allocatable :: q2(:,:) 90 88 91 89 real sq(klon),sqz(klon),zz(klon,klev+1) … … 99 97 real fl,zzz,zl0,zq2,zn2 100 98 101 real rino(klon,klev+1),smyam(klon,klev),styam(klon,klev) 102 s ,lyam(klon,klev),knyam(klon,klev) 103 s ,w2yam(klon,klev),t2yam(klon,klev) 104 common/pbldiag/rino,smyam,styam,lyam,knyam,w2yam,t2yam 99 c real rino(klon,klev+1),smyam(klon,klev),styam(klon,klev) 100 c s ,lyam(klon,klev),knyam(klon,klev) 101 c s ,w2yam(klon,klev),t2yam(klon,klev) 105 102 106 103 frif(ri)=0.6588*(ri+0.1776-sqrt(ri*ri-0.3221*ri+0.03156)) … … 116 113 117 114 c=================================== 118 c INITIALISATIONS (surtout pour k=1, à cause diagnostiques...) 115 c INITIALISATIONS 116 nlay=klev 117 nlev=klev+1 118 119 119 if (first) then 120 allocate(l0(klon)) 121 allocate(q2(klon,klevp1)) 122 123 c (surtout pour k=1, à cause diagnostiques...) 120 124 q2 = 0. 121 125 endif … … 462 466 463 467 c print*,'YAMADA4 1' 464 c Diagnostique pour stockage465 466 rino=rif467 smyam(:,1:klev)=sm(:,1:klev)468 styam=sm(:,1:klev)*alpha(:,1:klev)469 lyam(1:klon,1:klev)=l(:,1:klev)470 knyam(1:klon,1:klev)=kn(:,1:klev)471 468 472 469 c Estimations de w'2 et T'2 d'apres Abdela et McFarlane 473 470 474 475 w2yam=q2(:,1:klev)*0.24476 477 478 479 t2yam=9.1*kn(:,1:klev)*dtetadz(:,1:klev)**2/sqrt(q2(:,1:klev))480 481 471 c if(1.eq.0)then 472 c w2yam=q2(:,1:klev)*0.24 473 c s +lyam(:,1:klev)*5.17*kn(:,1:klev)*n2(:,1:klev) 474 c s /sqrt(q2(:,1:klev)) 475 c 476 c t2yam=9.1*kn(:,1:klev)*dtetadz(:,1:klev)**2/sqrt(q2(:,1:klev)) 477 c s *lyam(:,1:klev) 478 c endif 482 479 483 480 c print*,'OKFIN' -
trunk/libf/phytitan/zenang.F
r3 r102 2 2 SUBROUTINE zenang(longi,gmtime,pdtrad,lat,long, 3 3 s pmu0,frac) 4 IMPLICIT none5 4 c============================================================= 6 5 c Auteur : O. Boucher (LMD/CNRS) … … 25 24 c frac-----OUTPUT: ensoleillement moyen entre gmtime et gmtime+(pdtrad/RDAY) 26 25 c================================================================ 26 use dimphy 27 IMPLICIT none 27 28 #include "dimensions.h" 28 #include "dimphy.h"29 29 #include "YOMCST.h" 30 30 #include "comorbit.h" -
trunk/libf/phyvenus/iniphysiq.F
r101 r102 10 10 $ prad,pg,pr,pcpp) 11 11 12 use dimphy13 USE comgeomphy14 IMPLICIT NONE15 12 c 16 13 c======================================================================= … … 46 43 c ------------- 47 44 45 use dimphy 46 USE comgeomphy 47 IMPLICIT NONE 48 48 #include "dimensions.h" 49 49 -
trunk/libf/phyvenus/printflag.F
r101 r102 119 119 120 120 121 11 FORMAT(2x,5(1H*),', Ok_orodr = ', 122 , l3,3x,', Ok_orolf= ',l3,3x,5(1H*) )121 11 FORMAT(2x,5(1H*),', Ok_orodr = ',l3,3x,', Ok_orolf = ',l3,3x, 122 , ' ok_gw_nonoro = ',l3,3x,5(1H*) ) 123 123 124 124
Note: See TracChangeset
for help on using the changeset viewer.