aboutsummaryrefslogtreecommitdiff
path: root/src/DumpUtils.c
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 /src/DumpUtils.c
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
Diffstat (limited to 'src/DumpUtils.c')
-rw-r--r--src/DumpUtils.c17
1 files changed, 9 insertions, 8 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)
{