aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
authorallen <allen@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-08-26 17:27:25 +0000
committerallen <allen@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-08-26 17:27:25 +0000
commit25a72824915dc01e57b865d4b4a08833ef95d2b9 (patch)
tree6f9da85bffda34bcebeeb87ee57e2722af4bfd2a /src/Startup.c
parent4dc67c6a0904a6467951570022bf88c9351f721a (diff)
Adding more output for newverbose parameter on startup/steering:
- IO method registration - Directory used - Output every - Variables output git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@76 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c53
1 files changed, 45 insertions, 8 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 07981b2..edb94f8 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -57,7 +57,7 @@ void IOASCII_Startup (void)
/* check that thorn IOUtil was activated */
if (CCTK_GHExtensionHandle ("IO") < 0)
{
- CCTK_WARN (1, "Thorn IOUtil was not activated. "
+ CCTK_WARN (1, "IOASCII_Startup: Thorn IOUtil was not activated. "
"No IOASCII IO methods will be enabled.");
return;
}
@@ -133,6 +133,17 @@ static void *IOASCII_SetupGH (tFleshConfig *config,
CCTK_RegisterIOMethodTimeToOutput (i, IOASCII_TimeFor2D);
CCTK_RegisterIOMethodTriggerOutput (i, IOASCII_TriggerOutput2D);
+ if (CCTK_Equals (newverbose, "standard") ||
+ CCTK_Equals( newverbose, "full"))
+ {
+ CCTK_INFO ("I/O Method 'IOASCII_1D' registered");
+ CCTK_INFO ("IOASCII_1D: Output of 1D lines of grid functions/arrays "
+ "to ASCII files");
+ CCTK_INFO ("I/O Method 'IOASCII_2D' registered");
+ CCTK_INFO ("IOASCII_2D: Output of 2D planes of grid functions/arrays "
+ "to ASCII files");
+ }
+
/* allocate the GH extension and its components */
newGH = (asciiioGH *) malloc (sizeof (asciiioGH));
@@ -180,6 +191,31 @@ static void *IOASCII_SetupGH (tFleshConfig *config,
{
newGH->out2D_every = out2D_every;
}
+
+ if (CCTK_Equals (newverbose, "standard") ||
+ CCTK_Equals (newverbose, "full"))
+ {
+ if (out1D_every > 0)
+ {
+ CCTK_VInfo (CCTK_THORNSTRING, "IOASCII_1D: Output every %d iterations",
+ newGH->out1D_every);
+ }
+ else
+ {
+ CCTK_VInfo (CCTK_THORNSTRING, "IOASCII_1D: Output not activated");
+ }
+ if (out2D_every > 0)
+ {
+ CCTK_VInfo (CCTK_THORNSTRING, "IOASCII_2D: Output every %d iterations",
+ newGH->out2D_every);
+ }
+ else
+ {
+ CCTK_VInfo (CCTK_THORNSTRING, "IOASCII_2D: Output not activated");
+ }
+ }
+
+
/* Deal with the output directories */
/* Check whether "outdirXD" was set.
@@ -196,14 +232,14 @@ static void *IOASCII_SetupGH (tFleshConfig *config,
if (i < 0)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "IOASCII_InitGH: problem creating IOASCII 1D output"
+ "IOASCII_InitGH: Problem creating IOASCII 1D output"
" directory '%s'", newGH->outdir1D);
}
- else if (i > 0 && CCTK_Equals (newverbose, "full"))
+ else if (i >= 0 && CCTK_Equals (newverbose, "full"))
{
CCTK_VInfo (CCTK_THORNSTRING,
- "IOASCII_InitGH: 1D output directory '%s' already exists",
- newGH->outdir1D);
+ "IOASCII_1D: Output to directory '%s'",
+ newGH->outdir1D);
}
/* create the 2D output dir */
@@ -214,12 +250,13 @@ static void *IOASCII_SetupGH (tFleshConfig *config,
"IOASCII_InitGH: problem creating IOASCII 2D output"
" directory '%s'", newGH->outdir2D);
}
- else if (i > 0 && CCTK_Equals (newverbose, "full"))
+ else if (i >= 0 && CCTK_Equals (newverbose, "full"))
{
CCTK_VInfo (CCTK_THORNSTRING,
- "IOASCII_InitGH: 2D output directory '%s' already exists",
- newGH->outdir2D);
+ "IOASCII_2D: Output to directory '%s'",
+ newGH->outdir2D);
}
+
}
else
{