From 587a1b8816cf603ce3ee2705de9d660a18a7e513 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 12 Sep 2013 10:31:01 +0200 Subject: KrancThorn.m: Move MoL registration source file generation into MoL section --- Tools/CodeGen/KrancThorn.m | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Tools/CodeGen/KrancThorn.m b/Tools/CodeGen/KrancThorn.m index 284fab9..30d3e2a 100644 --- a/Tools/CodeGen/KrancThorn.m +++ b/Tools/CodeGen/KrancThorn.m @@ -239,6 +239,10 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ declaredGroups = Join[declaredGroups, rhsGroups, odeGroups, rhsODEGroups]; + InfoMessage[Terse, "Creating MoL registration file"]; + (* TODO: only do this for thorns with evolved variables *) + molregister = CreateKrancMoLRegister[evolvedGroups, nonevolvedGroups, evolvedODEGroups, nonevolvedODEGroups, groups, implementation, thornName]; + (* ------------------------------------------------------------------------ Split calculations ------------------------------------------------------------------------ *) @@ -301,15 +305,6 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ boundarySources = CactusBoundary`GetSources[evolvedGroups, groups, implementation, thornName]; - (* ------------------------------------------------------------------------ - Create MoL registration source file - ------------------------------------------------------------------------ *) - - (* TODO: only do this for thorns with evolved variables *) - - InfoMessage[Terse, "Creating MoL registration file"]; - molregister = CreateKrancMoLRegister[evolvedGroups, nonevolvedGroups, evolvedODEGroups, nonevolvedODEGroups, groups, implementation, thornName]; - (* ------------------------------------------------------------------------ Create symmetry registration source file ------------------------------------------------------------------------ *) -- cgit v1.2.3