Changeset 365 for trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
- Timestamp:
- Nov 9, 2011, 3:46:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
r305 r365 447 447 ! read startfi (initial parameters) 448 448 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 449 449 450 450 call phyetat0("startfi.nc",0,0,nsoilmx,nq, & 451 451 day_ini,time_phys,tsurf,tsoil,emis,q2,qsurf, & 452 452 cloudfrac,totcloudfrac,hice) 453 454 453 455 454 if (pday.ne.day_ini) then … … 503 502 close(128) 504 503 505 if(num_run.ne.0.and.mod(num_run,3).eq.0)then 504 if(num_run.ne.0.and.mod(num_run,2).eq.0)then 505 !if(num_run.ne.0.and.mod(num_run,3).eq.0)then 506 506 print*,'Updating ice at end of this year!' 507 507 ice_update=.true. … … 512 512 ! define surface as continent or ocean 513 513 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 ! print*,'OCEAN EVERYWHERE FOR GJ581d RUNS'515 514 do ig=1,ngridmx 516 515 rnat(ig)=1 … … 565 564 qzero1D=0.0 566 565 567 watertest=.true. ! standard for now 566 if(enertest)then 567 watertest = .true. 568 endif 569 568 570 if(ngrid.eq.1)then 569 571 qzero1D = 0.0 … … 933 935 dEtot=0.0 934 936 dEtots=0.0 937 935 938 vdifcdE(:)=0.0 936 939 do ig = 1, ngrid … … 946 949 947 950 enddo 951 dEtot = dEtot - zflubid(ig)*area(ig) ! subtract flux from ground 952 948 953 dEtots = dEtots + capcal(ig)*zdtsdif(ig)*area(ig) 949 954 vdifcdE(ig) = vdifcdE(ig) + capcal(ig)*zdtsdif(ig) … … 957 962 endif 958 963 !------------------------- 964 959 965 960 966 !------------------------- … … 1608 1614 endif ! of if (tracer) 1609 1615 1610 1611 ! print*,'we got this far 1'1612 1613 1616 !----------------------------------------------------------------------- 1614 1617 ! 9. Surface and sub-surface soil temperature … … 1707 1710 Ts1 = Ts1 + area(ig)*tsurf(ig) 1708 1711 Ts2 = min(Ts2,tsurf(ig)) 1709 1712 Ts3 = max(Ts3,tsurf(ig)) 1710 1713 TsS = TsS + area(ig)*tsoil(ig,nsoilmx) 1711 1714 end do … … 1907 1910 delta_ice = (qsurf(ig,igcm_h2o_ice)-ice_initial(ig)) 1908 1911 1909 ! add one hundred years/timesteps of evolution1912 ! add multiple years of evolution 1910 1913 qsurf_hist(ig,igcm_h2o_ice) = & 1911 qsurf_hist(ig,igcm_h2o_ice) + delta_ice*100.0 1914 !qsurf_hist(ig,igcm_h2o_ice) + delta_ice*100.0 1915 qsurf_hist(ig,igcm_h2o_ice) + delta_ice*10.0 1912 1916 1913 1917 ! if ice has gone -ve, set to zero 1914 1918 if(qsurf_hist(ig,igcm_h2o_ice).lt.0.0)then 1915 1919 qsurf_hist(ig,igcm_h2o_ice) = 0.0 1916 qsurf_hist(ig,igcm_h2o_vap) = 0.01920 !qsurf_hist(ig,igcm_h2o_vap) = 0.0 1917 1921 endif 1918 1922 1919 ! set maximum to ice1920 if( qsurf_hist(ig,igcm_h2o_ice).gt.1.e3)then1921 qsurf_hist(ig,igcm_h2o_ice) = 1.e31922 qsurf_hist(ig,igcm_h2o_vap) = 0.01923 ! if ice is seasonal, set to zero (NEW) 1924 if(ice_min(ig).lt.0.01)then 1925 qsurf_hist(ig,igcm_h2o_ice) = 0.0 1926 !qsurf_hist(ig,igcm_h2o_vap) = 0.0 1923 1927 endif 1924 1928 … … 1940 1944 write(*,*)'PHYSIQ: for physdem ztime_fin =',ztime_fin 1941 1945 call physdem1("restartfi.nc",long,lati,nsoilmx,nq, & 1942 ! ptimestep,pday,ztime_fin,tsurf,tsoil,emis,q2,qsurf, &1943 1946 ptimestep,pday,ztime_fin,tsurf,tsoil,emis,q2,qsurf_hist, & 1944 1947 area,albedodat,inertiedat,zmea,zstd,zsig,zgam,zthe, &
Note: See TracChangeset
for help on using the changeset viewer.