diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-04 23:41:24 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-04 23:41:24 +0000 |
commit | 287abd55c7e41b10718810c7dec8b3bf939d8cf6 (patch) | |
tree | 4eb755d86c94c05c4c40328f94909fbb55ddd4f8 /src/main/SetParams.c | |
parent | 794d6731bfea7f0631cda58a8a8f084f2d9195b8 (diff) |
The ActiveThorns parameter now works.
Note that this means the testsuites now need to be changed to
include the parameter.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@648 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/SetParams.c')
-rw-r--r-- | src/main/SetParams.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/SetParams.c b/src/main/SetParams.c index 297b66d8..4cf65490 100644 --- a/src/main/SetParams.c +++ b/src/main/SetParams.c @@ -31,9 +31,11 @@ int CCTK_SetParameter(const char *parameter, const char *value) char thornname[101]; const char *position; int length; - + int n_errors; + if(CCTK_Equals(parameter, "ActiveThorns")) { + n_errors = 0; position = value; while(*position) @@ -47,10 +49,9 @@ int CCTK_SetParameter(const char *parameter, const char *value) } thornname[length] = '\0'; - CCTK_ActivateThorn(thornname); - if(position) position++; + n_errors += CCTK_ActivateThorn(thornname) != 0; + if(*position) position++; } - CCTK_ActivateThorn("Cactus"); } else { |