diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-04-07 02:41:08 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-04-07 02:41:08 +0000 |
commit | 2802d63d6f953d6d53886f653d5a74ff6b2f1319 (patch) | |
tree | 3a4a4c75f911200309f27858f6302cac81afc990 /src/include/cctk_Groups.h | |
parent | 52662f132be42e5f8d77f3b9f7c4fd31fe47ff1c (diff) |
Add a new function CCTK_MaxGFDim to the flesh which returns the
(maximum) dimension of all grid functions.
Cactus can currently not handle the case where one uses grid arrays of
dimension D while grid functions have a dimension less than D. During
initialisation, Cactus sets cctk_dim to the largest dimension of all
grid variables in all active thorns. This is arguably wrong; cctk_dim
should be set to the (maximum) dimension of the grid functions.
This patch adds a new function CCTK_MaxGFDim to the flesh which
returns the (maximum) dimension of all grid functions. This function
is used to set cctk_dim.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4476 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Groups.h')
-rw-r--r-- | src/include/cctk_Groups.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/cctk_Groups.h b/src/include/cctk_Groups.h index 9b44008c..0d101a76 100644 --- a/src/include/cctk_Groups.h +++ b/src/include/cctk_Groups.h @@ -64,6 +64,7 @@ int CCTK_GroupTypeI(int group); const char *CCTK_ImpFromVarI(int var); int CCTK_MaxDim(void); +int CCTK_MaxGFDim(void); int CCTK_NumGroups(void); |