summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-07-06 09:14:46 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-07-06 09:14:46 +0000
commitabee539203ff53ed89b13193b9c57b9d4b2b57e6 (patch)
treeba1f413f85515efa1d39da733924ce3e5de3ab0c
parentb5e0619f14e0ec96650d2c0992488bee0c852525 (diff)
Change default parameter checking level from "normal" to "strict".
This applies patch http://www.cactuscode.org/old/pipermail/developers/2006-June/004916.html. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4347 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--doc/UsersGuide/RunningCactus.tex12
-rw-r--r--src/main/WarnLevel.c2
2 files changed, 6 insertions, 8 deletions
diff --git a/doc/UsersGuide/RunningCactus.tex b/doc/UsersGuide/RunningCactus.tex
index 3403c5d0..bf778251 100644
--- a/doc/UsersGuide/RunningCactus.tex
+++ b/doc/UsersGuide/RunningCactus.tex
@@ -1292,12 +1292,10 @@ Short Version & Long Version \\
\hline
-b[no|line|full] & --buffering=[no|line|full]\\
\hline
- -b <\var{mode}> & --buffering=<\var{mode}>\\
+ & --parameter-level=<strict|normal|relaxed> \\
\hline
-i & --ignore-next \\
\hline
- & --parameter-level=<\var{level}> \\
-\hline
\end{tabular}
}
\caption[Command-Line Options]
@@ -1389,10 +1387,10 @@ If the directory doesn't exist yet, it will be created by Cactus.
messages, i.e.\ the \texttt{stderr} stream, is always unbuffered
(and hence usually slower than \texttt{stdout}).
-\item [\texttt{--parameter-level=<\var{level}>}]
-Sets the level of parameter checking to be used, one of \texttt{strict},
-\texttt{normal} (the default), or \texttt{relaxed}.
-See Section~\ref{sec:Parameter_File}.
+\item [\texttt{--parameter-level=<strict|normal|relaxed>}]
+Sets the level of parameter checking to be used, one of \texttt{strict}
+(the default), \texttt{normal}, or \texttt{relaxed}.
+See Section~\ref{sec:Parameter_File} for details.
\item [\texttt{-i} or \texttt{--ignore-next}]
Causes the next argument on the command line to be ignored.
diff --git a/src/main/WarnLevel.c b/src/main/WarnLevel.c
index c6dd1eb1..457901b1 100644
--- a/src/main/WarnLevel.c
+++ b/src/main/WarnLevel.c
@@ -158,7 +158,7 @@ static void CCTKi_InfoCallbacksCall(const char *thorn, const char *message);
********************************************************************/
/* Store the parameter checking level */
-static int parameter_level = CCTK_PARAMETER_NORMAL;
+static int parameter_level = CCTK_PARAMETER_STRICT;
/* Store the number of parameter errors */
static int param_errors = 0;