aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5>2009-11-11 03:27:42 +0000
committerschnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5>2009-11-11 03:27:42 +0000
commite8dcf65ac8923ace1573e2da0f3dc40b9f6c6040 (patch)
tree1316216992bc78d4c0f6439a09310ed5e8cd449c
parenta8118a77fee3da3c90c680f2a050c81e037a519c (diff)
Use aliased function GetLocalComponents (if present) to ensure that
there are at most one component per MPI process. Remove cvs $Header$ comments. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry90/trunk@47 c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5
-rw-r--r--README18
-rw-r--r--configuration.ccl1
-rw-r--r--doc/documentation.tex6
-rw-r--r--interface.ccl10
-rw-r--r--param.ccl1
-rw-r--r--schedule.ccl1
-rw-r--r--src/interpolate.c2
-rw-r--r--src/make.code.defn1
-rw-r--r--src/registersymmetry.c2
-rw-r--r--src/rotatingsymmetry90.c12
-rw-r--r--src/rotatingsymmetry90.h2
11 files changed, 38 insertions, 18 deletions
diff --git a/README b/README
index 434ec8b..76c047f 100644
--- a/README
+++ b/README
@@ -20,3 +20,21 @@ y directions.
This symmetry boundary condition can be mixed with arbitrary symmetry
conditions in the z direction, e.g. bitant or periodicity.
+
+
+
+================================================================================
+
+
+
+R90: operator that rotates points (counter-clockwise) by 90 degrees
+
+f(x) = f(R90 x) = f(R180 x) = f(R270 )
+
+
+symmetry about x=0:
+
+f (-x) = f (+x)
+vx (-x) = vx (+x)
+vy (-x) = -vy (+x)
+vz: same as scalar
diff --git a/configuration.ccl b/configuration.ccl
index 8a0cd1d..2f3c8d7 100644
--- a/configuration.ccl
+++ b/configuration.ccl
@@ -1,4 +1,3 @@
# Configuration definition for thorn RotatingSymmetry90
-# $Header$
REQUIRES THORNS: Slab
diff --git a/doc/documentation.tex b/doc/documentation.tex
index 23b2c81..4fc4fc3 100644
--- a/doc/documentation.tex
+++ b/doc/documentation.tex
@@ -2,7 +2,6 @@
% Cactus Thorn template for ThornGuide documentation
% Author: Ian Kelley
% Date: Sun Jun 02, 2002
-% $Header$
%
% Thorn documentation in the latex file doc/documentation.tex
% will be included in ThornGuides built with the Cactus make system.
@@ -66,7 +65,6 @@
% *======================================================================*
% If you are using CVS use this line to give version information
-% $Header$
\documentclass{article}
@@ -79,14 +77,14 @@
\begin{document}
% The author of the documentation
-\author{Erik Schnetter \textless schnetter@aei.mpg.de\textgreater}
+\author{Erik Schnetter \textless schnetter@cct.lsu.edu\textgreater}
% The title of the document (not necessarily the name of the Thorn)
\title{RotatingSymmetry180}
% the date your document was last changed, if your document is in CVS,
% please use:
-\date{$ $Date$ $}
+\date{2004-04-08}
\maketitle
diff --git a/interface.ccl b/interface.ccl
index 94b7368..59fc741 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -1,5 +1,4 @@
-# Interface definition for thorn RotatingSymmetry90g
-# $Header$
+# Interface definition for thorn RotatingSymmetry90
IMPLEMENTS: RotatingSymmetry90
@@ -70,3 +69,10 @@ CCTK_INT FUNCTION Boundary_SelectedGVs \
CCTK_INT ARRAY OUT table_handles, \
CCTK_STRING IN bc_name)
REQUIRES FUNCTION Boundary_SelectedGVs
+
+
+
+CCTK_INT FUNCTION \
+ GetLocalComponents \
+ (CCTK_POINTER_TO_CONST IN cctkGH)
+USES FUNCTION GetLocalComponents
diff --git a/param.ccl b/param.ccl
index 8136257..bd7b45c 100644
--- a/param.ccl
+++ b/param.ccl
@@ -1,5 +1,4 @@
# Parameter definitions for thorn RotatingSymmetry90
-# $Header$
BOOLEAN verbose "Produce screen output while applying boundary conditions"
{
diff --git a/schedule.ccl b/schedule.ccl
index e4a1e30..870d58a 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -1,5 +1,4 @@
# Schedule definitions for thorn RotatingSymmetry90
-# $Header$
SCHEDULE Rot90_CheckTensorTypes AT paramcheck
{
diff --git a/src/interpolate.c b/src/interpolate.c
index 06ab1c5..16370f2 100644
--- a/src/interpolate.c
+++ b/src/interpolate.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/make.code.defn b/src/make.code.defn
index 5907239..31bd59b 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -1,5 +1,4 @@
# Main make.code.defn file for thorn RotatingSymmetry90
-# $Header$
# Source files in this directory
SRCS = interpolate.c rotatingsymmetry90.c registersymmetry.c
diff --git a/src/registersymmetry.c b/src/registersymmetry.c
index 0d2d7b0..326e737 100644
--- a/src/registersymmetry.c
+++ b/src/registersymmetry.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c
index 42776d8..397797f 100644
--- a/src/rotatingsymmetry90.c
+++ b/src/rotatingsymmetry90.c
@@ -1,5 +1,3 @@
-/* $Header$ */
-
#include <assert.h>
#include <math.h>
#include <stdlib.h>
@@ -14,6 +12,8 @@
#include "Slab.h"
+#include "rotatingsymmetry90.h"
+
/* This is pretty hard coded into all the tensor types and cannot be
@@ -541,6 +541,14 @@ int BndRot90VI (cGH const * restrict const cctkGH,
assert (0);
}
+ if (CCTK_IsFunctionAliased("GetLocalComponents")) {
+ int const num_local_components = GetLocalComponents(cctkGH);
+ if (num_local_components > 1) {
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "TAT/Slab can only be used if there is a single local component per MPI process");
+ }
+ }
+
options = Util_TableCreateFromString ("useghosts=1");
assert (options>=0);
diff --git a/src/rotatingsymmetry90.h b/src/rotatingsymmetry90.h
index aa4561b..55362e7 100644
--- a/src/rotatingsymmetry90.h
+++ b/src/rotatingsymmetry90.h
@@ -1,5 +1,3 @@
-/* $Header$ */
-
#ifndef ROTATINGSYMMETRY90_H
#define ROTATINGSYMMETRY90_H