Changeset 2952 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Apr 28, 2023, 2:28:08 PM (20 months ago)
- Location:
- trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r2943 r2952 32 32 & ini_surfdat_h_slope_var,end_surfdat_h_slope_var 33 33 use comsoil_h, only: inertiedat, inertiesoil,layer, mlayer, 34 & nsoilmx, tsoil,ini_comsoil_h_slope_var, end_comsoil_h_slope_var 34 & nsoilmx,tsoil,ini_comsoil_h_slope_var, end_comsoil_h_slope_var, 35 & flux_geo 35 36 use control_mod, only: day_step, iphysiq, anneeref, planet_type 36 37 use geometry_mod, only: longitude,latitude,cell_area … … 196 197 REAL,ALLOCATABLE :: watercap_old_slope(:,:) ! Surface water ice (kg.m-2) 197 198 REAL,ALLOCATABLE :: tsoil_old_slope(:,:,:) 199 REAL,ALLOCATABLE :: inertiesoil_old_slope(:,:,:) 198 200 REAL,ALLOCATABLE :: albedo_old_slope(:,:,:) ! Surface albedo in each solar band 201 REAL,ALLOCATABLE :: flux_geo_old_slope(:,:) 199 202 integer :: iflat 200 203 integer :: nslope_old, nslope_new … … 1798 1801 allocate(watercap_old_slope(ngridmx,nslope_old)) 1799 1802 1803 1800 1804 tsurf_old_slope(:,:)=tsurf(:,:) 1801 1805 qsurf_old_slope(:,:,:)=qsurf(:,:,:) … … 1809 1813 1810 1814 allocate(tsoil_old_slope(ngridmx,nsoilmx,nslope_old)) 1811 1815 allocate(inertiesoil_old_slope(ngridmx,nsoilmx,nslope_old)) 1816 allocate(flux_geo_old_slope(ngridmx,nslope_old)) 1817 1818 inertiesoil_old_slope(:,:,:)=inertiesoil(:,:,:) 1812 1819 tsoil_old_slope(:,:,:)=tsoil(:,:,:) 1820 flux_geo_old_slope(:,:)=flux_geo(:,:) 1813 1821 1814 1822 call end_comsoil_h_slope_var … … 1831 1839 tsoil(:,:,islope)=tsoil_old_slope(:,:,1) 1832 1840 albedo(:,:,islope)=albedo_old_slope(:,:,1) 1841 inertiesoil(:,:,islope)=inertiesoil_old_slope(:,:,1) 1842 flux_geo(:,islope)=flux_geo_old_slope(:,1) 1833 1843 enddo 1834 1844 elseif(nslope_new.eq.1) then … … 1839 1849 tsoil(:,:,1)=tsoil_old_slope(:,:,iflat) 1840 1850 albedo(:,:,1)=albedo_old_slope(:,:,iflat) 1851 inertiesoil(:,:,1)=inertiesoil_old_slope(:,:,iflat) 1852 flux_geo(:,1)=flux_geo_old_slope(:,iflat) 1841 1853 elseif(nslope_old.eq.5 .and. nslope_new.eq.7) then 1842 1854 do islope=1,nslope_new … … 1847 1859 tsoil(:,:,islope)=tsoil_old_slope(:,:,iflat) 1848 1860 albedo(:,:,islope)=albedo_old_slope(:,:,iflat) 1861 inertiesoil(:,:,islope)=inertiesoil_old_slope(:,:,iflat) 1862 flux_geo(:,islope)=flux_geo_old_slope(:,iflat) 1849 1863 enddo 1850 1864 elseif(nslope_old.eq.7 .and. nslope_new.eq.5) then … … 1856 1870 tsoil(:,:,islope)=tsoil_old_slope(:,:,iflat) 1857 1871 albedo(:,:,islope)=albedo_old_slope(:,:,iflat) 1872 inertiesoil(:,:,islope)=inertiesoil_old_slope(:,:,iflat) 1873 flux_geo(:,islope)=flux_geo_old_slope(:,iflat) 1858 1874 enddo 1859 1875 else -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/write_archive.F
r2943 r2952 126 126 ierr=NF_INQ_VARID(nid,nom,varid) 127 127 128 if(nom.eq."tsoil" ) then128 if(nom.eq."tsoil" .or. nom.eq."inertiesoil") then 129 129 130 130 if (ierr.ne.NF_NOERR) then ! variable not defined yet
Note: See TracChangeset
for help on using the changeset viewer.