- Timestamp:
- May 13, 2025, 6:05:05 PM (7 weeks ago)
- Location:
- trunk/LMDZ.PLUTO
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/changelog.txt
r3721 r3760 1874 1874 Some update/cleanup of examples in "startarchive2icosa", now that the 1875 1875 "rearrange" step is no longer needed. 1876 1877 == 13/05/2025 == EM 1878 Fix issue with parallelism in writediagsoil. And introduce the "diagsoil" 1879 flag to trigger outputing a diagsoil.nc file or not. 1880 -
trunk/LMDZ.PLUTO/libf/phypluto/inifis_mod.F90
r3758 r3760 26 26 use surfdat_h 27 27 use wstats_mod, only: callstats 28 use writediagsoil_mod, only: diagsoil 28 29 use ioipsl_getin_p_mod, only : getin_p 29 30 use mod_phys_lmdz_para, only : is_parallel, is_master, bcast … … 261 262 262 263 if (is_master) write(*,*) trim(rname)//& 264 ": Write sub-surface fields in file diagsoil.nc ?" 265 diagsoil=.false. ! default value 266 call getin_p("diagsoil",diagsoil) 267 if (is_master) write(*,*) trim(rname)//" diagsoil = ",diagsoil 268 269 if (is_master) write(*,*) trim(rname)//& 263 270 ": Test energy conservation of model physics ?" 264 271 enertest=.false. ! default value -
trunk/LMDZ.PLUTO/libf/phypluto/writediagsoil.F90
r3749 r3760 2 2 3 3 implicit none 4 5 logical,save :: diagsoil ! global flag to trigger generating a diagsoil.nc 6 ! file or not. Initialized in inifis() 4 7 5 8 contains … … 80 83 #endif 81 84 82 ! 0. This routine shoul only be used in lon-lat case 85 ! 0. Do we ouput a diagsoil.nc file? If not just bail out now. 86 if(.not.diagsoil) return 87 88 ! This routine should only be used in lon-lat case 83 89 if (grid_type==unstructured) then 84 return 90 write(*,*) "writediagsoil: Error !!!" 91 write(*,*) "diagsoil.nc outputs not possible on unstructured grids!!" 92 call abort_physic("writediagsoil","impossible on unstructured grid",1) 85 93 endif 86 94 … … 96 104 write(*,*) " firstname string not long enough!!" 97 105 write(*,*) " increase its size to at least ",len_trim(name) 98 stop106 call abort_physic("writediagsoil","firstname too short",1) 99 107 endif 100 108 … … 107 115 if (ierr.ne.NF_NOERR) then 108 116 write(*,*)'writediagsoil: Error, failed creating file '//trim(filename) 109 stop117 call abort_physic("writediagsoil","failed creating"//trim(filename),1) 110 118 endif 119 endif ! of if (is_master) 111 120 112 121 #ifdef CPP_PARA … … 120 129 #endif 121 130 131 if (is_master) then 122 132 ! build inertia() and area() 123 133 if (klon_glo>1) then … … 187 197 if (ierr.ne.NF_NOERR) then 188 198 write(*,*)"writediagsoil: Failed writing date to time variable" 189 stop199 call abort_physic("writediagsoil","failed writing time",1) 190 200 endif 191 201 endif ! of if (is_master)
Note: See TracChangeset
for help on using the changeset viewer.