diff options
Diffstat (limited to 'Tools/CodeGen/Schedule.m')
-rw-r--r-- | Tools/CodeGen/Schedule.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/CodeGen/Schedule.m b/Tools/CodeGen/Schedule.m index c8fac55..24b1802 100644 --- a/Tools/CodeGen/Schedule.m +++ b/Tools/CodeGen/Schedule.m @@ -153,7 +153,7 @@ scheduleCalc[calc_, groups_, thornName_, OptionsPattern[]] := <> If[after =!= None, " after " <> after, ""]; applyBCs = lookupDefault[calc, ApplyBCs, False]; - userSchedule = lookupDefault[calc, Schedule, Automatic]; + userSchedule = GetSchedule[calc]; If[userSchedule =!= Automatic && !applyBCs, @@ -179,7 +179,7 @@ scheduleCalc[calc_, groups_, thornName_, OptionsPattern[]] := {}], If[mapContains[calc, Conditional], {NewConditional -> lookup[calc,Conditional]}, {}] ] &, - lookup[calc, Schedule]]], + GetSchedule[calc]]], (* Scheduling is automatic. For the moment, all automatically scheduled functions are going to be performed in @@ -213,8 +213,8 @@ scheduleCalc[calc_, groups_, thornName_, OptionsPattern[]] := SchedulePoint -> "in " <> groupName, Language -> CodeGenC`SOURCELANGUAGE, Tags -> tags, - RequiredGroups -> groupsToRequire, - ProvidedGroups -> groupsToProvide, + RequiredGroups -> variablesToRead, + ProvidedGroups -> variablesToWrite, Comment -> lookup[calc, Name] }; |