aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2001-03-19 23:41:37 +0000
committertradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2001-03-19 23:41:37 +0000
commitbf095d63474dce7f6888298f994ddc094de35f66 (patch)
tree47010f70f072b4ef285f63762e7699e2d5f1edaa
parent8e915effdbd2b082fc2fbd100f9c0d9219ea2b37 (diff)
Forgot put the date into the "Created ..." comment.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@84 b589c3ab-70e8-4b4d-a09f-cba2dd200880
-rw-r--r--src/Write.c4
-rw-r--r--src/WriteGF.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Write.c b/src/Write.c
index 18abe0e..3117170 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -123,8 +123,10 @@ void IOBasic_Write (cGH *GH, int vindex, const char *alias)
/* write the file info and the header */
CCTK_ParameterFilename (sizeof (buffer), buffer);
fprintf (file, "%cParameter file %s\n", comment_char, buffer);
+ Util_CurrentDate (sizeof (buffer), buffer);
+ fprintf (file, "%cCreated %s ", comment_char, buffer);
Util_CurrentTime (sizeof (buffer), buffer);
- fprintf (file, "%cCreated %s\n", comment_char, buffer);
+ fprintf (file, "%s\n", buffer);
fprintf (file, "%cx-label time\n", comment_char);
fprintf (file, "%cy-label %s\n", comment_char, advertised_file.varname);
fprintf (file, "%c%s v time\n", comment_char, alias);
diff --git a/src/WriteGF.c b/src/WriteGF.c
index 45c0a29..a0aec07 100644
--- a/src/WriteGF.c
+++ b/src/WriteGF.c
@@ -243,8 +243,10 @@ void IOBasic_WriteGF (cGH *GH,
CCTK_ParameterFilename (sizeof (buffer), buffer);
fprintf (file, "%cParameter file %s\n", comment_char, buffer);
+ Util_CurrentDate (sizeof (buffer), buffer);
+ fprintf (file, "%cCreated %s ", comment_char, buffer);
Util_CurrentTime (sizeof (buffer), buffer);
- fprintf (file, "%cCreated %s\n", comment_char, buffer);
+ fprintf (file, "%s\n", buffer);
fprintf (file, "%cx-label time\n", comment_char);
fprintf (file, "%cy-label %s\n",
comment_char, advertised_file.varname);