Skip to content

Commit

Permalink
Param.m: Eliminate temporary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 11, 2013
1 parent 686470e commit 40d2ed8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tools/CodeGen/Param.m
Expand Up @@ -339,16 +339,14 @@
evolutionTimelevels_, defaultEvolutionTimelevels_,
calcs_, opts:OptionsPattern[]] :=
Module[
{evolvedGFs, otherTimelevelsParam, genericfdStruct, verboseStruct, calcEveryStructs, calcOffsetStructs,
{otherTimelevelsParam, genericfdStruct, verboseStruct, calcEveryStructs, calcOffsetStructs,
allInherited, allExtended, implementationNames,
userImplementations, userImplementations2, implementations,
params, paramspec, param},

(* reals and ints are symbols containing parameter names. The
inherited ones have implementation names as well *)

evolvedGFs = variablesFromGroups[evolvedGroups, groups];

otherTimelevelsParam =
{
Name -> "other_timelevels",
Expand All @@ -373,7 +371,7 @@
{otherTimelevelsParam},
calcEveryStructs,
calcOffsetStructs,
CactusBoundary`GetParameters[evolvedGFs, evolvedGroups]];
CactusBoundary`GetParameters[variablesFromGroups[evolvedGroups, groups], evolvedGroups]];

paramspec = {Implementations -> usedParameters[parameters, opts],
NewParameters -> params};
Expand Down

0 comments on commit 40d2ed8

Please sign in to comment.