Changeset 3893 for trunk/LMDZ.GENERIC/libf/phystd/soil_settings.F
- Timestamp:
- Aug 13, 2025, 7:53:49 PM (7 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/soil_settings.F
r3552 r3893 92 92 allocate(oldmlayer(dimlen),stat=ierr) 93 93 if (ierr.ne.0) then 94 write(*,*) 'soil_settings: failed allocation of oldmlayer!'95 stop94 call abort_physic("soil_settings", 95 & "failed allocation of oldmlayer",1) 96 96 endif 97 97 … … 128 128 allocate(oldmlayer(dimlen),stat=ierr) 129 129 if (ierr.ne.0) then 130 write(*,*) 'soil_settings: failed allocation of oldmlayer!'131 stop130 call abort_physic("soil_settings", 131 & "failed allocation of oldmlayer",1) 132 132 endif 133 133 endif … … 167 167 write(*,*) "soil_settings error: mlay1_soil=",mlay1_soil 168 168 write(*,*) " does not match comsoil_h lay1_soil=",lay1_soil 169 stop 169 call abort_physic("soil_settings", 170 & "mlay1_soil does not match lay1_soil",1) 170 171 endif 171 172 if ((abs(malpha-alpha_soil)/alpha_soil).gt.1.e-6) then 172 173 write(*,*) "soil_settings error: malpha=",malpha 173 174 write(*,*) " does not match comsoil_h alpha_soil=",alpha_soil 174 stop 175 call abort_physic("soil_settings", 176 & "malpha does not match alpha_soil",1) 175 177 endif 176 178 do iloop=1,nsoil … … 207 209 call get_field(nid,"inertiedat",surfinertia,found) 208 210 if (.not.found) then 209 write(*,*) "soil_settings: Failed loading <inertiedat>"210 call abort211 call abort_physic("soil_settings", 212 & "Failed loading <inertiedat>", 1) 211 213 endif 212 214 … … 223 225 allocate(oldinertiedat(ngrid,dimlen),stat=ierr) 224 226 if (ierr.ne.0) then 225 write(*,*) 'soil_settings: failed allocation of ', 226 & 'oldinertiedat!' 227 stop 227 call abort_physic("soil_settings", 228 & "failed allocation of oldinertiedat!",1) 228 229 endif 229 230 endif ! of if (.not.allocated(oldinertiedat)) 230 231 call get_field(nid,"inertiedat",oldinertiedat,found) 231 232 if (.not.found) then 232 write(*,*) "soil_settings: Failed loading <inertiedat>"233 call abort233 call abort_physic("soil_settings", 234 & "Failed loading <inertiedat>", 1) 234 235 endif 235 236 else ! put values in therm_i 236 237 call get_field(nid,"inertiedat",inertiedat,found) 237 238 if (.not.found) then 238 write(*,*) "soil_settings: Failed loading <inertiedat>"239 call abort239 call abort_physic("soil_settings", 240 & "Failed loading <inertiedat>", 1) 240 241 endif 241 242 ! endif … … 259 260 allocate(oldtsoil(ngrid,dimlen),stat=ierr) 260 261 if (ierr.ne.0) then 261 write(*,*) 'soil_settings: failed allocation of ', 262 & 'oldtsoil!' 263 stop 262 call abort_physic("soil_settings", 263 & "failed allocation of oldtsoil",1) 264 264 endif 265 265 endif 266 266 call get_field(nid,"tsoil",oldtsoil,found) 267 267 if (.not.found) then 268 write(*,*) "soil_settings: Failed loading <tsoil>"269 call abort268 call abort_physic("soil_settings", 269 & "Failed loading <tsoil>", 1) 270 270 endif 271 271 else ! put values in tsoil … … 273 273 & timeindex=indextime) 274 274 if (.not.found) then 275 write(*,*) "soil_settings: Failed loading <tsoil>"276 call abort275 call abort_physic("soil_settings", 276 & "Failed loading <tsoil>", 1) 277 277 endif 278 278 endif ! of if (interpol)
Note: See TracChangeset
for help on using the changeset viewer.