diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-02-17 16:26:25 -0800 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:31 +0000 |
commit | 2bfffa309ba1dfad58d0ff36ca168b1c62d5a6d2 (patch) | |
tree | 859508ab280030584899f2992bf7ede26574d79a /Carpet/CarpetLib/src/dh.hh | |
parent | cfae0901455ec6058613fe0a6a92ede157e2e6c3 (diff) |
CarpetLib: Add field "active" to dh::dboxes
Add field "active" to dh::dboxes, the replicated part of the data
hierarchy. Since bboxsets cannot be transmitted via MPI, this can
contain only up to 4 bboxes. There are helper routines to transform
bboxsets to these bboxes and back.
Diffstat (limited to 'Carpet/CarpetLib/src/dh.hh')
-rw-r--r-- | Carpet/CarpetLib/src/dh.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/dh.hh b/Carpet/CarpetLib/src/dh.hh index 6d0b63007..d509f1bda 100644 --- a/Carpet/CarpetLib/src/dh.hh +++ b/Carpet/CarpetLib/src/dh.hh @@ -49,10 +49,19 @@ public: ibbox owned; // evolved in time ibbox interior; // interior (without ghost zones) + // TODO: Create a new datatype bboxarr for this? Or get rid of + // it? + int numactive; + static int const maxactive = 4; + ibbox active[maxactive]; // owned minus buffers + // Region statistics: typedef ibbox::size_type size_type; size_type exterior_size, owned_size, active_size; + static void ibset2ibboxs (ibset const& s, ibbox* bs, int& nbs); + static void ibboxs2ibset (ibbox const* bs, int const& nbs, ibset& s); + size_t memory () const CCTK_ATTRIBUTE_PURE; istream & input (istream & is); ostream & output (ostream & os) const; |