Changeset 2926 for trunk/LMDZ.MARS
- Timestamp:
- Mar 31, 2023, 11:48:38 AM (20 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2924 r2926 3970 3970 + Minor correction of iostart error message. 3971 3971 3972 ==31/03/2023 == RV 3973 The 1D model always output a restarfi 3974 -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F
r2924 r2926 686 686 687 687 688 689 690 688 ! Initialize soil properties and temperature 691 689 ! ------------------------------------------ … … 792 790 & tsurf,tsoil,albedo,emis,q2,qsurf,tauscaling, 793 791 & totcloudfrac,wstar,watercap) 794 else795 CALL phyetat0 ("startfi.nc",0,0,796 & nsoilmx,ngrid,nlayer,nq,797 & day0,time,798 & tsurf,tsoil,albedo_read,emis,799 & q2,qsurf,tauscaling,totcloudfrac,wstar,800 & watercap,def_slope,def_slope_mean,subslope_dist)801 day=real(day0)802 albedo(1,1)=albedo_read(1,1,1)803 792 endif !(.not. startfile_1D ) 804 793 … … 950 939 CALL endg1d(1,nlayer,zlay/1000.,ndt) 951 940 952 c if(startfile_1D) then953 c call physdem0("restartfi.nc",longitude,latitude,nsoilmx,ngrid,954 c & llm,nq,dtphys,float(day0),0.,cell_area,955 c & albedodat,inertiedat,def_slope,subslope_dist)956 c call physdem1("restartfi.nc",nsoilmx,ngrid,llm,nq,957 c & dtphys,time,958 c & tsurf,tsoil,albedo,emis,q2,qsurf,tauscaling,959 c & totcloudfrac,wstar,watercap)960 c endif! startfile_1D961 962 941 write(*,*) "testphys1d: Everything is cool." 963 942 -
trunk/LMDZ.MARS/libf/phymars/iostart.F90
r2924 r2926 5 5 INTEGER,SAVE :: nid_start ! NetCDF file identifier for startfi.nc file 6 6 INTEGER,SAVE :: nid_restart ! NetCDF file identifier for restartfi.nc file 7 LOGICAL,SAVE :: first_time1d=.false. 7 8 8 9 ! restartfi.nc file dimension identifiers: (see open_restartphy()) … … 472 473 INTEGER :: ierr 473 474 LOGICAL,SAVE :: already_created=.false. 475 LOGICAL,SAVE :: already_created_restarfi_1d=.false. 476 477 if(klon_glo.eq.1 .and. filename.eq."restartfi.nc" .and. .not.already_created_restarfi_1d) then 478 already_created=.false. 479 already_created_restarfi_1d=.true. 480 first_time1d=.true. 481 endif 474 482 475 483 IF (is_master) THEN … … 995 1003 IF (var_name=="Time") THEN 996 1004 ! Very specific case of "Time" variable 997 if (firsttime ) then1005 if (firsttime .or. first_time1d) then 998 1006 ! Create the "Time variable" 999 1007 ierr=NF90_REDEF(nid_restart) … … 1009 1017 1010 1018 firsttime=.false. 1019 if(first_time1d) first_time1d=.false. 1011 1020 endif 1012 1021 ! Append "time" value -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2924 r2926 545 545 546 546 logical :: write_restart 547 logical,save :: startfile_1D548 547 549 548 c======================================================================= … … 749 748 750 749 #ifndef MESOSCALE 751 startfile_1D=.false. 752 call getin("startfile_1D",startfile_1D) 753 if (ngrid.ne.1 .or. startfile_1D) then 750 if(ngrid.ne.1) then 754 751 ! no need to compute slopes when in 1D; it is an input 755 756 ! no need to create a restart file in 1d 752 if (callslope) call getslopes(ngrid,phisfi) 753 endif !1D 757 754 if (ecritstart.GT.0) then 758 755 call physdem0("restartfi.nc",longitude,latitude, … … 768 765 & subslope_dist) 769 766 endif 770 endif771 767 772 768 c Initialize mountain mesh fraction for the entrainment by top flows param. … … 2551 2547 c ---------------------------------------------------------- 2552 2548 2553 IF (startfile_1D) THEN2554 2555 2549 #ifndef MESOSCALE 2556 2550 c ------------------------------------------------------------------- … … 2615 2609 2616 2610 #endif 2617 2618 ENDIF ! startfile_1D2619 2611 2620 2612 IF (ngrid.NE.1) then
Note: See TracChangeset
for help on using the changeset viewer.