Skip to content

Commit

Permalink
Remove old code for determining boundary groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 12, 2013
1 parent 3237af2 commit 65af169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Tools/CodeGen/CactusBoundary.m
Expand Up @@ -166,18 +166,14 @@
Map[createBoundScalarParam, Map[unqualifiedGroupName,evolvedGroups]]]]];


GetSources[evolvedGroups_, declaredGroups_, groups_, implementation_, thornName_] :=
GetSources[declaredGroups_, groups_, implementation_, thornName_] :=
Module[{boundarySpec, evolvedGFs},
evolvedGroups2 = MoLEvolvedGroups[declaredGroups, groups];

If[Union@evolvedGroups2 =!= Union[evolvedGroups],
Print["Group mismatch"];
Quit[1]];
evolvedGroups = MoLEvolvedGroups[declaredGroups, groups];
evolvedGFs = variablesFromGroups[evolvedGroups, groups];

evolvedGFs = variablesFromGroups[evolvedGroups2, groups];
boundarySpec =
{
Groups -> evolvedGroups2,
Groups -> evolvedGroups,
EvolvedGFs -> Map[qualifyGFName[#, groups, implementation] &, evolvedGFs],
BaseImplementation -> implementation,
ThornName -> thornName,
Expand Down
2 changes: 1 addition & 1 deletion Tools/CodeGen/KrancThorn.m
Expand Up @@ -343,7 +343,7 @@ Thorn generation (main entry point for non-tensorial thorns)

sources = Join[
sources,
CactusBoundary`GetSources[evolvedGroups, declaredGroups, groups, implementation, thornName]];
CactusBoundary`GetSources[declaredGroups, groups, implementation, thornName]];

(* ------------------------------------------------------------------------
Add parameter check source file
Expand Down

0 comments on commit 65af169

Please sign in to comment.