aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-03-05 10:46:34 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-03-05 10:46:34 +0000
commit9633406607be579db56976e2f8b1623a8ec8d506 (patch)
treedd6a50f76a23efa9a836a63b3f50d44885889ce7
parent6fe9c70afc3f9fa7f439101bb0351575ebe51219 (diff)
For checkpoint files, save all parameters (not just the ones which have been
set before). git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@56 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r--src/DumpUtils.c17
-rw-r--r--src/ioHDF5UtilGH.h2
2 files changed, 10 insertions, 9 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c
index 8e244e9..0234fea 100644
--- a/src/DumpUtils.c
+++ b/src/DumpUtils.c
@@ -110,11 +110,7 @@ int IOHDF5Util_DumpGH (const cGH *GH,
{
/* all GH extension variables and parameter stuff which is not
specific to any dataset goes into dedicated groups */
- if (out3D_parameters)
- {
- IOHDF5Util_DumpParameters (GH, file);
- }
-
+ IOHDF5Util_DumpParameters (GH, 1, file);
IOHDF5Util_DumpGHExtensions (GH, file);
}
@@ -359,14 +355,19 @@ void IOHDF5Util_DumpCommonAttributes (const cGH *GH,
@vtype const cGH *
@vio in
@endvar
+ @var all
+ @vdesc flag indicating whether to save all parameters or just the ones
+ which have been set before
+ @vtype int
+ @vio in
+ @endvar
@var file
@vdesc the HDF5 file handle
@vtype hid_t
@vio in
@endvar
@@*/
-void IOHDF5Util_DumpParameters (const cGH *GH,
- hid_t file)
+void IOHDF5Util_DumpParameters (const cGH *GH, int all, hid_t file)
{
ioHDF5UtilGH *myGH;
char *parameters;
@@ -380,7 +381,7 @@ void IOHDF5Util_DumpParameters (const cGH *GH,
}
/* Get the parameter string buffer */
- parameters = IOUtil_GetAllParameters (GH);
+ parameters = IOUtil_GetAllParameters (GH, all);
if (parameters)
{
diff --git a/src/ioHDF5UtilGH.h b/src/ioHDF5UtilGH.h
index ff8984f..dfdb31e 100644
--- a/src/ioHDF5UtilGH.h
+++ b/src/ioHDF5UtilGH.h
@@ -244,7 +244,7 @@ typedef struct
hid_t IOHDF5Util_DataType (const ioHDF5UtilGH *myGH, int cctk_type);
void IOHDF5Util_ParseVarsForOutput (const char *output_varstring,
ioHDF5Geo_t *output_request_list[]);
-void IOHDF5Util_DumpParameters (const cGH *GH, hid_t group);
+void IOHDF5Util_DumpParameters (const cGH *GH, int all, hid_t group);
void IOHDF5Util_DumpGHExtensions (const cGH *GH, hid_t group);
int IOHDF5Util_DumpGH (const cGH *GH, const int *timers, hid_t file);
void IOHDF5Util_DumpCommonAttributes (const cGH *GH,