Skip to content

Commit

Permalink
KrancGroups.m: Replace EnsureTimelevels with EnsureInterfaceTimelevels
Browse files Browse the repository at this point in the history
The interaction between interface.ccl and schedule.ccl timelevels is subtle and hard to replicate in a more general system.  For now, just separate the two using different internal options.
  • Loading branch information
ianhinder committed Sep 10, 2013
1 parent a457ab9 commit 6e9cbe2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tools/CodeGen/KrancGroups.m
Expand Up @@ -54,7 +54,7 @@
CheckGroups;
VerifyGroupNames;
VerifyGroups;
EnsureTimelevels;
EnsureInterfaceTimelevels;
GroupExtras;

Begin["`Private`"];
Expand Down Expand Up @@ -263,14 +263,14 @@
ThrowError["Not a list of group names: ", gns],
Map[VerifyGroupName, gns]];

EnsureTimelevels[g_, n_] :=
EnsureInterfaceTimelevels[g_, n_] :=
Module[
{tls, g2},
tls = GroupTimelevels[g];
tls = lookup[GroupExtras[g], InterfaceTimelevels, False];
If[tls === False,
AddGroupExtra[g, Timelevels -> n],
AddGroupExtra[g, InterfaceTimelevels -> n],
(* else *)
g /. {(Timelevels -> x_) :> (Timelevels -> Max[tls, n])}]];
g /. {(InterfaceTimelevels -> x_) :> (InterfaceTimelevels -> Max[tls, n])}]];

End[];

Expand Down

0 comments on commit 6e9cbe2

Please sign in to comment.