Changeset 2507 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Apr 28, 2021, 1:00:13 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2501 r2507 87 87 USE mod_phys_lmdz_omp_data, ONLY: is_omp_master 88 88 #endif 89 USE temps_mod, ONLY: day_end 89 90 90 91 #ifdef CPP_XIOS … … 518 519 c 1.1 Initialisation only at first call 519 520 c --------------------------------------- 521 520 522 IF (firstcall) THEN 521 523 … … 688 690 if (callslope) call getslopes(ngrid,phisfi) 689 691 ! no need to create a restart file in 1d 690 call physdem0("restartfi.nc",longitude,latitude, 692 if (ecritstart.GT.0) then 693 call physdem0("restartfi.nc",longitude,latitude, 691 694 & nsoilmx,ngrid,nlayer,nq, 692 695 & ptimestep,pday,time_phys,cell_area, 693 696 & albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe, 694 697 & hmons,summit,base) 698 else 699 call physdem0("restartfi.nc",longitude,latitude, 700 & nsoilmx,ngrid,nlayer,nq, 701 & ptimestep,float(day_end),time_phys,cell_area, 702 & albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe, 703 & hmons,summit,base) 704 endif 695 705 endif 696 706 … … 2294 2304 . .or. lastcall ) THEN 2295 2305 2296 ztime_fin = pday + ptime + ptimestep/(float(iphysiq)*daysec) 2297 . - day_ini - time_phys 2298 IF (grid_type==unstructured) THEN 2306 IF (grid_type==unstructured) THEN !IF DYNAMICO 2307 2299 2308 ! When running Dynamico, no need to add a dynamics time step to ztime_fin 2300 2309 IF (ptime.LE. 1.E-10) THEN … … 2306 2315 . - day_ini - time_phys 2307 2316 ENDIF 2317 2318 ELSE ! IF LMDZ 2319 2320 if (ecritstart.GT.0) then !IF MULTIPLE RESTARTS nothing change 2321 ztime_fin = pday + ptime + ptimestep/(float(iphysiq)*daysec) 2322 . - day_ini - time_phys 2323 else !IF ONE RESTART final time in top of day_end 2324 ztime_fin = pday + ptime + ptimestep/(float(iphysiq)*daysec) 2325 . - day_ini - time_phys-(day_end-day_ini) 2326 endif 2327 2308 2328 ENDIF 2309 2329 write(*,'(A,I7,A,F12.5)') … … 2311 2331 . icount,' date=',ztime_fin 2312 2332 2313 2314 2333 call physdem1("restartfi.nc",nsoilmx,ngrid,nlayer,nq, 2315 2334 . ptimestep,ztime_fin,
Note: See TracChangeset
for help on using the changeset viewer.