diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-11-03 14:39:12 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-11-03 14:39:12 +0000 |
commit | 433f088332839503e96d9f45c989e117934b93d9 (patch) | |
tree | 33574102f95afc82e090ad1d92df6415eebbf24b /src/main | |
parent | d91830276ba8110f5d16078643324b5ad81fa4b8 (diff) |
Make parameter array assignments without specifying the actual index
a major error also at the default parameter checking level.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4190 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/SetParams.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/SetParams.c b/src/main/SetParams.c index c6f184f1..63f23980 100644 --- a/src/main/SetParams.c +++ b/src/main/SetParams.c @@ -206,23 +206,23 @@ int CCTKi_SetParameter (const char *parameter, const char *value, int lineno) else if (retval == -8) { /* Tried to set an array base parameter */ - if (parameter_check == CCTK_PARAMETER_STRICT) + if (parameter_check == CCTK_PARAMETER_RELAXED) { CCTK_VWarn (1, __LINE__, __FILE__, "Cactus", - "Major error in parameter file '%s' line %d: " + "Minor error in parameter file '%s' line %d: " "Parameter '%s' is an " "array base parameter; please use %s[<number>]", parfile, lineno, parameter, parameter); - num_0errors++; + num_1errors++; } - else if (parameter_check == CCTK_PARAMETER_NORMAL) + else { CCTK_VWarn (1, __LINE__, __FILE__, "Cactus", - "Minor error in parameter file '%s' line %d: " + "Major error in parameter file '%s' line %d: " "Parameter '%s' is an " "array base parameter; please use %s[<number>]", parfile, lineno, parameter, parameter); - num_1errors++; + num_0errors++; } } else if (retval == -10) |