aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2003-05-28 15:53:16 +0000
committertradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880>2003-05-28 15:53:16 +0000
commit15bb8257e05270ca8e2fa7118c04b70557d677c7 (patch)
tree26a50bdc578e002680b214abe78f595b560b6742
parentc22176e9d190d0d2c5bfec8891a5a8292f6b0226 (diff)
Output the field for the iteration number with a length sufficient for 6 digits.
This closes PR CactusBase/1516. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@142 b589c3ab-70e8-4b4d-a09f-cba2dd200880
-rw-r--r--src/OutputInfo.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/OutputInfo.c b/src/OutputInfo.c
index f9b21a4..524b426 100644
--- a/src/OutputInfo.c
+++ b/src/OutputInfo.c
@@ -38,16 +38,16 @@ CCTK_FILEVERSION(CactusBase_IOBasic_OutputInfo_c)
{ \
if (USE_DECIMAL_NOTATION (reduction->value)) \
{ \
- printf ("% 13.8f |", reduction->value); \
+ printf ("% 13.8f |", reduction->value); \
} \
else \
{ \
- printf ("% 11.6e |", reduction->value); \
+ printf ("% 11.6e |", reduction->value); \
} \
} \
else \
{ \
- printf (" ------------ |"); \
+ printf (" ------------ |"); \
}
@@ -90,7 +90,7 @@ int IOBasic_InfoOutputGH (const cGH *GH)
/* get the GH extensions for IOBasic */
- myGH = (iobasicGH *) CCTK_GHExtension (GH, "IOBasic");
+ myGH = CCTK_GHExtension (GH, "IOBasic");
/* check if steerable parameters changed */
CheckSteerableParameters (myGH);
@@ -111,11 +111,11 @@ int IOBasic_InfoOutputGH (const cGH *GH)
/* print the iteration/timestep information for all variables */
if (USE_DECIMAL_NOTATION (GH->cctk_time))
{
- printf ("%5d |%9.3f |", GH->cctk_iteration, GH->cctk_time);
+ printf ("%6d |%9.3f |", GH->cctk_iteration, GH->cctk_time);
}
else
{
- printf ("%5d |%7.3e |", GH->cctk_iteration, GH->cctk_time);
+ printf ("%6d |%7.3e |", GH->cctk_iteration, GH->cctk_time);
}
/* loop over all variables */
@@ -197,7 +197,7 @@ int IOBasic_TimeForInfoOutput (const cGH *GH, int vindex)
/* check if steerable parameters changed */
- myGH = (iobasicGH *) CCTK_GHExtension (GH, "IOBasic");
+ myGH = CCTK_GHExtension (GH, "IOBasic");
CheckSteerableParameters (myGH);
/* check if this variable should be output */
@@ -255,7 +255,7 @@ int IOBasic_TriggerInfoOutput (const cGH *GH, int vindex)
/* get the GH extension for IOBasic */
- myGH = (iobasicGH *) CCTK_GHExtension (GH, "IOBasic");
+ myGH = CCTK_GHExtension (GH, "IOBasic");
#ifdef IOBASIC_DEBUG
printf ("\nIn IO TriggerOutputInfo\n---------------------\n");
@@ -437,7 +437,7 @@ static void PrintHeader (iobasicGH *myGH, int num_vars)
}
/* draw a horizontal delimiter line */
- printf ("------------------");
+ printf ("-------------------");
for (i = 0; i < num_columns; i++)
{
printf ("---------------");
@@ -446,7 +446,7 @@ static void PrintHeader (iobasicGH *myGH, int num_vars)
/* the first header line displays the iteration number (first column)
and the full names of the variables to output (third column ff.) */
- printf (" it | |");
+ printf (" it | |");
if (num_columns > 0)
{
for (vindex = 0; vindex < num_vars; vindex++)
@@ -471,7 +471,7 @@ static void PrintHeader (iobasicGH *myGH, int num_vars)
/* the second header line displays the physical time (second column)
and the names of the reduction operators to apply (third column ff.) */
- printf (" | t ");
+ printf (" | t ");
for (vindex = 0; vindex < num_vars; vindex++)
{
if (myGH->info_reductions[vindex].num_reductions > 0)
@@ -487,7 +487,7 @@ static void PrintHeader (iobasicGH *myGH, int num_vars)
printf ("|\n");
/* finally draw another horizontal delimiter line */
- printf ("------------------");
+ printf ("-------------------");
for (i = 0; i < num_columns; i++)
{
printf ("---------------");