Changeset 2952 for trunk/LMDZ.MARS
- Timestamp:
- Apr 28, 2023, 2:28:08 PM (19 months ago)
- Location:
- trunk/LMDZ.MARS/libf
- Files:
-
- 4 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 -
trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90
r2951 r2952 84 84 allocate(alph(ngrid,nsoilmx-1,nslope)) 85 85 allocate(beta(ngrid,nsoilmx-1,nslope)) 86 allocate(flux_geo(ngrid,nslope)) 86 87 87 88 end subroutine ini_comsoil_h_slope_var … … 99 100 if (allocated(alph)) deallocate(alph) 100 101 if (allocated(beta)) deallocate(beta) 102 if (allocated(flux_geo)) deallocate(flux_geo) 101 103 102 104 end subroutine end_comsoil_h_slope_var -
trunk/LMDZ.MARS/libf/phymars/iostart.F90
r2946 r2952 836 836 ierr=NF90_REDEF(nid_restart) 837 837 #ifdef NC_DOUBLE 838 if(field_name.eq. "tsoil" ) then838 if(field_name.eq. "tsoil".or. field_name.eq. "inertiesoil") then 839 839 ierr=NF90_DEF_VAR(nid_restart,field_name,NF90_DOUBLE,& 840 840 (/idim2,idim3,idim8,idim7/),nvarid) … … 844 844 endif 845 845 #else 846 if(field_name.eq. "tsoil" ) then846 if(field_name.eq. "tsoil".or. field_name.eq. "inertiesoil") then 847 847 ierr=NF90_DEF_VAR(nid_restart,field_name,NF90_FLOAT,& 848 848 (/idim2,idim3,idim8,idim7/),nvarid) … … 1015 1015 IF (LEN_TRIM(title) > 0) ierr=NF90_PUT_ATT(nid_restart,nvarid,"title",title) 1016 1016 ierr=NF90_ENDDEF(nid_restart) 1017 1018 1017 firsttime=.false. 1019 1018 if(first_time1d) first_time1d=.false.
Note: See TracChangeset
for help on using the changeset viewer.