Changeset 1525 for trunk/LMDZ.MARS/libf
- Timestamp:
- Mar 30, 2016, 8:24:43 AM (9 years ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/conf_phys.F
r1524 r1525 38 38 use surfdat_h, only: albedo_h2o_ice, inert_h2o_ice, 39 39 & frost_albedo_threshold 40 use control_mod, only: ecritphy 40 use time_phylmdz_mod, only: ecritphy,day_step,iphysiq,ecritstart, 41 & daysec,dtphys 41 42 use planete_h 42 use time_phylmdz_mod, only: daysec,dtphys43 43 use dimradmars_mod, only: naerkind, name_iaer, 44 44 & ini_scatterers,tauvis … … 50 50 51 51 INTEGER,INTENT(IN) :: ngrid,nlayer,nq 52 INTEGER i g,ierr,j52 INTEGER ierr,j 53 53 54 54 CHARACTER ch1*12 55 CHARACTER ch80*80 56 57 ! read in 'ecritphy' (frequency of calls to physics, in dynamical steps) 58 ! (also done in dyn3d/defrun_new but not in LMDZ.COMMON) 59 call getin("ecritphy",ecritphy) 60 55 56 ! read in some parameters from "run.def" for physics, 57 ! or shared between dynamics and physics. 58 ecritphy=240 ! default value 59 call getin("ecritphy",ecritphy) ! frequency of outputs in physics, 60 ! in dynamical steps 61 day_step=960 ! default value 62 call getin("day_step",day_step) ! number of dynamical steps per day 63 iphysiq=20 ! default value 64 call getin("iphysiq",iphysiq) ! call physics every iphysiq dyn step 65 ecritstart=0 ! default value 66 call getin("ecritstart",ecritstart) ! write a restart every ecristart steps 61 67 ! -------------------------------------------------------------- 62 68 ! Reading the "callphys.def" file controlling some key options -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F
r1524 r1525 11 11 & watercaptag 12 12 use slope_mod, only: theta_sl, psi_sl 13 use control_mod, only: day_step14 13 use phyredem, only: physdem0,physdem1 15 14 use comgeomphy, only: initcomgeomphy … … 17 16 & obliquit, emin_turb, lmixmin 18 17 use comcstfi_h, only: pi, rad, omeg, g, mugaz, rcp, r, cpp 19 use time_phylmdz_mod, only: daysec, dtphys 18 use time_phylmdz_mod, only: daysec, dtphys, day_step 20 19 use dimradmars_mod, only: tauscaling,tauvis 21 20 USE comvert_mod, ONLY: ap,bp,aps,bps,pa,preff,sig -
trunk/LMDZ.MARS/libf/phymars/phyetat0.F90
r1266 r1525 6 6 use surfdat_h, only: phisfi, albedodat, z0, z0_default,& 7 7 zmea, zstd, zsig, zgam, zthe 8 use control_mod, only: timestart9 8 use iostart, only: nid_start, open_startphy, close_startphy, & 10 9 get_field, get_var, inquire_field, & 11 10 inquire_dimension, inquire_dimension_length 11 use ioipsl_getincom, only : getin 12 12 13 13 implicit none … … 79 79 LOGICAL :: found 80 80 81 REAL :: timestart ! to pick which initial state to start from 82 81 83 ! open physics initial state file: 82 84 call open_startphy(fichnom) … … 167 169 168 170 ! Time axis 171 ! obtain timestart from run.def 172 timestart=-9999 ! default value 173 call getin("timestart",timestart) 174 169 175 found=inquire_dimension("Time") 170 176 if (.not.found) then -
trunk/LMDZ.MARS/libf/phymars/physiq.F
r1524 r1525 25 25 use slope_mod, only: theta_sl, psi_sl 26 26 use conc_mod, only: rnew, cpnew, mmean 27 use control_mod, only: iphysiq, day_step, ecritstart27 use time_phylmdz_mod, only: iphysiq, day_step, ecritstart, daysec 28 28 use dimradmars_mod, only: tauscaling, aerosol, 29 29 & dtrad, fluxrad_sky, fluxrad, albedo, … … 34 34 & obliquit 35 35 USE comcstfi_h, only: r, cpp, mugaz, g, rcp, pi, rad 36 use time_phylmdz_mod, only: daysec37 36 use param_v4_h, only: nreact,n_avog, 38 37 & fill_data_thermos, allocate_param_thermos -
trunk/LMDZ.MARS/libf/phymars/time_phylmdz_mod.F90
r1524 r1525 4 4 REAL,SAVE :: dtphys ! physics time step (s) 5 5 !$OMP THREADPRIVATE(pdtphys) 6 INTEGER,SAVE :: day_step ! number of dynamical steps per day 7 ! (set via conf_phys) 8 !$OMP THREADPRIVATE(day_step) 6 9 REAL,SAVE :: daysec ! length of day (s) 7 10 !$OMP THREADPRIVATE(daysec) … … 12 15 !$OMP THREADPRIVATE(hour_ini) 13 16 17 INTEGER,SAVE :: ecritphy ! for diagfi.nc outputs, write every ecritphy 18 ! dynamical steps (set via conf_phys) 19 !$OMP THREADPRIVATE(ecritphy) 20 INTEGER,SAVE :: iphysiq ! call physics every iphysiq dynamical step 21 ! (set via conf_phys) 22 !$OMP THREADPRIVATE(iphysiq) 23 INTEGER,SAVE :: ecritstart ! write a restart state every ecritstart 24 ! dynamical steps (set via conf_phys) 25 !$OMP THREADPRIVATE(ecritstart) 14 26 CONTAINS 15 27 16 28 SUBROUTINE init_time(day_ini_, hour_ini_, daysec_, dtphys_) 29 USE ioipsl_getin_p_mod, ONLY : getin_p 17 30 IMPLICIT NONE 18 31 INTEGER,INTENT(IN) :: day_ini_ … … 25 38 daysec=daysec_ 26 39 dtphys=dtphys_ 27 40 28 41 END SUBROUTINE init_time 29 42 -
trunk/LMDZ.MARS/libf/phymars/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.MARS/libf/phymars/writediagsoil.F90
r1266 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
Note: See TracChangeset
for help on using the changeset viewer.