Changeset 2916 for trunk/LMDZ.MARS/libf
- Timestamp:
- Mar 16, 2023, 11:50:06 AM (21 months ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/conf_phys.F
r2823 r2916 45 45 use datafile_mod, only: datadir 46 46 use wstats_mod, only: callstats 47 use writediagsoil_mod, only: diagsoil 47 48 use calchim_mod, only: ichemistry 48 49 use co2condens_mod, only: scavco2cond … … 133 134 write(*,*) " callstats = ",callstats 134 135 136 write(*,*) "Write sub-surface fields in file diagsoil.nc ?" 137 diagsoil=.false. ! default value 138 call getin_p("diagsoil",diagsoil) 139 write(*,*) " diagsoil = ",diagsoil 140 135 141 write(*,*) "Save EOF profiles in file 'profiles' for ", 136 142 & "Climate Database?" -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2915 r2916 90 90 use phyetat0_mod, only: phyetat0, tab_cntrl_mod 91 91 use wstats_mod, only: callstats, wstats, mkstats 92 use writediagsoil_mod, only: writediagsoil 92 93 use eofdump_mod, only: eofdump 93 94 USE vertical_layers_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt -
trunk/LMDZ.MARS/libf/phymars/writediagsoil.F90
r2573 r2916 1 module writediagsoil_mod 2 3 implicit none 4 5 logical,save :: diagsoil ! global flag to trigger generating a diagsoil.nc 6 ! file or not. Initialized in conf_phys() 7 8 contains 9 1 10 subroutine writediagsoil(ngrid,name,title,units,dimpx,px) 2 11 … … 16 25 use time_phylmdz_mod, only: ecritphy, day_step, iphysiq 17 26 use mod_phys_lmdz_para, only : is_mpi_root, is_master, gather 18 use mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo, &19 nbp_lon, nbp_lat 27 use mod_grid_phy_lmdz, only : klon_glo, Grid1Dto2D_glo, nbp_lon, nbp_lat 28 use mod_grid_phy_lmdz, only : grid_type, unstructured 20 29 21 30 implicit none … … 72 81 real px2(ngrid) 73 82 #endif 83 84 ! 0. Do we ouput a diagsoil.nc file? If not just bail out now. 85 if(.not.diagsoil) return 86 87 ! additional check: one can only output diagsoil.nc files 88 ! in lon-lat case (or 1D) 89 if (grid_type==unstructured) then 90 write(*,*) "writediagsoil: Error !!!" 91 write(*,*) "diagsoil.nc outputs not possible on unstructured grids!!" 92 call abort_physic("writediagsoil","impossible on unstructured grid",1) 93 endif 74 94 75 95 ! 1. Initialization step … … 398 418 399 419 end subroutine writediagsoil 420 421 end module writediagsoil_mod
Note: See TracChangeset
for help on using the changeset viewer.