Changeset 2646 for trunk/LMDZ.MARS
- Timestamp:
- Mar 24, 2022, 9:53:13 AM (3 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2644 r2646 3671 3671 == 21/03/2022 == RV 3672 3672 OMP : update the batch example for Occigen and the README associated 3673 3674 == 24/03/2022 == EM 3675 Small update of the handling writing fields in the restartfi.nc; use a 3676 dedicated flag to avoid calls to mod() with a zero argument which causes 3677 recent gfortran (9+) to complain about a division by zero when in debug mode. -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2643 r2646 523 523 !$OMP THREADPRIVATE(check_physics_inputs,check_physics_outputs) 524 524 525 logical :: write_restart 525 526 526 527 c======================================================================= … … 2386 2387 c thus we store for time=time+dtvr 2387 2388 2388 IF( ((ecritstart.GT.0) .and. 2389 . (MOD(icount*iphysiq,ecritstart).EQ.0)) 2390 . .or. lastcall ) THEN 2389 ! default: not writing a restart file at this time step 2390 write_restart=.false. 2391 IF (ecritstart.GT.0) THEN 2392 ! For when we store multiple time steps in the restart file 2393 IF (MODULO(icount*iphysiq,ecritstart).EQ.0) THEN 2394 write_restart=.true. 2395 ENDIF 2396 ENDIF 2397 IF (lastcall) THEN 2398 ! Always write a restart at the end of the simulation 2399 write_restart=.true. 2400 ENDIF 2391 2401 2392 IF (grid_type==unstructured) THEN !IF DYNAMICO 2402 IF (write_restart) THEN 2403 IF (grid_type==unstructured) THEN !IF DYNAMICO 2393 2404 2394 2405 ! When running Dynamico, no need to add a dynamics time step to ztime_fin … … 2405 2416 endif 2406 2417 2407 ELSE ! IF LMDZ2418 ELSE ! IF LMDZ 2408 2419 2409 2420 if (ecritstart.GT.0) then !IF MULTIPLE RESTARTS nothing change … … 2415 2426 endif 2416 2427 2417 ENDIF2428 ENDIF ! of IF (grid_type==unstructured) 2418 2429 write(*,'(A,I7,A,F12.5)') 2419 . 'PHYSIQ: Ecriture du fichierrestartfi ; icount=',2430 . 'PHYSIQ: writing in restartfi ; icount=', 2420 2431 . icount,' date=',ztime_fin 2421 2432 … … 2426 2437 . watercap) 2427 2438 2428 ENDIF 2439 ENDIF ! of IF (write_restart) 2429 2440 #endif 2430 2441
Note: See TracChangeset
for help on using the changeset viewer.