aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorallen <allen@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2000-07-12 11:14:34 +0000
committerallen <allen@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2000-07-12 11:14:34 +0000
commitdb3c25d49096db8faa6c9cf33a0395bc5e082b56 (patch)
treea6401102d8695faab3c5a5083b85d1185c5fe4cd /src
parent1392db732bf1692b8f4a49dd3f05a52575082931 (diff)
Tidying
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@61 b589c3ab-70e8-4b4d-a09f-cba2dd200880
Diffstat (limited to 'src')
-rw-r--r--src/WriteGF.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/WriteGF.c b/src/WriteGF.c
index 28560f0..6f02c63 100644
--- a/src/WriteGF.c
+++ b/src/WriteGF.c
@@ -44,7 +44,8 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
- the reduction operator
- the label for the file header
- the filename extension (suffixed by ".tl" for trace line) */
- const struct {
+ const struct
+ {
char *operator;
char *label;
char *extension;
@@ -64,7 +65,8 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
fullname = CCTK_FullName (index);
CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING,
- "No 0D output for '%s' (no storage)", fullname);
+ "IOBasic_WriteGF: No 0D output for '%s' (no storage)",
+ fullname);
free (fullname);
return;
}
@@ -82,7 +84,7 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
/* the extra characters should be sufficient
for the longest filename extension */
filename = (char *)
- malloc (strlen (myGH->outdirScalar) + strlen (alias) + 20);
+ malloc (strlen (myGH->outdirScalar) + strlen (alias) + 20);
/* now loop over all IOBasic reduction operations */
for (i = 0; i < NUM_REDUCTIONS; i++)
@@ -92,7 +94,8 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
reduction_handle = CCTK_ReductionHandle (reductions [i].operator);
if (reduction_handle < 0) {
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Invalid reduction operator '%s'", reductions [i].operator);
+ "IOBasic_WriteGF: Invalid reduction operator '%s'",
+ reductions [i].operator);
continue;
}
@@ -127,7 +130,8 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
if (file == NULL)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Could not open output file '%s'", filename);
+ "IOBasic_WriteGF: Could not open output file '%s'",
+ filename);
continue;
}
@@ -142,12 +146,12 @@ void IOBasic_WriteGF (cGH *GH, int index, const char *alias)
reductions [i].label);
/* advertise the file for downloading */
- advertised_file.slice = reductions [i].extension;
- advertised_file.thorn = CCTK_THORNSTRING;
- advertised_file.varname = CCTK_FullName (index);
+ advertised_file.slice = reductions [i].extension;
+ advertised_file.thorn = CCTK_THORNSTRING;
+ advertised_file.varname = CCTK_FullName (index);
advertised_file.description = "Reduction on Grid Functions";
- advertised_file.mimetype = CCTK_Equals (outScalar_style, "gnuplot") ?
- "application/gnuplot" : "application/x-graph";
+ advertised_file.mimetype = CCTK_Equals(outScalar_style,"gnuplot") ?
+ "application/gnuplot" : "application/x-graph";
IOUtil_AdvertiseFile (GH, filename, &advertised_file);