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

Feature/update cesm driver namelist defaults #800

4 changes: 4 additions & 0 deletions docs/Development/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ This is a minor update from VIC 5.0.1. The VIC 5.1.0 includes new features, such

- Updates the cesm_interface_c.c routine in the CESM driver to populate the nrecs, endyear, endmonth and endday fields in the global_param struct to make them available to vic_finalize for timing tables (specifically the secs/day columns).

1. [GH#800](https://github.com/UW-Hydro/VIC/pull/800)

- Updates the default namelist settings for the CESM driver to include output filenames consistent with the RASM naming conventions, default thermal nodes to 10, `FULL_ENERGY` to `TRUE`, and sets defaults for daily and monthly mean output.

3. Speed up NetCDF operations in the image/CESM drivers ([GH#684](https://github.com/UW-Hydro/VIC/pull/684))

These changes speed up image driver initialization, forcing reads, and history writes by only opening and closing each input netCDF file once.
Expand Down
2 changes: 1 addition & 1 deletion vic/drivers/cesm/bld/build_vic_namelist
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def copy_to_rundir(grid_config, caseid, rundir, casedocs):

# copy file
copy_clean_vic_config(grid_config[filekey], dst_file,
header=header, rundir=rundir, **grid_config)
header=header, rundir=rundir, caseid=caseid, **grid_config)

# update the grid config
grid_config[filekey] = dst_file
Expand Down
39 changes: 25 additions & 14 deletions vic/drivers/cesm/bld/vic.globalconfig.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# VIC Global Configuration File

NODES 50
NODES 10
OUT_TIME_UNITS DAYS

# Soil Temperature Options
FULL_ENERGY TRUE
FROZEN_SOIL TRUE
QUICK_FLUX FALSE
QUICK_SOLVE FALSE
Expand Down Expand Up @@ -54,26 +55,36 @@ DOMAIN_TYPE FRAC frac
DOMAIN_TYPE YDIM nj
DOMAIN_TYPE XDIM ni

OUTFILE fluxes
OUTFILE {caseid}.vic.ha
AGGFREQ NDAYS 1
OUT_FORMAT NETCDF4_CLASSIC
OUTVAR OUT_PREC
OUTVAR OUT_RAINF
OUTVAR OUT_SNOWF
HISTFREQ NMONTHS 1
OUTVAR OUT_RUNOFF
OUTVAR OUT_BASEFLOW
OUTVAR OUT_SWE
OUTVAR OUT_EVAP
OUTVAR OUT_SOIL_TEMP

OUTFILE {caseid}.vic.hmm
AGGFREQ NMONTHS 1
OUT_FORMAT NETCDF4_CLASSIC
HISTFREQ NMONTHS 1
OUTVAR OUT_AIR_TEMP
OUTVAR OUT_SURF_TEMP
OUTVAR OUT_RAD_TEMP
OUTVAR OUT_SOIL_TEMP
OUTVAR OUT_SOIL_TNODE
OUTVAR OUT_ALBEDO
OUTVAR OUT_LATENT
OUTVAR OUT_SENSIBLE
OUTVAR OUT_SWDOWN
OUTVAR OUT_LWDOWN
OUTVAR OUT_PRESSURE
OUTVAR OUT_WIND
OUTVAR OUT_DENSITY
OUTVAR OUT_REL_HUMID
OUTVAR OUT_QAIR
OUTVAR OUT_VP
OUTVAR OUT_VPD
OUTVAR OUT_SWNET
OUTVAR OUT_LWNET
OUTVAR OUT_R_NET
OUTVAR OUT_RUNOFF
OUTVAR OUT_BASEFLOW
OUTVAR OUT_EVAP
OUTVAR OUT_SWE
OUTVAR OUT_SOIL_MOIST
OUTVAR OUT_ALBEDO
OUTVAR OUT_SOIL_TEMP
OUTVAR OUT_GRND_FLUX