Skip to content

Commit

Permalink
Change arguments of CactusBoundary`GetParameters to declaredGroups an…
Browse files Browse the repository at this point in the history
…d groups from evolvedGFs and evolvedGroups

This means the caller doesn't have to know about which groups are evolved.  It changes the ordering of the parameters.
  • Loading branch information
ianhinder committed Sep 11, 2013
1 parent e180367 commit cf0ebf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Tools/CodeGen/CactusBoundary.m
Expand Up @@ -147,7 +147,12 @@
};

DefFn[
GetParameters[evolvedGFs_List, evolvedGroups_List] :=
GetParameters[declaredGroups_List, groups_List] :=
Module[
{evolvedGFs, evolvedGroups},
evolvedGroups = MoLEvolvedGroups[declaredGroups, groups];
evolvedGFs = variablesFromGroups[evolvedGroups, groups];

Join[Map[createBoundTypeParam[#,"skip"] &, evolvedGFs],
Map[createBoundTypeParam[#,"none"] &, Map[unqualifiedGroupName,evolvedGroups]],

Expand All @@ -158,7 +163,7 @@
Map[createBoundLimitParam, Map[unqualifiedGroupName,evolvedGroups]],

Map[createBoundScalarParam, evolvedGFs],
Map[createBoundScalarParam, Map[unqualifiedGroupName,evolvedGroups]]]];
Map[createBoundScalarParam, Map[unqualifiedGroupName,evolvedGroups]]]]];


GetSources[evolvedGroups_, groups_, implementation_, thornName_] :=
Expand Down
2 changes: 1 addition & 1 deletion Tools/CodeGen/Param.m
Expand Up @@ -370,7 +370,7 @@
thornName, declaredGroups, groups,
evolutionTimelevels, defaultEvolutionTimelevels],
calculationParameterStructures[calcs],
CactusBoundary`GetParameters[variablesFromGroups[evolvedGroups, groups], evolvedGroups]];
CactusBoundary`GetParameters[declaredGroups, groups]];

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

0 comments on commit cf0ebf3

Please sign in to comment.