Changeset 1525 for trunk/LMDZ.GENERIC
- Timestamp:
- Mar 30, 2016, 8:24:43 AM (9 years ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r1524 r1525 1148 1148 to module "time_phylmdz_mod". 1149 1149 - made "inifis" a module. 1150 1151 == 30/03/2016 == EM 1152 - Got rid of references to "control_mod" from the physics. Added a couple 1153 of relevent variables for outputs in time_phylmdz_mod. -
trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/iniphysiq_mod.F90
r1524 r1525 14 14 klon_omp_end, & ! end index of local omp subgrid 15 15 klon_mpi_begin ! start indes of columns (on local mpi grid) 16 16 use control_mod, only: nday 17 17 use comgeomphy, only : initcomgeomphy, & 18 18 airephy, & ! physics grid area (m2) … … 176 176 ! copy some fundamental parameters to physics 177 177 ! and do some initializations 178 call inifis(klon_omp,nlayer,nqtot,pdayref,punjours, ptimestep, &178 call inifis(klon_omp,nlayer,nqtot,pdayref,punjours,nday,ptimestep, & 179 179 rlatd,rlond,airephy,prad,pg,pr,pcpp) 180 180 -
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/kcm1d.F90
r1403 r1525 9 9 use planete_mod 10 10 use callkeys_mod, only: check_cpp_match, pceil, tstrat, tracer 11 ! use control_mod 11 use inifis_mod, only: inifis 12 12 use comcstfi_mod 13 13 implicit none … … 203 203 call calc_cpp_mugaz 204 204 205 call inifis(1,llm,0,86400.0,1.0,0.0,0.0,1.0,rad,g,r,cpp) 205 call inifis(1,llm,0,1,86400.0,1,1.0,& 206 (/0.0/),(/0.0/),(/1.0/),& 207 rad,g,r,cpp) 206 208 207 209 ! Tracer initialisation -
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F
r1524 r1525 12 12 use comsoil_h, only: nsoilmx, layer, mlayer, inertiedat, volcapa 13 13 USE comgeomfi_h, only: lati, long, area 14 use control_mod, only: day_step, ecritphy15 14 use phyredem, only: physdem0,physdem1 16 15 use comgeomphy, only: initcomgeomphy … … 21 20 use comcstfi_mod, only: pi, cpp, rad, g, r, 22 21 & mugaz, rcp, omeg 23 use time_phylmdz_mod, only: daysec, dtphys 22 use time_phylmdz_mod, only: daysec, dtphys, day_step, ecritphy, 23 & nday 24 24 use callkeys_mod, only: tracer,check_cpp_match,rings_shadow, 25 25 & specOLR,water,pceil,ok_slab_ocean … … 488 488 call getin("ndt",ndt) 489 489 write(*,*) " ndt = ",ndt 490 nday=ndt 490 491 491 492 ndt=ndt*day_step … … 505 506 !!! - physical frequency: nevermind, in inifis this is a simple print 506 507 cpp=1.d-7 !JL because we divide by cpp in inifis, there may be a more elegant solution 507 CALL inifis(1,llm,nq,day0,daysec, dtphys,508 CALL inifis(1,llm,nq,day0,daysec,nday,dtphys, 508 509 . latitude,longitude,area,rad,g,r,cpp) 509 510 !!! We check everything is OK. -
trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90
r1524 r1525 5 5 6 6 SUBROUTINE inifis(ngrid,nlayer,nq, & 7 day_ini,pdaysec, ptimestep, &7 day_ini,pdaysec,nday,ptimestep, & 8 8 plat,plon,parea, & 9 9 prad,pg,pr,pcpp) … … 14 14 use comgeomfi_h, only: long, lati, area, totarea, totarea_planet 15 15 use comsoil_h, only: ini_comsoil_h 16 use control_mod, only: ecritphy 16 use time_phylmdz_mod, only: ecritphy,day_step,iphysiq, & 17 init_time, daysec, dtphys 17 18 use comcstfi_mod, only: rad, cpp, g, r, rcp, & 18 19 mugaz, pi, avocado … … 20 21 use planetwide_mod, only: planetwide_sumval 21 22 use callkeys_mod 22 use time_phylmdz_mod, only: init_time, daysec, dtphys23 23 24 24 !======================================================================= … … 64 64 65 65 REAL,INTENT(IN) :: prad,pg,pr,pcpp,pdaysec,ptimestep 66 66 INTEGER,INTENT(IN) :: nday 67 67 INTEGER,INTENT(IN) :: ngrid,nlayer,nq 68 68 REAL,INTENT(IN) :: plat(ngrid),plon(ngrid),parea(ngrid) … … 91 91 92 92 ! Initialize some "temporal and calendar" related variables 93 CALL init_time(day_ini,pdaysec,ptimestep) 94 95 ! read in 'ecritphy' (frequency of calls to physics, in dynamical steps) 96 ! (also done in dyn3d/defrun_new but not in LMDZ.COMMON) 97 call getin_p("ecritphy",ecritphy) 93 CALL init_time(day_ini,pdaysec,nday,ptimestep) 94 95 ! read in some parameters from "run.def" for physics, 96 ! or shared between dynamics and physics. 97 call getin_p("ecritphy",ecritphy) ! frequency of outputs in physics, 98 ! in dynamical steps 99 call getin_p("day_step",day_step) ! number of dynamical steps per day 100 call getin_p("iphysiq",iphysiq) ! call physics every iphysiq dyn step 98 101 99 102 ! -------------------------------------------------------------- -
trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
r1524 r1525 24 24 igcm_h2o_ice, igcm_h2o_vap, igcm_dustbin, & 25 25 igcm_co2_ice 26 use control_mod, only: ecritphy, iphysiq, nday26 use time_phylmdz_mod, only: ecritphy, iphysiq, nday 27 27 use phyredem, only: physdem0, physdem1 28 28 use slab_ice_h -
trunk/LMDZ.GENERIC/libf/phystd/time_phylmdz_mod.F90
r1524 r1525 4 4 REAL,SAVE :: dtphys ! physics time step (s) 5 5 !$OMP THREADPRIVATE(dtphys) 6 INTEGER,SAVE :: day_step ! number of dynamical steps per day 7 ! (set via inifis) 8 !$OMP THREADPRIVATE(day_step) 9 INTEGER,SAVE :: nday ! number of days to run 10 !$OMP THREADPRIVATE(nday) 6 11 REAL,SAVE :: daysec ! length of day (s) 7 12 !$OMP THREADPRIVATE(daysec) … … 9 14 !$OMP THREADPRIVATE(day_ini) 10 15 16 INTEGER,SAVE :: ecritphy ! for diagfi.nc outputs, write every ecritphy 17 ! dynamical steps (set via inifis) 18 !$OMP THREADPRIVATE(ecritphy) 19 INTEGER,SAVE :: iphysiq ! call physics every iphysiq dynamical step 20 ! (set via inifis) 21 !$OMP THREADPRIVATE(iphysiq) 22 11 23 CONTAINS 12 24 13 SUBROUTINE init_time(day_ini_, daysec_, dtphys_)25 SUBROUTINE init_time(day_ini_, daysec_, nday_, dtphys_) 14 26 IMPLICIT NONE 15 27 INTEGER,INTENT(IN) :: day_ini_ 16 28 REAL,INTENT(IN) :: daysec_ 29 INTEGER,INTENT(IN) :: nday_ 17 30 REAL,INTENT(IN) :: dtphys_ 18 31 19 32 day_ini=day_ini_ 20 33 daysec=daysec_ 34 nday=nday_ 21 35 dtphys=dtphys_ 22 36 -
trunk/LMDZ.GENERIC/libf/phystd/writediagfi.F
r1524 r1525 40 40 !================================================================= 41 41 use surfdat_h, only: phisfi 42 use control_mod, only: ecritphy, day_step, iphysiq42 use time_phylmdz_mod, only: ecritphy, day_step, iphysiq, day_ini 43 43 USE mod_phys_lmdz_para, only : is_parallel, is_mpi_root, 44 44 & is_master, gather 45 45 USE mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo 46 USE time_phylmdz_mod, ONLY: day_ini47 46 implicit none 48 47 -
trunk/LMDZ.GENERIC/libf/phystd/writediagsoil.F90
r1315 r1525 13 13 14 14 use comsoil_h, only: nsoilmx 15 use control_mod, only: ecritphy, day_step, iphysiq15 use time_phylmdz_mod, only: ecritphy, day_step, iphysiq 16 16 use mod_phys_lmdz_para, only : is_mpi_root, is_master, gather 17 17 use mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo -
trunk/LMDZ.GENERIC/libf/phystd/writediagspecIR.F
r1524 r1525 48 48 use mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo 49 49 #endif 50 use control_mod, only: ecritphy, iphysiq, day_step50 use time_phylmdz_mod, only: ecritphy, iphysiq, day_step, day_ini 51 51 use callkeys_mod, only: iradia 52 use time_phylmdz_mod, ONLY: day_ini53 52 54 53 implicit none -
trunk/LMDZ.GENERIC/libf/phystd/writediagspecVI.F
r1524 r1525 48 48 use mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo 49 49 #endif 50 use control_mod, only: ecritphy, iphysiq, day_step50 use time_phylmdz_mod, only: ecritphy, iphysiq, day_step, day_ini 51 51 use callkeys_mod, only: iradia 52 use time_phylmdz_mod, ONLY: day_ini53 52 54 53 implicit none
Note: See TracChangeset
for help on using the changeset viewer.