Changeset 4026 for trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
- Timestamp:
- Jan 20, 2026, 9:50:44 AM (3 days ago)
- File:
-
- 1 edited
-
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90 (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
r3992 r4026 38 38 use tabfi_mod, only: tab_cntrl_mod 39 39 use wstats_mod, only: callstats, wstats, mkstats 40 use phyredem, only: physdem0, physdem1 40 use phyredem, only: physdem0, physdem1, physdem0pal, physdem1pal 41 41 use planetwide_mod, only: planetwide_minval,planetwide_maxval,planetwide_sumval 42 42 use mod_phys_lmdz_para, only : is_master … … 2174 2174 2175 2175 if (paleo) then 2176 ! time range for tendencies of ice flux qsurfyear2176 ! time range to be applied for tendencies of ice flux qsurfyear 2177 2177 zdt_tot=year_day ! Last year of simulation 2178 2178 2179 ! update new reservoir of ice on the surface 2179 2180 masslost(:)=0. 2180 2181 massacc(:)=0. 2181 2182 2182 DO ig=1,ngrid 2183 ! update new reservoir of ice on the surface2184 2183 DO iq=1,nq 2185 2184 ! kg/m2 to be sublimed or condensed during paleoyears … … 2187 2186 paleoyears*365.25/(zdt_tot*daysec/86400.) 2188 2187 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 2203 2198 2204 2199 ENDDO … … 2207 2202 DO ig=1,ngrid 2208 2203 DO iq=1,nq 2204 ! New reservoir paleo 2209 2205 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 2210 2208 IF (qsurfyear(ig,iq).gt.0.) THEN 2211 2209 qsurfpal(ig,iq)=qsurfpal(ig,iq)- & … … 2214 2212 ENDDO 2215 2213 ENDDO 2214 2216 2215 ! Finally ensure conservation of qsurf 2217 2216 DO iq=1,nq … … 2255 2254 ! create restartfi 2256 2255 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, & 2261 2262 ! ptimestep,pdaypal, & 2262 2263 ! ztime_restart,tsurf,tsoil,emis,q2,qsurfpal, &
Note: See TracChangeset
for help on using the changeset viewer.
