diff options
-rw-r--r-- | src/include/cctk_Schedule.h | 2 | ||||
-rw-r--r-- | src/main/ScheduleInterface.c | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/include/cctk_Schedule.h b/src/include/cctk_Schedule.h index 007bcc26..3979e581 100644 --- a/src/include/cctk_Schedule.h +++ b/src/include/cctk_Schedule.h @@ -29,8 +29,10 @@ typedef struct /* Option Flags */ + int meta; int global; int level; + int singlemap; /* The last items should be considered volatile and may not stay here */ diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c index 1e5d4432..d0f4e990 100644 --- a/src/main/ScheduleInterface.c +++ b/src/main/ScheduleInterface.c @@ -1561,8 +1561,10 @@ static int ParseOptionList(int n_items, @@*/ static int InitialiseOptionList(t_attribute *attribute) { - attribute->FunctionData.level = 0; + attribute->FunctionData.meta = 0; attribute->FunctionData.global = 0; + attribute->FunctionData.level = 0; + attribute->FunctionData.singlemap = 0; return 0; } @@ -1595,7 +1597,11 @@ static int InitialiseOptionList(t_attribute *attribute) static int ParseOption(t_attribute *attribute, const char *option) { - if(CCTK_Equals(option, "GLOBAL")) + if(CCTK_Equals(option, "META")) + { + attribute->FunctionData.meta = 1; + } + else if(CCTK_Equals(option, "GLOBAL")) { attribute->FunctionData.global = 1; } @@ -1603,6 +1609,10 @@ static int ParseOption(t_attribute *attribute, { attribute->FunctionData.level = 1; } + else if(CCTK_Equals(option, "SINGLEMAP")) + { + attribute->FunctionData.singlemap = 1; + } else { CCTK_Warn(1,__LINE__,__FILE__,"Cactus", |