Skip to content

Commit

Permalink
KrancThorn.m: Ensure that conservation calculations have required ent…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
ianhinder committed Nov 14, 2012
1 parent 052fa46 commit 72b0c57
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Tools/CodeGen/KrancThorn.m
Expand Up @@ -189,9 +189,14 @@ Thorn generation (main entry point for non-tensorial thorns)

(* Add in calculations to solve any conservation laws that have
been provided *)
calcs = Join[calcs,
consCalcs = Flatten[Map[ProcessConservationCalculation[#,thornName] &,
consCalcsIn],1]];

consCalcs = Flatten[Map[ProcessConservationCalculation[#,thornName] &,
consCalcsIn],1];

consCalcs = Map[Join[#, {PartialDerivatives -> partialDerivs,
Implementation -> implementation}] &, consCalcs];

calcs = Join[calcs,consCalcs];
(* Print["consCalcs = ", consCalcs]; *)

consGroups = Union@Flatten[
Expand Down

0 comments on commit 72b0c57

Please sign in to comment.