diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-06-04 13:34:25 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:22 +0100 |
commit | 37f6677d699278935fcb93d9c5d6f7b67b17db70 (patch) | |
tree | 13475518d8aa3179ee02616c6a4db3394727d65a /Carpet/CarpetRegrid2/src | |
parent | 60e5d0eeb339c4141ee6210b85e9e22da7e10cab (diff) |
CarpetRegrid2: Add comments
Diffstat (limited to 'Carpet/CarpetRegrid2/src')
-rw-r--r-- | Carpet/CarpetRegrid2/src/property.cc | 5 | ||||
-rw-r--r-- | Carpet/CarpetRegrid2/src/regrid.cc | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Carpet/CarpetRegrid2/src/property.cc b/Carpet/CarpetRegrid2/src/property.cc index ed80dfac9..c8ad16905 100644 --- a/Carpet/CarpetRegrid2/src/property.cc +++ b/Carpet/CarpetRegrid2/src/property.cc @@ -798,6 +798,11 @@ namespace CarpetRegrid2 { level_boundary const& bnd, vector<ibset> const& regions, int const rl) { + // TODO: baseextent is the exterior of the domain (i.e. it + // includes the boundary); we need to use the interior of the + // domain here (i.e. baseextent minus the boundary). Such a + // calculation is already performed in the beginning of dh.cc's + // regrid. return regions.at(rl) <= hh.baseextent(0,rl); } diff --git a/Carpet/CarpetRegrid2/src/regrid.cc b/Carpet/CarpetRegrid2/src/regrid.cc index a92e9934b..20493f402 100644 --- a/Carpet/CarpetRegrid2/src/regrid.cc +++ b/Carpet/CarpetRegrid2/src/regrid.cc @@ -343,6 +343,10 @@ namespace CarpetRegrid2 { final_properties.push_back (new in_domain()); final_properties.push_back (new is_symmetric()); + // TODO: Check that the coarse grid contains all finer grids. To + // do this, apply proper_nesting to the coarse grid, and then + // check whether it grew -- if so, this is an error. + regss.resize (regions.size()); |