diff options
author | ianhin <ianhin> | 2006-01-13 16:14:39 +0000 |
---|---|---|
committer | ianhin <ianhin> | 2006-01-13 16:14:39 +0000 |
commit | a17acb54cd79514cc4e70a06f229d7ab8c850148 (patch) | |
tree | bc9b7725e8a8cc09c64de7f454a64459647ba6ef /Tools/CodeGen | |
parent | b4bb9cb25115731aec37bdc77fdbbff1d2ff963f (diff) |
Removed inclusion of precomputations.h as it is never used. Made
stripping of implementation names a little more consistent, though it
is still a bit messy.
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r-- | Tools/CodeGen/Thorn.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m index 4491e52..1358dcb 100644 --- a/Tools/CodeGen/Thorn.m +++ b/Tools/CodeGen/Thorn.m @@ -437,11 +437,12 @@ CreateSetterSource[calcs_, debug_, opts___] := ], Map[IncludeFile, Join[{"cctk.h", "cctk_Arguments.h", "cctk_Parameters.h", - "precomputations.h", "GenericFD.h", "Differencing.h"}, include]], + (*"precomputations.h",*) "GenericFD.h", "Differencing.h"}, include]], calculationMacros[], (* For each function structure passed, create the function and insert it *) + Map[CreateCalculationFunction[# , debug]& , calcs]}]; @@ -560,13 +561,15 @@ CreateMoLRegistrationSource[spec_, debug_] := CommentedBlock["Register all the evolved grid functions with MoL", +(* FIXME: We should clarify exactly what should happen with the implementation names here *) + Map[{"ierr += MoLRegisterEvolved(CCTK_VarIndex(\"", #, "\"), CCTK_VarIndex(\"", lookup[spec,BaseImplementation], "::", unqualifiedGroupName[#], "rhs\"));\n"} &, lookup[spec, EvolvedGFs]]], CommentedBlock["Register all the primitive grid functions with MoL", Map[{"ierr += MoLRegisterConstrained(CCTK_VarIndex(\"", - lookup[spec,BaseImplementation], "::", #, "\"));\n"} &, + lookup[spec,BaseImplementation], "::", unqualifiedGroupName[#], "\"));\n"} &, lookup[spec, PrimitiveGFs]]], "return ierr;\n"}]}; |