aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-03-05 10:47:12 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-03-05 10:47:12 +0000
commited066e7e7a0b3239d3896460c0b5df19b7668112 (patch)
tree8558f3e1bb5c8719591f5cb044d00689857a37d3
parentdde580027958318c4fc67ead84a77a433338ebcc (diff)
For HDF5 output files, save either all parameters or just the ones which have
been set before. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@108 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/Write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Write.c b/src/Write.c
index bedb51e..859214a 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -160,9 +160,10 @@ int IOHDF5_Write (const cGH *GH, int vindex, const char *alias)
{
/* all GH extension variables and parameter stuff which is not
specific to any dataset goes into dedicated groups */
- if (out3D_parameters)
+ if (strcmp (out3D_parameters, "no"))
{
- IOHDF5Util_DumpParameters (GH, file);
+ IOHDF5Util_DumpParameters (GH, strcmp (out3D_parameters, "all") == 0,
+ file);
}
IOHDF5Util_DumpGHExtensions (GH, file);