Skip to content

Commit

Permalink
Param.m: Move details of used MoL parameters into MoL.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Sep 11, 2013
1 parent 21b0cb9 commit 9484f64
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 11 additions & 0 deletions Tools/CodeGen/MoL.m
Expand Up @@ -36,6 +36,7 @@
MoLUsedFunctions;
MoLProcessGroups;
MoLParameterStructures;
MoLUsedParameters;

Begin["`Private`"];

Expand Down Expand Up @@ -665,6 +666,16 @@
Description -> ""}},
Steerable -> Recover}}]];

DefFn[
MoLUsedParameters[] :=
{ Name -> "MethodOfLines",
UsedParameters ->
{
{Name -> "MoL_Num_Evolved_Vars", Type -> "CCTK_INT"},
{Name -> "MoL_Num_ArrayEvolved_Vars", Type -> "CCTK_INT"}
(* {Name -> "MoL_Num_Constrained_Vars", Type -> "CCTK_INT"} *)
}}];

End[];

EndPackage[];
13 changes: 1 addition & 12 deletions Tools/CodeGen/Param.m
Expand Up @@ -332,17 +332,6 @@
implementationNames = Union[Map[implementationFromQualifiedName, allInherited],
Map[implementationFromQualifiedName[lookup[#, Name]] &, allExtended]];

molImplementation =
{
Name -> "MethodOfLines",
UsedParameters ->
{
{Name -> "MoL_Num_Evolved_Vars", Type -> "CCTK_INT"},
{Name -> "MoL_Num_ArrayEvolved_Vars", Type -> "CCTK_INT"}
(* {Name -> "MoL_Num_Constrained_Vars", Type -> "CCTK_INT"} *)
}
};

userImplementations = Map[
inheritParameters[
#,
Expand All @@ -359,7 +348,7 @@
userImplementations = If[userImplementations=={{}},{},userImplementations];
userImplementations2 = If[userImplementations2=={{}},{},userImplementations2];

implementations = Join[userImplementations, userImplementations2, {genericfdStruct, molImplementation}];
implementations = Join[userImplementations, userImplementations2, {genericfdStruct, MoLUsedParameters[]}];
params = Join[{verboseStruct}, realStructs, intStructs, keywordStructs,
MoLParameterStructures[thornName, evolvedGroups, evolvedODEGroups, groups,
evolutionTimelevels, defaultEvolutionTimelevels],
Expand Down

0 comments on commit 9484f64

Please sign in to comment.