From 70bfaae91146d1e5bd21ac57d1207aa94250de71 Mon Sep 17 00:00:00 2001 From: jthorn Date: Mon, 25 Sep 2006 14:25:08 +0000 Subject: This is Frank Loeffler's patch originally announced on the Patches list: "Make ADMConstraints GF public" Wed, 26 Jul 2006 10:33:08 +0200 (since the patches archive is broken, there's no web url for this :( ) It is also PR 2040: http://www.cactuscode.org/cactus_cgi-bin/gnatsweb.pl?cmd=view%20audit-trail& database=cactus&pr=2040 and discussed much on the developer's list. The text of the patch is as follows: this patch makes the GFs of CactusEinstein/ADMConstraints public. The reason is that this way other thorns can use the values already computed here for their own purposes by inheritage. One example of such a thorn is ADMDevelopment/MaskedADMConstraints, which requires this patch to work. Another possibility to access these GF would be to get their pointer by variable name. However, I would consider inheritage cleaner. I also cannot see a reason why these variables should stay private. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/ADMConstraints/trunk@124 b7a48df3-cbbf-4440-997f-b4b717c9f7fc --- interface.ccl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.ccl b/interface.ccl index c1cc94f..baeb79a 100644 --- a/interface.ccl +++ b/interface.ccl @@ -20,7 +20,7 @@ CCTK_INT FUNCTION Boundary_SelectGroupForBC(CCTK_POINTER_TO_CONST IN GH, \ USES FUNCTION Boundary_SelectVarForBC USES FUNCTION Boundary_SelectGroupForBC -private: +public: real hamiltonian type=GF tags='tensortypealias="Scalar"' { -- cgit v1.2.3