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

Enable PISM Restarts, coupled to GCM #8

Open
citibeth opened this issue May 8, 2014 · 1 comment
Open

Enable PISM Restarts, coupled to GCM #8

citibeth opened this issue May 8, 2014 · 1 comment
Assignees
Labels

Comments

@citibeth
Copy link
Owner

citibeth commented May 8, 2014

Bob,

Would you mind rephrasing your question so as to make it a bit more
specific, please? As it is I don't quite know what it is you would
like to know.

Thanks!

PS: I would start by looking at the initialization flow-chart
http://www.pism-docs.org/doxy/html/classIceModel.html#a74bc46b66b8383203287417335787c93
and following the path corresponding to "Is -i set? -> yes".

-- Constantine On Wed, May 7, 2014 at 10:45 PM, Fischer, Robert P (GISS-611.0)[COLUMBIA UNIVERSITY] [email protected] wrote:

Constantine,

Could you please give me a quick pointer to where/how restarts are
accomplished in PISM? At some point, I will want to couple this to ModelE's
restart capabilities. (Currently, I can't do coupled runs involving
restarts).

Thanks,
-- Bob

@citibeth citibeth added the task label May 8, 2014
@citibeth citibeth self-assigned this May 8, 2014
@citibeth
Copy link
Owner Author

citibeth commented May 8, 2014

Bob,

  1. To create a "restart" file, call IceModel::dumpToFile(filename).
    This will save the model state plus some variables that we find
    helpful to have in all output files. To save a "restart" file
    containing only the model state, call
    IceModel::set_output_size("small") before calling
    IceModel::dumpToFile()
  2. To avoid saving an output file, don't call IceModel::writeFiles(),
    which processes the "-o" command-line option and calls
    IceModel::dumpToFile().

(This https://github.com/citibob/glint2/blob/master/sbin/pismr.cpp#L120
is the code I imagine being affected.)

-- Constantine PS: I'm pretty sure the initialization flow-chart is a bit out of date, but it should still give you an idea of what's going on... On Thu, May 8, 2014 at 8:30 AM, Fischer, Robert P (GISS-6110)[COLUMBIA UNIVERSITY] [email protected] wrote:

Constantine,

Thanks that's 1/3 of what I need --- how to start PISM from a restart file.
I also need to know:

  1. How to generate a restart file (inbetween calls to run_to()).
  2. How to prevent PISM from generating restart files when I don't want that
    to happen.

Thanks,
-- Bob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant