Skip to content

Commit

Permalink
KrancThorn.m: Move MoL-related code to MoL section
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 12, 2013
1 parent 700c372 commit 60535a7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Tools/CodeGen/KrancThorn.m
Expand Up @@ -234,20 +234,16 @@ Thorn generation (main entry point for non-tensorial thorns)
(* Add the groups into the calcs *)
calcs = Map[Join[#, {Groups -> groups}] &, calcs];

(* ------------------------------------------------------------------------
Split calculations
------------------------------------------------------------------------ *)
rhsGroups = Map[groupName, rhsGroupDefinitions];
rhsODEGroups = Map[groupName, rhsODEGroupDefinitions];

calcs = SplitCalculations[calcs];
declaredGroups = Join[declaredGroups, rhsGroups, odeGroups, rhsODEGroups];

(* ------------------------------------------------------------------------
Add MoL groups to declaredGroups
Split calculations
------------------------------------------------------------------------ *)

rhsGroups = Map[groupName, rhsGroupDefinitions];
rhsODEGroups = Map[groupName, rhsODEGroupDefinitions];

declaredGroups = Join[declaredGroups, rhsGroups, odeGroups, rhsODEGroups];
calcs = SplitCalculations[calcs];

(* ------------------------------------------------------------------------
Add options to calculations
Expand Down

0 comments on commit 60535a7

Please sign in to comment.