Skip to content

Commit

Permalink
Merge pull request #575 from GEOS-ESM/feature/jkolassa_disable_cn45
Browse files Browse the repository at this point in the history
Disable Catchment-CN4.5 land model option (LSM_CHOICE=3) for GCM simulations
  • Loading branch information
sdrabenh authored Feb 21, 2024
2 parents 1db085a + 4046b15 commit f4bc872
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 29 deletions.
1 change: 0 additions & 1 deletion AGCM.rc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ RECORD_REF_TIME: >>>REFTIME<<< >>>FCSTIME<<<
# Choice for Land Surface Model
# 1 : Catchment
# 2 : CatchmentCNCLM40
# 3 : CatchmentCNCLM45
# ------------------------------------------------------------
LSM_CHOICE: @LSM_CHOICE

Expand Down
10 changes: 3 additions & 7 deletions gcm_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1519,26 +1519,22 @@ endif
# ----------------------
if( $LSM_BCS == "Icarus-NLv3" ) then
LSM_CHOICE:
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment), ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40)), ${C2}3${CN} (CatchmentCN-CLM4.5 (CN_CLM45))"
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment) or ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40))"
set LSM_CHOICE = $<
if( .$LSM_CHOICE == . ) set LSM_CHOICE = 1
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 & $LSM_CHOICE != 3 ) then
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 ) then
echo
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1{CN} , ${C2}2${CN} or ${C2}3${CN}!"
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1${CN} or ${C2}2${CN}!"
goto LSM_CHOICE
else
echo
endif
if( $LSM_CHOICE == 1 ) set HIST_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 1 ) set GCMRUN_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 2 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM40 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
else if ( $LSM_CHOICE == 3 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM45 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
endif
else
set LSM_CHOICE = 1
Expand Down
10 changes: 3 additions & 7 deletions geoschemchem_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1534,26 +1534,22 @@ endif
# ----------------------
if( $LSM_BCS == "Icarus-NLv3" ) then
LSM_CHOICE:
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment), ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40)), ${C2}3${CN} (CatchmentCN-CLM4.5 (CN_CLM45))"
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment), ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40))"
set LSM_CHOICE = $<
if( .$LSM_CHOICE == . ) set LSM_CHOICE = 1
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 & $LSM_CHOICE != 3 ) then
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 ) then
echo
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1{CN} , ${C2}2${CN} or ${C2}3${CN}!"
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1${CN} or ${C2}2${CN}!"
goto LSM_CHOICE
else
echo
endif
if( $LSM_CHOICE == 1 ) set HIST_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 1 ) set GCMRUN_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 2 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM40 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
else if ( $LSM_CHOICE == 3 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM45 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
endif
else
set LSM_CHOICE = 1
Expand Down
10 changes: 3 additions & 7 deletions gmichem_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1631,26 +1631,22 @@ endif
# ----------------------
if( $LSM_BCS == "Icarus-NLv3" ) then
LSM_CHOICE:
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment), ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40)), ${C2}3${CN} (CatchmentCN-CLM4.5 (CN_CLM45))"
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment) or ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40))"
set LSM_CHOICE = $<
if( .$LSM_CHOICE == . ) set LSM_CHOICE = 1
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 & $LSM_CHOICE != 3 ) then
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2) then
echo
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1{CN} , ${C2}2${CN} or ${C2}3${CN}!"
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1${CN} or ${C2}2${CN}!"
goto LSM_CHOICE
else
echo
endif
if( $LSM_CHOICE == 1 ) set HIST_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 1 ) set GCMRUN_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 2 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM40 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
else if ( $LSM_CHOICE == 3 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM45 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
endif
else
set LSM_CHOICE = 1
Expand Down
10 changes: 3 additions & 7 deletions stratchem_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1534,26 +1534,22 @@ endif
# ----------------------
if( $LSM_BCS == "Icarus-NLv3" ) then
LSM_CHOICE:
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment), ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40)), ${C2}3${CN} (CatchmentCN-CLM4.5 (CN_CLM45))"
echo "Enter the choice of ${C1} Land Surface Model${CN} using: ${C2}1${CN} (Default: Catchment) or ${C2}2${CN} (CatchmentCN-CLM4.0 (CN_CLM40))"
set LSM_CHOICE = $<
if( .$LSM_CHOICE == . ) set LSM_CHOICE = 1
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 & $LSM_CHOICE != 3 ) then
if( $LSM_CHOICE != 1 & $LSM_CHOICE != 2 ) then
echo
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1{CN} , ${C2}2${CN} or ${C2}3${CN}!"
echo "${C1} Catchment Model${CN} must be set equal to ${C2}1${CN} or ${C2}2${CN}!"
goto LSM_CHOICE
else
echo
endif
if( $LSM_CHOICE == 1 ) set HIST_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set HIST_CATCHCN = ""
if( $LSM_CHOICE == 1 ) set GCMRUN_CATCHCN = "#DELETE"
if( $LSM_CHOICE == 2 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 3 ) set GCMRUN_CATCHCN = ""
if( $LSM_CHOICE == 2 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM40 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
else if ( $LSM_CHOICE == 3 ) then
echo "IMPORTANT: please set LAND_PARAMS: to CN_CLM45 in RC/GEOS_SurfaceGridComp.rc in the experiment directory."
endif
else
set LSM_CHOICE = 1
Expand Down

0 comments on commit f4bc872

Please sign in to comment.