Skip to content

config.sh

Christopher Geiger edited this page Feb 21, 2020 · 2 revisions

Guide on how to use config.sh:

Add bash variables (as shown in the below example) and they will be loaded by the Makefile when make is run. For example,

# Example configuration
# Add your configuration below:

cesm_root=$(cd ../.. && pwd)
gen_mapping_files=${cesm_root}/tools/mapping/gen_mapping_files

nx=320                       # number of i ocn gridpoints (longitudes)
ny=394                       # number of j ocn gridpoints (latitudes)

scripdir=/gpfs/fs1/p/cgd/ccr/people/ranfeng/plio_bnd/PlioMIP_enh/cpl_mapping/scrip1.4/


# -----------------------------------------------------------------
# Input files -----------------------------------------------------
# -----------------------------------------------------------------

popgridfile=${gen_mapping_files}/horiz_grid_plioenh_070820.ieeer8
kmtgridfile=${gen_mapping_files}/topography_plio_enh_gx1v6_190619.CESM2_modMed.ieeei4

# -----------------------------------------------------------------
# Output labels -----------------------------------------------------
# -----------------------------------------------------------------
ocngridname='plio_enh'

# -----------------------------------------------------------------
# Output filenames ------------------------------------------------
# -----------------------------------------------------------------
DATE=$(date +%y%m%d)
ocnres='gx1v6plioenh'
ocngridfile=${ocnres}_${DATE}.nc

in this file, cesm_root, gen_mapping_files, and other variables will be loaded into the Makefile when ./config.sh is run.

See 'Configuration Variables' in the sidebar for more info.

Clone this wiki locally