summaryrefslogtreecommitdiff
path: root/src/main/ScheduleInterface.c
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-07-31 12:21:11 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-07-31 12:21:11 +0000
commit4be4277c85243a8efe15ec94a81660663044c267 (patch)
treeb442f831500897c65dee743479c7264cde2302e2 /src/main/ScheduleInterface.c
parent28e8e94a3ddf1f2aafcc8c53a9f77f6203112e6c (diff)
Add additional scheduler options "loop-local", "loop-singlemap",
"loop-level", "loop-global", and "loop-meta". This makes CallFunction loop over the corresponding modes. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3812 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ScheduleInterface.c')
-rw-r--r--src/main/ScheduleInterface.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c
index 241409d6..48081b80 100644
--- a/src/main/ScheduleInterface.c
+++ b/src/main/ScheduleInterface.c
@@ -1585,6 +1585,13 @@ static int InitialiseOptionList(t_attribute *attribute)
attribute->FunctionData.global = 0;
attribute->FunctionData.level = 0;
attribute->FunctionData.singlemap = 0;
+ attribute->FunctionData.local = 0;
+
+ attribute->FunctionData.loop_meta = 0;
+ attribute->FunctionData.loop_global = 0;
+ attribute->FunctionData.loop_level = 0;
+ attribute->FunctionData.loop_singlemap = 0;
+ attribute->FunctionData.loop_local = 0;
return 0;
}
@@ -1637,6 +1644,26 @@ static int ParseOption(t_attribute *attribute,
{
attribute->FunctionData.local = 1;
}
+ else if(CCTK_Equals(option, "LOOP-META"))
+ {
+ attribute->FunctionData.loop_meta = 1;
+ }
+ else if(CCTK_Equals(option, "LOOP-GLOBAL"))
+ {
+ attribute->FunctionData.loop_global = 1;
+ }
+ else if(CCTK_Equals(option, "LOOP-LEVEL"))
+ {
+ attribute->FunctionData.loop_level = 1;
+ }
+ else if(CCTK_Equals(option, "LOOP-SINGLEMAP"))
+ {
+ attribute->FunctionData.loop_singlemap = 1;
+ }
+ else if(CCTK_Equals(option, "LOOP-LOCAL"))
+ {
+ attribute->FunctionData.loop_local = 1;
+ }
else
{
CCTK_VWarn(1,__LINE__,__FILE__,"Cactus",