Skip to content

Commit

Permalink
Read Href from an input file during bootstrapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Apr 23, 2014
1 parent 52bd5ad commit a951fd2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/base/iMbootstrap.cc
Expand Up @@ -150,11 +150,15 @@ PetscErrorCode IceModel::bootstrap_2d(std::string filename) {
}

if (config.get_flag("part_grid")) {
// if part_grid is "on", set fields tracking contents of partially-filled
// cells to zero. Note that the contents of these fields are
// grid-dependent, so we don't want to read them from a bootstrapping file
// using linear interpolation.
ierr = vHref.set(0.0); CHKERRQ(ierr);
// Read the Href field from an input file. This field is
// grid-dependent, so interpolating it from one grid to a
// different one does not make sense in general.
// (IceModel::Href_cleanup() will take care of the side effects of
// such interpolation, though.)
//
// On the other hand, we need to read it in to be able to re-start
// from a PISM output file using the -boot_file option.
ierr = vHref.regrid(filename, OPTIONAL, 0.0); CHKERRQ(ierr);
}

if (config.get_string("calving_methods").find("eigen_calving") != std::string::npos) {
Expand Down

0 comments on commit a951fd2

Please sign in to comment.