diff options
author | tradke <tradke@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2004-06-21 09:18:19 +0000 |
---|---|---|
committer | tradke <tradke@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2004-06-21 09:18:19 +0000 |
commit | 2a0ce100562bebe9953b3a865e82a2293c07a33a (patch) | |
tree | 1340b3e7d6941ddbe4ffa9c98f488a8a896f2972 /src/RegisterSymmetries.c | |
parent | 55de1ab2e0a2b4c98bc83d4331e9586a94129bd4 (diff) |
Added prototypes for scheduled functions.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@208 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'src/RegisterSymmetries.c')
-rw-r--r-- | src/RegisterSymmetries.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/RegisterSymmetries.c b/src/RegisterSymmetries.c index c679f3f..d7a69a6 100644 --- a/src/RegisterSymmetries.c +++ b/src/RegisterSymmetries.c @@ -7,34 +7,34 @@ #include "Symmetry.h" void DecodeSymParameters3D(int sym[6]); +void RegisterSymmetryBoundaries (CCTK_ARGUMENTS); void RegisterSymmetryBoundaries (CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - + int sym[6]; int n; CCTK_INT faces[6]; CCTK_INT width[6]; CCTK_INT handle; - CCTK_INT ierr; - + DecodeSymParameters3D (sym); - - for (n=0; n<6; ++n) { + + for (n=0; n<6; ++n) + { faces[n] = sym[n]; width[n] = cctk_nghostzones[n/2]; } - + handle = SymmetryRegister ("reflection_symmetry"); if (handle < 0) { CCTK_WARN (0, "Could not register symmetry boundary condition"); } - ierr = SymmetryRegisterGrid (cctkGH, handle, faces, width); - if (ierr < 0) + if (SymmetryRegisterGrid (cctkGH, handle, faces, width) < 0) { CCTK_WARN (0, "Could not register the symmetry boundaries -- probably some other thorn has already registered the same boundary faces for a different symmetry"); } |