diff options
author | cott <> | 2004-01-07 11:57:00 +0000 |
---|---|---|
committer | cott <> | 2004-01-07 11:57:00 +0000 |
commit | 582c4e8e8c75b630d734f966300e574e353efa7d (patch) | |
tree | 475f2f555e320dab660bbeb374e213e67a001a44 /CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc | |
parent | 2df622d3e73a4c3b4cac7114efbb98e8b9382370 (diff) |
Getting there... Skeleton of reovery routine for data is in place.
Getting there... Skeleton of reovery routine for data is in place.
Need to modify scheduling for IOUtil_RecoverGH: OPTIONS: global
darcs-hash:20040107115756-19929-6e1501955bbe1a8811de898e2803d3e22875265d.gz
Diffstat (limited to 'CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc')
-rw-r--r-- | CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc b/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc index ac9df7848..eb4558896 100644 --- a/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc +++ b/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc @@ -45,7 +45,7 @@ extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc,v 1.13 2003/12/10 14:49:10 cott Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.cc,v 1.14 2004/01/07 12:57:56 cott Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOFlexIO_ioflexio_cc); } @@ -56,7 +56,7 @@ namespace CarpetIOFlexIO { using namespace std; using namespace Carpet; using namespace CarpetIOFlexIOUtil; - + using namespace CarpetCheckpointRestart; // Variable definitions // int GHExtension; @@ -87,7 +87,14 @@ namespace CarpetIOFlexIO { CCTK_RegisterIOMethodOutputVarAs (IOMethod, OutputVarAs); CCTK_RegisterIOMethodTimeToOutput (IOMethod, TimeToOutput); CCTK_RegisterIOMethodTriggerOutput (IOMethod, TriggerOutput); + + /* register the CarpetIOFlexIO recovery routine to thorn IOUtil */ + if (IOUtil_RegisterRecover ("CarpetIOFlexIO recovery", CarpetIOFlexIO_Recover) < 0) + { + CCTK_WARN (1, "Failed to register IOFlexIO recovery routine"); + } + return 0; } |