/*@@ @file ConstantBoundary.c @date Mon Mar 15 15:09:00 1999 @author Gerd Lanfermann, Gabrielle Allen @desc Constant boundary conditions for a given GF group or single GF @enddesc @@*/ /*#define DEBUG_BOUND*/ #include #include #include #include #include #include #include "cctk.h" #include "cctk_Parameters.h" #include "CactusBase/CartGrid3D/src/Symmetry.h" #include "cctk_FortranString.h" /*@@ @routine BndApplyConstant3Di @date Thu Mar 2 11:08:49 2000 @author Gerd Lanfermann @desc Apply the constant boundary condition for 3d variables @enddesc @calls @calledby BndConstantGI, BndConstantVI, BndConstantVN, BndConstantGN, @history @endhistory @@*/ int BndApplyConstant3Di(cGH *GH, int gdim, int *doBC, int *lsh, int *stencil_size, CCTK_REAL var0, CCTK_REAL *var) { int i,j,k,sw; if (doBC[0] == 1) { for (k=0;kcctk_lsh[0]-sw-1)] = var0; } } return(0); }