Ignore:
Timestamp:
Jan 20, 2026, 9:50:44 AM (3 days ago)
Author:
tbertrand
Message:

PLUTO PCM:
Adding Paleo options for Triton from Pluto.old
TB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3992 r4026  
    3838      use tabfi_mod, only: tab_cntrl_mod
    3939      use wstats_mod, only: callstats, wstats, mkstats
    40       use phyredem, only: physdem0, physdem1
     40      use phyredem, only: physdem0, physdem1, physdem0pal, physdem1pal
    4141      use planetwide_mod, only: planetwide_minval,planetwide_maxval,planetwide_sumval
    4242      use mod_phys_lmdz_para, only : is_master
     
    21742174
    21752175         if (paleo) then
    2176             ! time range for tendencies of ice flux qsurfyear
     2176            ! time range to be applied for tendencies of ice flux qsurfyear
    21772177            zdt_tot=year_day   ! Last year of simulation
    21782178
     2179            ! update new reservoir of ice on the surface
    21792180            masslost(:)=0.
    21802181            massacc(:)=0.
    2181 
    21822182            DO ig=1,ngrid
    2183                ! update new reservoir of ice on the surface
    21842183               DO iq=1,nq
    21852184                ! kg/m2 to be sublimed or condensed during paleoyears
     
    21872186                           paleoyears*365.25/(zdt_tot*daysec/86400.)
    21882187
    2189                ! special case if we sublime the entire reservoir
    2190                !! AF: TODO : fix following lines (real_area), using line below:
    2191             ! call planetwide_sumval((-qsurfyear(:,iq)-qsurf(:,iq))*cell_area(:),masslost)
    2192 
    2193                !  IF (-qsurfyear(ig,iq).gt.qsurf(ig,iq)) THEN
    2194                !    masslost(iq)=masslost(iq)+real_area(ig)*   &
    2195                !          (-qsurfyear(ig,iq)-qsurf(ig,iq))
    2196                !    qsurfyear(ig,iq)=-qsurf(ig,iq)
    2197                !  ENDIF
    2198 
    2199                !  IF (qsurfyear(ig,iq).gt.0.) THEN
    2200                !    massacc(iq)=massacc(iq)+real_area(ig)*qsurfyear(ig,iq)
    2201                !  ENDIF
    2202 
     2188                ! special case if we sublime the entire reservoir
     2189                IF (-qsurfyear(ig,iq).gt.qsurf(ig,iq)) THEN
     2190                   masslost(iq)=masslost(iq)+cell_area(ig)* &
     2191                         (-qsurfyear(ig,iq)-qsurf(ig,iq))
     2192                   qsurfyear(ig,iq)=-qsurf(ig,iq)
     2193                ENDIF
     2194                ! massacc needed to redistribute masslost
     2195                IF (qsurfyear(ig,iq).gt.0.) THEN
     2196                   massacc(iq)=massacc(iq)+cell_area(ig)*qsurfyear(ig,iq)
     2197                ENDIF
    22032198
    22042199               ENDDO
     
    22072202            DO ig=1,ngrid
    22082203               DO iq=1,nq
     2204                 ! New reservoir paleo
    22092205                 qsurfpal(ig,iq)=qsurf(ig,iq)+qsurfyear(ig,iq)
     2206                 ! Redistribution of some of the mass lost when entire reservoir has sublimed
     2207                 ! Accumulated mass is less than calculated because sublimed mass is less
    22102208                 IF (qsurfyear(ig,iq).gt.0.) THEN
    22112209                  qsurfpal(ig,iq)=qsurfpal(ig,iq)- &
     
    22142212               ENDDO
    22152213            ENDDO
     2214
    22162215            ! Finally ensure conservation of qsurf
    22172216            DO iq=1,nq
     
    22552254            ! create restartfi
    22562255            if (ngrid.ne.1) then
    2257                print*, "physdem1pal not yet implemented"
    2258                stop
    2259                !TODO: import this routine from pluto.old
    2260                ! call physdem1pal("restartfi.nc",long,lati,nsoilmx,nq, &
     2256               call physdem0pal("restartfi.nc",longitude,latitude,nsoilmx,ngrid,nlayer,nq, &
     2257                         ptimestep,pdaypal,time_phys,cell_area,          &
     2258                         albedo_bareground,zmea,zstd,zsig,zgam,zthe,     &
     2259                         oblipal,eccpal,tpalnew,adjustnew,phisfipal,peri_daypal) 
     2260 
     2261                 !call physdem1pal("restartfi.nc",long,lati,nsoilmx,nq, &
    22612262               !      ptimestep,pdaypal, &
    22622263               !      ztime_restart,tsurf,tsoil,emis,q2,qsurfpal, &
Note: See TracChangeset for help on using the changeset viewer.