aboutsummaryrefslogtreecommitdiff
path: root/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh
diff options
context:
space:
mode:
authorcott <>2004-01-12 08:50:00 +0000
committercott <>2004-01-12 08:50:00 +0000
commit42aba9fa4095963646be9770e879ffd62c4691d6 (patch)
treec1ba31adf0a6572799e55aea22509ebdd5c428af /CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh
parent29c34c256c04683b6958a6ab7d10fbb6df1a1b5a (diff)
Mostly code beautification. Incorporated Erik's new WriteAttribute
Mostly code beautification. Incorporated Erik's new WriteAttribute functions and changed the way CarpetIOFlexIO writes dataset attributes. All the functionality provided in CarpetIOFlexIO is now provided. darcs-hash:20040112085031-19929-ce03ec0298a148bc14855d0db33cfa50ce59e681.gz
Diffstat (limited to 'CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh')
-rw-r--r--CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh19
1 files changed, 15 insertions, 4 deletions
diff --git a/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh b/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh
index 124b84297..4f42bdf5b 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.12 2004/01/08 19:43:33 cott Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIOCheckpoint/src/ioflexio.hh,v 1.13 2004/01/12 10:50:31 cott Exp $
#ifndef CARPETIOFLEXIO_HH
#define CARPETIOFLEXIO_HH
@@ -136,7 +136,7 @@ namespace CarpetIOFlexIO {
static const char* GetStringParameter (const char* const parametername,
const char* const fallback);
- int WriteGF (const cGH* const cgh, IObase* writer, AMRwriter* amrwriter, ioRequest* request);
+ int WriteGF (const cGH* const cgh, IObase* writer, AMRwriter* amrwriter, ioRequest* request, const int called_from_checkpoint);
int ReadGF (const cGH* const cgh, IObase* reader, AmrGridReader* amrreader, int currdataset);
} // namespace CarpetIOFlexIO
@@ -144,8 +144,19 @@ namespace CarpetIOFlexIO {
namespace CarpetIOFlexIOUtil {
IObase::DataType FlexIODataType (int cctk_type);
- void DumpCommonAttributes (const cGH *cgh, IObase* writer, ioRequest* request);
+ void WriteAttribute (IObase* writer, const char* name,
+ int value);
+ void WriteAttribute (IObase* writer, const char* name,
+ const int* values, int nvalues);
+ void WriteAttribute (IObase* writer, const char* name,
+ CCTK_REAL value);
+ void WriteAttribute (IObase* writer, const char* name,
+ const CCTK_REAL* values, int nvalues);
+ void WriteAttribute (IObase* writer, const char* name,
+ const char* valuestring);
+
+ void DumpCommonAttributes (const cGH *cgh, IObase* writer, ioRequest* request);
}
namespace CarpetCheckpointRestart {
@@ -157,6 +168,6 @@ namespace CarpetCheckpointRestart {
#endif // !defined(CARPETIOFLEXIO_HH)
-/* structure holding necessary information about a recovery file */
+