Changeset 3183 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- Jan 25, 2024, 6:06:27 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r3139 r3183 1734 1734 1735 1735 else if (trim(modif) .eq. 'nslope') then 1736 write(*,*) 'set a new number of subgrid scale slope '1736 write(*,*) 'set a new number of subgrid scale slopes' 1737 1737 write(*,*) 'Current value=', nslope 1738 1738 write(*,*) 'Enter value for nslope (ex: 1,5,7)?' … … 1758 1758 1759 1759 allocate(default_def_slope(nslope_new+1)) 1760 !Sub-grid scale subslopes 1761 if (nslope_new.eq.7) then 1762 default_def_slope(1) = -43. 1763 default_def_slope(2) = -19. 1764 default_def_slope(3) = -9. 1765 default_def_slope(4) = -3. 1766 default_def_slope(5) = 3. 1767 default_def_slope(6) = 9. 1768 default_def_slope(7) = 19. 1769 default_def_slope(8) = 43. 1770 elseif (nslope_new.eq.5) then 1771 default_def_slope(1) = -43. 1772 default_def_slope(2) = -9. 1773 default_def_slope(3) = -3. 1774 default_def_slope(4) = 3. 1775 default_def_slope(5) = 9. 1776 default_def_slope(6) = 43. 1777 elseif (nslope_new.eq.1) then 1778 default_def_slope(1) = -50. 1779 default_def_slope(2) = 50. 1780 endif 1760 ! Sub-grid scale slopes parameters (minimum/maximun angles) 1761 select case(nslope) 1762 case(1) 1763 default_def_slope(1) = -50. 1764 default_def_slope(2) = 50. 1765 case(5) 1766 default_def_slope(1) = -43. 1767 default_def_slope(2) = -9. 1768 default_def_slope(3) = -3. 1769 default_def_slope(4) = 3. 1770 default_def_slope(5) = 9. 1771 default_def_slope(6) = 43. 1772 case(7) 1773 default_def_slope(1) = -43. 1774 default_def_slope(2) = -19. 1775 default_def_slope(3) = -9. 1776 default_def_slope(4) = -3. 1777 default_def_slope(5) = 3. 1778 default_def_slope(6) = 9. 1779 default_def_slope(7) = 19. 1780 default_def_slope(8) = 43. 1781 case default 1782 write(*,*) 'Number of slopes not possible: nslope should 1783 & be 1, 5 or 7!' 1784 call abort 1785 end select 1781 1786 1782 1787 do islope=1,nslope_new+1 … … 1785 1790 1786 1791 do islope=1,nslope_new 1787 def_slope_mean(islope) 1792 def_slope_mean(islope)=(def_slope(islope)+def_slope(islope+1))/2. 1788 1793 enddo 1789 1794 … … 1798 1803 call subslope_mola(ngridmx,nslope_new,def_slope,subslope_dist) 1799 1804 1800 ! Surfdat related stuff 1801 1805 ! Surfdat related stuff 1802 1806 allocate(tsurf_old_slope(ngridmx,nslope_old)) 1803 1807 allocate(qsurf_old_slope(ngridmx,nqtot,nslope_old)) … … 1805 1809 allocate(watercap_old_slope(ngridmx,nslope_old)) 1806 1810 allocate(perennial_co2_old_slope(ngridmx,nslope_old)) 1807 1808 1811 1809 1812 tsurf_old_slope(:,:)=tsurf(:,:) … … 1816 1819 1817 1820 ! Comsoil related stuff (tsoil) 1818 1819 1821 allocate(tsoil_old_slope(ngridmx,nsoilmx,nslope_old)) 1820 1822 allocate(inertiesoil_old_slope(ngridmx,nsoilmx,nslope_old)) … … 1829 1831 1830 1832 ! Dimradmars related stuff (albedo) 1831 1832 1833 allocate(albedo_old_slope(ngridmx,2,nslope_old)) 1833 1834 albedo_old_slope(:,:,:)=albedo(:,:,:)
Note: See TracChangeset
for help on using the changeset viewer.