From bf095d63474dce7f6888298f994ddc094de35f66 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 19 Mar 2001 23:41:37 +0000 Subject: 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 --- src/Write.c | 4 +++- src/WriteGF.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3