Changeset 3971 for trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
- Timestamp:
- Nov 21, 2025, 2:37:14 PM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90 (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90
r3965 r3971 285 285 REAL flusurfold(ngrid,nq) ! old flux cond/sub kg.m-2.s-1 286 286 REAL zplev(ngrid,nlayer+1),zplay(ngrid,nlayer) 287 REAL vecnull(ngrid,nq) ! null vector used to check conservation of tracer 287 288 288 289 REAL,SAVE :: ptime0 ! store the first time … … 531 532 ! Variables set to 0 532 533 ! ~~~~~~~~~~~~~~~~~~ 534 vecnull(:,:) = 0.0 533 535 dtrad(:,:) = 0.0 534 536 fluxrad(:) = 0.0 … … 1182 1184 1183 1185 if (calldifv) then 1184 1186 zdqdif(:,:,:)=0. 1187 zdqsdif(:,:)=0. 1185 1188 zflubid(1:ngrid)=fluxrad(1:ngrid)+fluxgrd(1:ngrid) 1186 1189 … … 1361 1364 zdvadj(1:ngrid,1:nlayer)=0.0 1362 1365 zdhadj(1:ngrid,1:nlayer)=0.0 1363 1366 zdqadj(1:ngrid,1:nlayer,1:nq)=0.0 1364 1367 1365 1368 call convadj(ngrid,nlayer,nq,ptimestep, & … … 1385 1388 endif 1386 1389 1387 ! ! Test water conservation !AF24: removed 1390 ! Test tracer conservation 1391 if (methane.and.conservch4) then 1392 write(*,*) 'conservch4 calladj' 1393 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1394 igcm_ch4_gas,igcm_ch4_ice, & 1395 ptimestep,pplev,zdqadj,vecnull,'CH4','calladj') 1396 endif 1388 1397 1389 1398 endif ! end of 'calladj' … … 1430 1439 pdq(1:ngrid,1:nlayer,1:nq)=pdq(1:ngrid,1:nlayer,1:nq) + & 1431 1440 zdq_mix(1:ngrid,1:nlayer,1:nq) 1441 1442 ! Test tracer conservation 1443 if (methane.and.conservch4) then 1444 write(*,*) 'conservch4 nonoro' 1445 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1446 igcm_ch4_gas,igcm_ch4_ice, & 1447 ptimestep,pplev,zdq_mix,vecnull,'CH4','nonorog') 1448 endif 1449 1432 1450 ENDIF 1433 1434 1451 1435 1452 ENDIF ! of IF (calllott_nonoro) … … 1527 1544 zdqch4cloud(:,:,:)=0. 1528 1545 if ((methane).and.(metcloud).and.(.not.fast)) THEN 1546 zdqch4cloud(:,:,:)=0. 1529 1547 call ch4cloud(ngrid,nlayer,ptimestep, & 1530 1548 pplev,pplay,pdpsrf,zzlev,zzlay, pt,pdt, & … … 1553 1571 ENDDO 1554 1572 ENDDO 1573 1574 ! Test tracer conservation 1575 if (methane.and.conservch4) then 1576 write(*,*) 'conservch4 ch4clouds' 1577 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1578 igcm_ch4_gas,igcm_ch4_ice, & 1579 ptimestep,pplev,zdqch4cloud,zdqsch4cloud,'CH4',' cloud ') 1580 endif 1581 1555 1582 end if 1556 1583 … … 1558 1585 ! CO ice condensation in the atmosphere 1559 1586 !-------------------------------------- 1560 zdqcocloud(:,:,:)=0.1561 1587 IF ((carbox).and.(monoxcloud).and.(.not.fast)) THEN 1588 zdqcocloud(:,:,:)=0. 1562 1589 call cocloud(ngrid,nlayer,ptimestep, & 1563 1590 pplev,pplay,pdpsrf,zzlev,zzlay, pt,pdt, & … … 1614 1641 zdqphot_prec,zdqphot_ch4,zdqconv_prec,declin) 1615 1642 pdq(:,:,:) = pdq(:,:,:) + pdqmufi_prod(:,:,:) ! Should be updated 1643 1644 ! Test tracer conservation 1645 if (methane.and.conservch4) then 1646 write(*,*) 'conservch4 hazeprod' 1647 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1648 igcm_ch4_gas,igcm_ch4_ice, & 1649 ptimestep,pplev,pdqmufi_prod,vecnull,'CH4','hazepro') 1650 endif 1651 1616 1652 ENDIF ! end call_haze_prod_pCH4 1617 1653 … … 1673 1709 ENDIF ! end fast.and.fasthaze 1674 1710 1711 ! Test tracer conservation 1712 if (methane.and.conservch4) then 1713 write(*,*) 'conservch4 zdqhaze' 1714 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1715 igcm_ch4_gas,igcm_ch4_ice, & 1716 ptimestep,pplev,zdqhaze,vecnull,'CH4','zdqhaze') 1717 endif 1718 1675 1719 ! Sedimentation. 1676 1720 if (sedimentation) then … … 1691 1735 end if ! end of 'sedimentation' 1692 1736 1737 ! Test tracer conservation 1738 if (methane.and.conservch4) then 1739 write(*,*) 'conservch4 sedim' 1740 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1741 igcm_ch4_gas,igcm_ch4_ice, & 1742 ptimestep,pplev,zdqsed,zdqssed,'CH4',' sedim ') 1743 endif 1744 1693 1745 ENDIF ! end callmufi 1694 1746 … … 1726 1778 pdpsrf(1:ngrid) = pdpsrf(1:ngrid) + zdpsrfmr(1:ngrid) 1727 1779 zdtsurf(1:ngrid) = zdtsurf(1:ngrid) + zdtsurfmr(1:ngrid) 1780 1781 ! Test tracer conservation 1782 if (methane.and.conservch4) then 1783 write(*,*) 'conservch4 mass redistrib' 1784 call testconserv(ngrid,nlayer,nq,pq,pdq,qsurf,dqsurf, & 1785 igcm_ch4_gas,igcm_ch4_ice, & 1786 ptimestep,pplev,zdqmr,zdqsurfmr,'CH4','massred') 1787 endif 1728 1788 1729 1789 endif … … 2295 2355 ! Total energy balance diagnostics 2296 2356 if(callrad)then 2357 call write_output("mu0","ycosinus incident angle"," ",mu0) 2297 2358 call write_output("ALB","Surface albedo"," ",albedo_equivalent) 2298 2359 call write_output("ASR","absorbed stellar rad.","W m-2",fluxabs_sw)
Note: See TracChangeset
for help on using the changeset viewer.
