From da423f55aa544d5648c839195ca3407f0763cfa5 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 12 Sep 2013 19:12:24 +0200 Subject: Use MoL function to determine evolved groups in CactusBoundary.m --- Tools/CodeGen/CactusBoundary.m | 4 ++-- Tools/CodeGen/Schedule.m | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Tools') 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]}, {}]]; -- cgit v1.2.3