Ignore:
Timestamp:
Jul 8, 2021, 3:54:30 PM (3 years ago)
Author:
romain.vande
Message:

MARS GCM:

update of r2507: correction for time output in the case of multiple restart files
RV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2541 r2544  
    516516      pdq(:,:,:) = 0.
    517517
    518 
    519518c 1. Initialisation:
    520519c -----------------
     
    700699             call physdem0("restartfi.nc",longitude,latitude,
    701700     &                   nsoilmx,ngrid,nlayer,nq,
    702      &                   ptimestep,pday,time_phys,cell_area,
     701     &                   ptimestep,pday,0.,cell_area,
    703702     &                   albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe,
    704703     &                   hmons,summit,base)
     
    706705             call physdem0("restartfi.nc",longitude,latitude,
    707706     &                   nsoilmx,ngrid,nlayer,nq,
    708      &                   ptimestep,float(day_end),time_phys,cell_area,
     707     &                   ptimestep,float(day_end),0.,cell_area,
    709708     &                   albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe,
    710709     &                   hmons,summit,base)
     
    754753#ifdef CPP_XIOS     
    755754      ! update XIOS time/calendar
    756       call update_xios_timestep
    757 #endif     
     755      call update_xios_timestep     
     756#endif
     757
     758
    758759
    759760c     Initialize various variables
     
    12461247     &                pdqtop,wtop,dsodust,dsords,dsotop,
    12471248     &                tau_pref_scenario,tau_pref_gcm)
    1248      
    12491249                   
    12501250c      update the tendencies of both dust after vertical transport
     
    15581558     &                nq,tau,tauscaling,rdust,rice,nuice,
    15591559     &                rsedcloud,rhocloud,totcloudfrac)
    1560 
    15611560c Temperature variation due to latent heat release
    15621561           if (activice) then
     
    16621661     &           rhocloud, rsedcloudco2,rhocloudco2,zzlev,zdqssed_co2,
    16631662     &           pdu,pu,zcondicea_co2microp, co2ice)
    1664 
    16651663
    16661664c Temperature variation due to latent heat release
     
    18671865     $                   zdqcloud,zdqscloud,tau(:,1),co2ice,
    18681866     $                   pu,pdu,pv,pdv,surfdust,surfice)
    1869 
    18701867            endif ! of if (modulo(icount-1,ichemistry).eq.0)
    18711868
     
    23382335
    23392336          if (ecritstart.GT.0) then !IF MULTIPLE RESTARTS nothing change
    2340           ztime_fin = pday + ptime  + ptimestep/(float(iphysiq)*daysec)
    2341      .               - day_ini - time_phys
     2337          ztime_fin = pday - day_ini + ptime 
     2338     .               + ptimestep/(float(iphysiq)*daysec)
    23422339          else !IF ONE RESTART final time in top of day_end
    2343           ztime_fin = pday + ptime  + ptimestep/(float(iphysiq)*daysec)
    2344      .               - day_ini - time_phys-(day_end-day_ini)
     2340          ztime_fin = pday - day_ini-(day_end-day_ini)
     2341     .               + ptime  + ptimestep/(float(iphysiq)*daysec)
    23452342          endif
    23462343
     
    38883885      CALL send_xios_field("u",zu)
    38893886      CALL send_xios_field("v",zv)
     3887
    38903888      !CREATE IF CO2CYCLE
    3891       !if (tracer.and.(igcm_co2.ne.0)) then
    3892       !   CALL send_xios_field("co2",zq(1,1,igcm_co2))
    3893       !endif
    3894 
     3889      if (tracer.and.(igcm_co2.ne.0)) then
     3890         CALL send_xios_field("co2",zq(:,:,igcm_co2))
     3891      endif
    38953892
    38963893      if (lastcall.and.is_omp_master) then
Note: See TracChangeset for help on using the changeset viewer.