Changeset 2832 for trunk/LMDZ.MARS/libf
- Timestamp:
- Nov 25, 2022, 4:05:58 PM (2 years ago)
- Location:
- trunk/LMDZ.MARS/libf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/lect_start_archive.F
r2828 r2832 25 25 implicit none 26 26 27 #include "dimensions.h"28 #include "paramet.h"29 #include "comgeom2.h"30 #include "netcdf.inc"27 include "dimensions.h" 28 include "paramet.h" 29 include "comgeom2.h" 30 include "netcdf.inc" 31 31 c======================================================================= 32 32 c Declarations … … 196 196 real :: tmpval ! to store a temporary variable/value 197 197 198 ! flag to check if CO2 surface ice is in "co2ice" (old start_archive) 199 ! then it is set to .true. or else it is in "co2_surf" (newer 200 ! start_archive) and then .false. 201 logical :: old_co2ice=.false. 198 202 c======================================================================= 199 203 … … 702 706 count=(/imold+1,jmold+1,1,0/) 703 707 704 ierr = NF_INQ_VARID (nid, "co2", nvarid) 705 IF (ierr .NE. NF_NOERR) THEN 706 PRINT*, "lect_start_archive: <co2> is missing" 707 CALL abort 708 ! look for CO2ice on the surface 709 ! first try the "old" co2ice field for retro-compatibility: 710 ierr = NF_INQ_VARID (nid, "co2ice", nvarid) 711 IF (ierr .EQ. NF_NOERR) THEN 712 WRITE(*,*)" Found co2ice => this is an 'old' start_archive" 713 WRITE(*,*)" will read in 'co2ice' instead of 'co2_surf'" 714 old_co2ice=.true. 715 ELSE 716 ! no 'co2ice', look for co2_surf instead 717 ierr = NF_INQ_VARID (nid, "co2ice", nvarid) 718 IF (ierr .NE. NF_NOERR) THEN 719 PRINT*, "lect_start_archive: <co2_surf> is missing" 720 PRINT*, NF_STRERROR(ierr) 721 CALL abort 722 ENDIF 708 723 ENDIF 709 724 #ifdef NC_DOUBLE … … 713 728 #endif 714 729 IF (ierr .NE. NF_NOERR) THEN 715 PRINT*, "lect_start_archive: Failed loading <co2>"716 717 730 PRINT*, "lect_start_archive: Failed loading <co2ice>" 731 PRINT*, NF_STRERROR(ierr) 732 CALL abort 718 733 ENDIF 719 734 c … … 878 893 if(txt.eq."co2_surf") then 879 894 igcm_co2=iq 895 if (old_co2ice) then 896 ! CO2 surface ice has already been loaded from "co2ice" 897 cycle 898 endif 880 899 endif 881 900 ENDIF ! of IF (oldtracernames) -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r2828 r2832 1786 1786 & nsoilmx,ngridmx,llm, 1787 1787 & nqtot,dtphys,real(day_ini),0.0,cell_area, 1788 & albfi,ithfi,zmea,zstd,zsig,zgam,zthe, 1789 & hmons,summit,base) 1788 & albfi,ithfi) 1790 1789 call physdem1("restartfi.nc",nsoilmx,ngridmx,llm,nqtot, 1791 1790 & dtphys,hour_ini, -
trunk/LMDZ.MARS/libf/phymars/tracer_mod.F90
r2826 r2832 180 180 enddo 181 181 182 if( co2_tracer_found .eq. .false.) then182 if(.not.co2_tracer_found) then 183 183 call abort_physic("ini_tracer_mod","co2 tracer is now mandatory",1) 184 184 endif
Note: See TracChangeset
for help on using the changeset viewer.