Skip to content

Commit

Permalink
KrancThorn.m: Accumulate startup file in sources variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 12, 2013
1 parent e0ff723 commit 2f67367
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Tools/CodeGen/KrancThorn.m
Expand Up @@ -242,7 +242,8 @@ Thorn generation (main entry point for non-tensorial thorns)
InfoMessage[Terse, "Creating MoL registration file"];
(* TODO: only do this for thorns with evolved variables *)

AppendTo[sources,
AppendTo[
sources,
{Filename -> "RegisterMoL.cc",
Contents -> CreateKrancMoLRegister[
evolvedGroups, nonevolvedGroups, evolvedODEGroups,
Expand All @@ -269,7 +270,10 @@ Thorn generation (main entry point for non-tensorial thorns)
------------------------------------------------------------------------ *)

InfoMessage[Terse, "Creating startup file"];
startup = CreateStartupFile[thornName, thornName];
AppendTo[
sources,
{Filename -> "Startup.cc",
Contents -> CreateStartupFile[thornName, thornName]}];

(* ------------------------------------------------------------------------
Create CCL files
Expand Down Expand Up @@ -389,7 +393,6 @@ Thorn generation (main entry point for non-tensorial thorns)
CaKernel -> cakernel,
Makefile -> make,
Sources -> Join[sources, {
{Filename -> "Startup.cc", Contents -> startup},
{Filename -> "RegisterSymmetries.cc", Contents -> symregister},
{Filename -> "Differencing.h", Contents -> diffHeader}},
MapThread[{Filename -> #1, Contents -> #2} &,
Expand Down

0 comments on commit 2f67367

Please sign in to comment.