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.hh | |
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.hh')
-rw-r--r-- | CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh b/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh index be467adfc..f8ca0b2f4 100644 --- a/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh +++ b/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh,v 1.8 2004/01/06 08:56:39 cott Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh,v 1.9 2004/01/07 12:57:56 cott Exp $ #ifndef CARPETIOFLEXIO_HH #define CARPETIOFLEXIO_HH @@ -84,6 +84,32 @@ #define CARPET_MPI_CHAR MPI_CHAR +/* floating point types are architecture-independent, + ie. a float has always 4 bytes, and a double has 8 bytes + + PUGH_MPI_REAL is used for communicating reals of the generic CCTK_REAL type + PUGH_MPI_REALn is used to explicitely communicate n-byte reals */ +#ifdef CCTK_REAL4 +#define CARPET_MPI_REAL4 MPI_FLOAT +#endif +#ifdef CCTK_REAL8 +#define CARPET_MPI_REAL8 MPI_DOUBLE +#endif +#ifdef CCTK_REAL16 +#define CARPET_MPI_REAL16 (sizeof (CCTK_REAL16) == sizeof (long double) ? \ + MPI_LONG_DOUBLE : MPI_DATATYPE_NULL) +#endif + + +#ifdef CCTK_REAL_PRECISION_16 +#define CARPET_MPI_REAL CARPET_MPI_REAL16 +#elif CCTK_REAL_PRECISION_8 +#define CARPET_MPI_REAL CARPET_MPI_REAL8 +#elif CCTK_REAL_PRECISION_4 +#define CARPET_MPI_REAL CARPET_MPI_REAL4 +#endif + + #endif namespace CarpetIOFlexIO { @@ -121,6 +147,14 @@ namespace CarpetIOFlexIOUtil { void DumpCommonAttributes (const cGH *cgh, IObase* writer, ioRequest* request); } + +namespace CarpetCheckpointRestart { + + int CarpetIOFlexIO_Recover (cGH* cgh, const char *basefilename, int called_from); + +} + + #endif // !defined(CARPETIOFLEXIO_HH) /* structure holding necessary information about a recovery file */ |