[Commits] [svn:einsteintoolkit] ADMBase/trunk/src/ (Rev. 67)

roland.haas at physics.gatech.edu roland.haas at physics.gatech.edu
Mon May 14 17:09:01 CDT 2012


User: rhaas
Date: 2012/05/14 05:09 PM

Modified:
 /trunk/src/
  InitSymBound.c

Log:
 ADMBase: re-introduce code to respecet boundary width
 
 that was accidentally removed in revision 66.

File Changes:

Directory: /trunk/src/
======================

File [modified]: InitSymBound.c
Delta lines: +9 -8
===================================================================
--- trunk/src/InitSymBound.c	2012-05-11 23:15:39 UTC (rev 66)
+++ trunk/src/InitSymBound.c	2012-05-14 22:09:01 UTC (rev 67)
@@ -123,12 +123,13 @@
 }
 
 /* A macro for selecting boundary conditions and checking for errors */
-static void select_bc(cGH const* const cctkGH, char const* const groupname)
+static void select_bc(cGH const* const cctkGH, char const* const groupname,
+                      int const stencil)
 {
   DECLARE_CCTK_PARAMETERS;
   
   int const ierr =
-    Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, -1,
+    Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, stencil, -1,
                               groupname, admbase_boundary_condition);
   if (ierr < 0)
   {
@@ -166,22 +167,22 @@
   if (CCTK_EQUALS(evolution_method, "none"  ) ||
       CCTK_EQUALS(evolution_method, "static")) 
   {
-    select_bc(cctkGH, "ADMBase::metric");
-    select_bc(cctkGH, "ADMBase::curv");
+    select_bc(cctkGH, "ADMBase::metric", stencil);
+    select_bc(cctkGH, "ADMBase::curv", stencil);
   }
 
   if (CCTK_EQUALS(lapse_evolution_method, "static"))
-    select_bc(cctkGH, "ADMBase::lapse");
+    select_bc(cctkGH, "ADMBase::lapse", stencil);
 
   if (!CCTK_EQUALS(initial_dtlapse, "none") &&
        CCTK_EQUALS(dtlapse_evolution_method, "static"))
-    select_bc(cctkGH, "ADMBase::dtlapse");
+    select_bc(cctkGH, "ADMBase::dtlapse", stencil);
 
   if (!CCTK_EQUALS(initial_shift, "none") &&
        CCTK_EQUALS(shift_evolution_method, "static"))
-    select_bc(cctkGH, "ADMBase::shift");
+    select_bc(cctkGH, "ADMBase::shift", stencil);
 
   if (!CCTK_EQUALS(initial_dtshift, "none") &&
        CCTK_EQUALS(dtshift_evolution_method, "static"))
-    select_bc(cctkGH, "ADMBase::dtshift");
+    select_bc(cctkGH, "ADMBase::dtshift", stencil);
 }



More information about the Commits mailing list