Skip to content

Commit

Permalink
KrancThorn.m: Eliminate several temporary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 12, 2013
1 parent eb39bfe commit 311d24d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions Tools/CodeGen/KrancThorn.m
Expand Up @@ -68,10 +68,10 @@ Thorn generation (main entry point for non-tensorial thorns)
parameters,
configuration,
partialDerivs, evolvedGroups, rhsGroups, nonevolvedGroups,
interface, evolvedGroupDefinitions, thornspec,
interface, evolvedGroupDefinitions,
evolvedODEGroups, nonevolvedODEGroups,
evolvedODEGroupDefinitions, rhsODEGroups,
consCalcs, consCalcsIn, consGroups, cakernel,
cakernel,
sources = {}},

InfoMessage[Terse, "Processing arguments to CreateKrancThorn"];
Expand Down Expand Up @@ -406,17 +406,20 @@ Thorn generation (main entry point for non-tensorial thorns)
------------------------------------------------------------------------ *)

(* Put all the above together and generate the Cactus thorn *)
thornspec = {Name -> thornName,
Directory -> parentDirectory,
Configuration -> configuration,
Interface -> interface,
Schedule -> schedule,
Param -> param,
CaKernel -> cakernel,
Makefile -> make,
Sources -> sources};
InfoMessage[Terse, "Creating thorn"];
CreateThorn[thornspec]];

Module[
{thornspec},
thornspec = {Name -> thornName,
Directory -> parentDirectory,
Configuration -> configuration,
Interface -> interface,
Schedule -> schedule,
Param -> param,
CaKernel -> cakernel,
Makefile -> make,
Sources -> sources};
InfoMessage[Terse, "Creating thorn"];
CreateThorn[thornspec]]];

End[];
EndPackage[];

0 comments on commit 311d24d

Please sign in to comment.