diff options
author | shusa <shusa> | 2004-10-27 18:46:42 +0000 |
---|---|---|
committer | shusa <shusa> | 2004-10-27 18:46:42 +0000 |
commit | 283b7ad53cada8794a20bd533ba222b19407e9e8 (patch) | |
tree | 4ecc862c2677b49e09839fe0b3be6e1aa08545ec /Tools/CodeGen/Thorn.m | |
parent | 374b5f195deaedf15698cc2baad205d3da52b1a0 (diff) |
changes toward supporting using GFs from other thorns as evolved GFs (e.g.
ADMBase::lapse), to be described im more detail when finished.
Diffstat (limited to 'Tools/CodeGen/Thorn.m')
-rw-r--r-- | Tools/CodeGen/Thorn.m | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m index 23968dd..4b7e6fd 100644 --- a/Tools/CodeGen/Thorn.m +++ b/Tools/CodeGen/Thorn.m @@ -45,7 +45,7 @@ Textual, TriggerGroups}; EndPackage[]; -BeginPackage["Thorn`", "CodeGen`", "CalculationFunction`", "MapLookup`"]; +BeginPackage["Thorn`", "CodeGen`", "CalculationFunction`", "MapLookup`", "KrancGroups`"]; (* These functions are externally visible, and comprise the public interface to this package. *) @@ -587,7 +587,7 @@ CreateMoLBoundariesSource[spec_] := Module[{gfs, groups, tmp, lang}, gfs = lookup[spec, EvolvedGFs]; - groups = lookup[spec, Groups]; + groups = Map[unqualifiedGroupName, lookup[spec, Groups]]; listBCparfileEntry[gforgroup_] := Module[{prefix}, (* include a comment block with template parameter file entries *) @@ -602,8 +602,8 @@ CreateMoLBoundariesSource[spec_] := trivialBCGroup[group_] := Module[{boundpar, fullgroupname}, (* boundary conditions that do not have parameters besides their name *) - boundpar = group <> "_bound"; - fullgroupname = lookup[spec, BaseImplementation] <> "::" <> ToString@group; + boundpar = unqualifiedGroupName@group <> "_bound"; + fullgroupname = qualifyGroupName[ToString@group, lookup[spec, BaseImplementation]]; {"\n", "if (CCTK_EQUALS(" <> boundpar <> ", \"none\" ) ||\n", @@ -642,11 +642,12 @@ CreateMoLBoundariesSource[spec_] := "}\n"}]; - radiationBCGroup[group_] := Module[{boundpar, fullgroupnamei, myhandle}, + radiationBCGroup[group_] := Module[{boundpar, fullgroupname, myhandle}, (* a simple radiation boundary condition *) - boundpar = group <> "_bound"; - fullgroupname = lookup[spec, BaseImplementation] <> "::" <> ToString@group; + boundpar = unqualifiedGroupName@ToString@group <> "_bound"; + fullgroupname = qualifyGroupName[ToString@group, lookup[spec, BaseImplementation]]; + myhandle = "handle_" <> boundpar; {"\n", @@ -706,8 +707,8 @@ CreateMoLBoundariesSource[spec_] := scalarBCGroup[group_] := Module[{boundpar, fullgroupnamei, myhandle}, (* simple dirichlet boundary condition *) - boundpar = group <> "_bound"; - fullgroupname = lookup[spec, BaseImplementation] <> "::" <> ToString@group; + boundpar = unqualifiedGroupName@group <> "_bound"; + fullgroupname = qualifyGroupName[ToString@group, lookup[spec, BaseImplementation]]; myhandle = "handle_" <> boundpar; {"\n", |