diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 10:27:16 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 10:27:16 +0200 |
commit | 60535a757d0d794eff24c9379b447d1ac4bd5216 (patch) | |
tree | ac0756ede2103556b8ab9692f2364125e3d404d4 | |
parent | 700c372f3fde605f18b8004b3ec5fba61ecb4a68 (diff) |
KrancThorn.m: Move MoL-related code to MoL section
-rw-r--r-- | Tools/CodeGen/KrancThorn.m | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Tools/CodeGen/KrancThorn.m b/Tools/CodeGen/KrancThorn.m index 7ab3341..284fab9 100644 --- a/Tools/CodeGen/KrancThorn.m +++ b/Tools/CodeGen/KrancThorn.m @@ -234,20 +234,16 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ (* 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 |