aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/Schedule.m
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/CodeGen/Schedule.m')
-rw-r--r--Tools/CodeGen/Schedule.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/CodeGen/Schedule.m b/Tools/CodeGen/Schedule.m
index a2d5027..c805a07 100644
--- a/Tools/CodeGen/Schedule.m
+++ b/Tools/CodeGen/Schedule.m
@@ -93,8 +93,11 @@ scheduleCalc[calc_, groups_] :=
groupsSetInCalc[calc, groups],
{}];
+ applyBCs = lookupDefault[calc, ApplyBCs, False];
+ Print["applyBCs = ", applyBCs];
userSchedule = lookupDefault[calc, Schedule, Automatic];
- If[userSchedule =!= Automatic,
+
+ If[userSchedule =!= Automatic && !applyBCs,
Return[Map[
Join[
{
@@ -131,7 +134,7 @@ scheduleCalc[calc_, groups_] :=
groupSched = {
Name -> "group " <> groupName,
- SchedulePoint -> "in MoL_PseudoEvolution",
+ SchedulePoint -> If[applyBCs, First[userSchedule], "in MoL_PseudoEvolution"],
SynchronizedGroups -> {},
Language -> "None",
Comment -> lookup[calc, Name]