summaryrefslogtreecommitdiff
path: root/src/main/WarnLevel.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-12 13:17:15 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-12 13:17:15 +0000
commite9860ab3f640bd2df8d49e1db33223684f22f1ba (patch)
tree1ee7e401d8db5d4088048d21775ca5b45a2cf09d /src/main/WarnLevel.c
parentda010a24d669e973fe52b9389cebfaa838e478ac (diff)
Adding USE_CCTK_PARAMETERS and changing format of warning
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1233 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/WarnLevel.c')
-rw-r--r--src/main/WarnLevel.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/WarnLevel.c b/src/main/WarnLevel.c
index 418f683e..f1158104 100644
--- a/src/main/WarnLevel.c
+++ b/src/main/WarnLevel.c
@@ -125,7 +125,8 @@ void CCTK_Warn(int level, int line, const char *file, const char *thorn, const c
{
if (cctk_full_warnings)
{
- fprintf(stderr, "WARNING level %d in thorn %s (line %d of %s): \n", level, thorn, line, file);
+ fprintf(stderr, "WARNING level %d in thorn %s \n (line %d of %s): \n",
+ level, thorn, line, file);
fprintf(stderr, " -> %s\n",message);
fflush(stderr);
}
@@ -141,6 +142,8 @@ void CCTK_Warn(int level, int line, const char *file, const char *thorn, const c
exit(99);
}
+ USE_CCTK_PARAMETERS
+
}
void FMODIFIER FORTRAN_NAME(CCTK_Warn)(int *level, int *line, THREE_FORTSTRINGS_ARGS)
@@ -252,7 +255,7 @@ void CCTK_VWarn(int level, int line, const char *file, const char *thorn, const
if (cctk_full_warnings)
{
- fprintf(stderr, "WARNING level %d in thorn %s (line %d of %s): \n",
+ fprintf(stderr, "WARNING level %d in thorn %s \n (line %d of %s): \n",
level, thorn, line, file);
fprintf(stderr, " -> ");
vfprintf(stderr, format, ap);
@@ -274,6 +277,9 @@ void CCTK_VWarn(int level, int line, const char *file, const char *thorn, const
{
exit(99);
}
+
+ USE_CCTK_PARAMETERS
+
}
@@ -309,6 +315,8 @@ void CCTK_ParamWarn(const char *thorn, const char *message)
param_errors++;
+ USE_CCTK_PARAMETERS
+
}
void FMODIFIER FORTRAN_NAME(CCTK_ParamWarn)(TWO_FORTSTRINGS_ARGS)
@@ -444,6 +452,8 @@ void CCTKi_FinaliseParamWarn(void)
}
+ USE_CCTK_PARAMETERS
+
}
/*@@