diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-10-03 23:37:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2006-10-03 23:37:00 +0000 |
commit | a6d2764b99d78bf2476ba154beff9ba2549e3491 (patch) | |
tree | d766b7f9aabfa68397a19a0deedfd53e8066fe44 /Carpet/Carpet/src/variables.hh | |
parent | f41397cb4d253af033eabd1287cc375990a7d7ff (diff) |
Carpet: Add grouptype state variable for traversing maps and components
When looping over maps and components, remember whether to loop over
grid arrays or grid functions. Grid arrays have 1 map and nprocs
components, while grid functions can have many maps are many
components per map.
Add a corresponding grouptype argument to the mode handling functions
and macros.
Update all callers.
darcs-hash:20061003233704-dae7b-d0d0bf914405821ceddfd0339fac7a640b23c42b.gz
Diffstat (limited to 'Carpet/Carpet/src/variables.hh')
-rw-r--r-- | Carpet/Carpet/src/variables.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/variables.hh b/Carpet/Carpet/src/variables.hh index 18ad71894..d27839ce8 100644 --- a/Carpet/Carpet/src/variables.hh +++ b/Carpet/Carpet/src/variables.hh @@ -82,6 +82,7 @@ namespace Carpet { // Current position on the grid hierarchy extern int reflevel; extern int mglevel; + extern int mc_grouptype; // -1, CCTK_SCALAR/CCTK_ARRAY, CCTK_GF extern int map; extern int component; |