diff options
author | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2009-11-11 03:27:42 +0000 |
---|---|---|
committer | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2009-11-11 03:27:42 +0000 |
commit | e8dcf65ac8923ace1573e2da0f3dc40b9f6c6040 (patch) | |
tree | 1316216992bc78d4c0f6439a09310ed5e8cd449c /src | |
parent | a8118a77fee3da3c90c680f2a050c81e037a519c (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
Diffstat (limited to 'src')
-rw-r--r-- | src/interpolate.c | 2 | ||||
-rw-r--r-- | src/make.code.defn | 1 | ||||
-rw-r--r-- | src/registersymmetry.c | 2 | ||||
-rw-r--r-- | src/rotatingsymmetry90.c | 12 | ||||
-rw-r--r-- | src/rotatingsymmetry90.h | 2 |
5 files changed, 10 insertions, 9 deletions
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 |