Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for L186 pressure lid #643

Open
wants to merge 2 commits into
base: feature/sdrabenh/gcm_v12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gcm_forecast.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,18 @@ if( $AGCM_LM != 72 ) then
cp $file dummy
cat dummy | sed -e "s|/L72/|/L${AGCM_LM}/|g" | sed -e "s|z72|z${AGCM_LM}|g" > $file
end

# We have to do something special for L186. By default all of the GOCART emissions have:
# pressure_lid_in_hPa: 0.01
# which is the pressure lid in hPa for all other GEOS vertical levels. But L186 has a lid
# at 0.00025 Pa. So we need to change this value in the GOCART emissions files for L186.
if ( $AGCM_LM == 186 ) then
set files = `/bin/ls *.rc`
foreach file ($files)
cp $file dummy
cat dummy | sed -e '/pressure_lid_in_hPa:/c\pressure_lid_in_hPa: 2.5e-6' > $file
end
endif
endif

# Rename big ExtData files that are not needed
Expand Down
20 changes: 20 additions & 0 deletions gcm_regress.j
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,26 @@ if( $EXTDATA2G_TRUE == 1 ) then

endif

if( $AGCM_LM != 72 ) then
set files = `/bin/ls *.yaml`
foreach file ($files)
cp $file dummy
cat dummy | sed -e "s|/L72/|/L${AGCM_LM}/|g" | sed -e "s|z72|z${AGCM_LM}|g" > $file
end

# We have to do something special for L186. By default all of the GOCART emissions have:
# pressure_lid_in_hPa: 0.01
# which is the pressure lid in hPa for all other GEOS vertical levels. But L186 has a lid
# at 0.00025 Pa. So we need to change this value in the GOCART emissions files for L186.
if ( $AGCM_LM == 186 ) then
set files = `/bin/ls *.rc`
foreach file ($files)
cp $file dummy
cat dummy | sed -e '/pressure_lid_in_hPa:/c\pressure_lid_in_hPa: 2.5e-6' > $file
end
endif
endif

# Move GOCART to use RRTMGP Bands
# -------------------------------
# UNCOMMENT THE LINES BELOW IF RUNNING RRTMGP
Expand Down
12 changes: 12 additions & 0 deletions gcm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,18 @@ if( $AGCM_LM != 72 ) then
cp $file dummy
cat dummy | sed -e "s|/L72/|/L${AGCM_LM}/|g" | sed -e "s|z72|z${AGCM_LM}|g" > $file
end

# We have to do something special for L186. By default all of the GOCART emissions have:
# pressure_lid_in_hPa: 0.01
# which is the pressure lid in hPa for all other GEOS vertical levels. But L186 has a lid
# at 0.00025 Pa. So we need to change this value in the GOCART emissions files for L186.
if ( $AGCM_LM == 186 ) then
set files = `/bin/ls *.rc`
foreach file ($files)
cp $file dummy
cat dummy | sed -e '/pressure_lid_in_hPa:/c\pressure_lid_in_hPa: 2.5e-6' > $file
end
endif
endif

# Rename big ExtData files that are not needed
Expand Down
20 changes: 20 additions & 0 deletions gcm_run_benchmark.j
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,26 @@ if( ${EMISSIONS} == AMIP_EMISSIONS ) then

endif

if( $AGCM_LM != 72 ) then
set files = `/bin/ls *.yaml`
foreach file ($files)
cp $file dummy
cat dummy | sed -e "s|/L72/|/L${AGCM_LM}/|g" | sed -e "s|z72|z${AGCM_LM}|g" > $file
end

# We have to do something special for L186. By default all of the GOCART emissions have:
# pressure_lid_in_hPa: 0.01
# which is the pressure lid in hPa for all other GEOS vertical levels. But L186 has a lid
# at 0.00025 Pa. So we need to change this value in the GOCART emissions files for L186.
if ( $AGCM_LM == 186 ) then
set files = `/bin/ls *.rc`
foreach file ($files)
cp $file dummy
cat dummy | sed -e '/pressure_lid_in_hPa:/c\pressure_lid_in_hPa: 2.5e-6' > $file
end
endif
endif

# Rename big ExtData files that are not needed
# --------------------------------------------
set SC_TRUE = `grep -i '^\s*ENABLE_STRATCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
Expand Down
Loading