aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrideout <rideout@b7a48df3-cbbf-4440-997f-b4b717c9f7fc>2003-04-28 22:24:17 +0000
committerrideout <rideout@b7a48df3-cbbf-4440-997f-b4b717c9f7fc>2003-04-28 22:24:17 +0000
commit48e3fb88387d2d08cebbad4c0d7eefb677179d81 (patch)
treed58aaab2b2ee5bbd5cfec3da660d759b0f264157 /src
parent37ecaa15d029f7ca274b2db95c6aced9e63b3992 (diff)
Split hamnormalized into its own variable group, so that it will work
properly with Cartoon. Cartoon is now properly called by selecting variables for 'None' boundary condition, and defining their proper tensortypealias in interface.ccl. Note that this illustrates how to trigger an entire schedule group in the ANALYSIS time bin. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/ADMConstraints/trunk@84 b7a48df3-cbbf-4440-997f-b4b717c9f7fc
Diffstat (limited to 'src')
-rw-r--r--src/ADMConstraints.F25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/ADMConstraints.F b/src/ADMConstraints.F
index 9c30b1b..a4423b9 100644
--- a/src/ADMConstraints.F
+++ b/src/ADMConstraints.F
@@ -20,11 +20,7 @@
#include "cctk_Parameters.h"
#include "cctk_Arguments.h"
-#include "cctk_DefineThorn.h"
-
-#ifdef BETATHORNS_CARTOON2D
-#include "BetaThorns/Cartoon2D/src/Cartoon2D_tensors.h"
-#endif
+#include "cctk_Faces.h"
subroutine ADMConstraints(CCTK_ARGUMENTS)
@@ -34,6 +30,10 @@
DECLARE_CCTK_PARAMETERS
DECLARE_CCTK_FUNCTIONS
+c Function aliases.
+
+ CCTK_INT :: Boundary_SelectVarForBC, Boundary_SelectGroupForBC
+
integer i,j,k
integer nx,ny,nz
@@ -278,17 +278,18 @@ c Cartoon.
if (cartoon==1) then
-#ifdef BETATHORNS_CARTOON2D
if (CCTK_IsThornActive("Cartoon2D")==1) then
- call BndCartoon2DGN(ierr,cctkGH,TENSORTYPE_SCALAR,"admconstraints::hamiltonian")
- call BndCartoon2DGN(ierr,cctkGH,TENSORTYPE_U,"admconstraints::momentum")
+ ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES,
+ $ "admconstraints::ham", "None")
+ ierr = Boundary_SelectVarForBC(cctkGH, CCTK_ALL_FACES,
+ $ "admconstraints::hamnormalized", "None")
+ ierr = Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES,
+ $ "admconstraints::momentum", "None")
+ else
+ call CCTK_WARN(0,"You have not activated Cartoon2D")
end if
-#else
- call CCTK_WARN(0,"You have not compiled with Cartoon2D")
-#endif
end if
return
end
-