aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2013-09-12 19:12:24 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2013-09-12 19:12:24 +0200
commitda423f55aa544d5648c839195ca3407f0763cfa5 (patch)
tree6da63502fa764378fa8f050d8a24e04998851f52
parent2ce001c1412d1fe4c75d8818ed145065a2522a15 (diff)
Use MoL function to determine evolved groups in CactusBoundary.m
-rw-r--r--Tools/CodeGen/CactusBoundary.m4
-rw-r--r--Tools/CodeGen/Schedule.m4
2 files changed, 5 insertions, 3 deletions
diff --git a/Tools/CodeGen/CactusBoundary.m b/Tools/CodeGen/CactusBoundary.m
index 2a580be..127056b 100644
--- a/Tools/CodeGen/CactusBoundary.m
+++ b/Tools/CodeGen/CactusBoundary.m
@@ -75,12 +75,12 @@ GetScheduledGroups[thornName_] :=
}
};
-GetScheduledFunctions[thornName_, evolvedGroups_] :=
+GetScheduledFunctions[thornName_, declaredGroups_List, groups_List] :=
{
{
Name -> boundariesName[thornName],
SchedulePoint -> "in MoL_PostStep",
- SynchronizedGroups -> evolvedGroups,
+ SynchronizedGroups -> MoLEvolvedGroups[declaredGroups, groups],
Language -> "C",
Options -> "level",
Comment -> "select boundary conditions"
diff --git a/Tools/CodeGen/Schedule.m b/Tools/CodeGen/Schedule.m
index 89f6417..a113dce 100644
--- a/Tools/CodeGen/Schedule.m
+++ b/Tools/CodeGen/Schedule.m
@@ -286,7 +286,9 @@ CreateKrancScheduleFile[calcs_, groups_, declaredGroups_, evolvedGroups_, rhsGro
scheduledFunctions =
Join[{scheduledStartup, scheduleRegisterSymmetries},
- scheduledCalcs, CactusBoundary`GetScheduledFunctions[thornName, evolvedGroups],
+ scheduledCalcs, CactusBoundary`GetScheduledFunctions[thornName,
+ declaredGroups,
+ groups],
{scheduleMoLRegister}, If[Length[OptionValue[ParameterConditions]] > 0,
{ParameterCheckSchedule[thornName]},
{}]];