diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-05-09 12:41:51 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-05-09 12:41:51 +0000 |
commit | e34ad1aaa5499f5d7e23f9ee23229cd9e6fd1303 (patch) | |
tree | b681bdfb9842cb13276c633791be6a067f11c4d0 /src/main/ScheduleInterface.c | |
parent | 1b0f54a2159b752ea61165f49e82280ff1c91c65 (diff) |
Added level mode:
a scheduled routine can have options associated with it. LEVEL mode
is where the routine should only be called once for any set of sub-grids
with the same cctk_levfac numbers.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3209 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ScheduleInterface.c')
-rw-r--r-- | src/main/ScheduleInterface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c index a51388e6..d7bf5b50 100644 --- a/src/main/ScheduleInterface.c +++ b/src/main/ScheduleInterface.c @@ -1542,6 +1542,7 @@ static int ParseOptionList(int n_items, @@*/ static int InitialiseOptionList(t_attribute *attribute) { + attribute->FunctionData.level = 0; attribute->FunctionData.global = 0; return 0; @@ -1579,6 +1580,10 @@ static int ParseOption(t_attribute *attribute, { attribute->FunctionData.global = 1; } + else if(CCTK_Equals(option, "LEVEL")) + { + attribute->FunctionData.level = 1; + } else { CCTK_Warn(1,__LINE__,__FILE__,"Cactus", |