Skip to content

Commit

Permalink
Merge branch 'read_kill_ocean_mask_1.0' into pism_pik_1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
talbrecht committed Nov 22, 2017
2 parents ab62650 + 40e3743 commit 06abcaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/calving/OceanKill.cc
Expand Up @@ -57,8 +57,7 @@ void OceanKill::init() {
throw RuntimeError(PISM_ERROR_LOCATION, "option -ocean_kill_file is required.");
}

bool ocean_kill_mask_set = options::Bool("-ocean_kill_mask",
"Specifies that ocean_kill mask is read from file");
bool ocean_kill_mask_set = m_config->get_boolean("calving.ocean_kill.mask_set");

if (ocean_kill_mask_set) {

Expand Down
5 changes: 5 additions & 0 deletions src/pism_config.cdl
Expand Up @@ -339,6 +339,11 @@ netcdf pism_config {
pism_config:calving.vonmises.sigma_max_type = "scalar";
pism_config:calving.vonmises.sigma_max_units = "Pa";

pism_config:calving.ocean_kill.mask_set = "false";
pism_config:calving.ocean_kill.mask_set_doc = "Specifies that ocean_kill mask is read from file";
pism_config:calving.ocean_kill.mask_set_option = "ocean_kill_mask";
pism_config:calving.ocean_kill.mask_set_type = "boolean";

pism_config:climate_forcing.buffer_size = 60;
pism_config:climate_forcing.buffer_size_doc = "number of 2D climate forcing records to keep in memory; = 5 years of monthly records";
pism_config:climate_forcing.buffer_size_type = "integer";
Expand Down

0 comments on commit 06abcaf

Please sign in to comment.