aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid/src/regrid.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-06-03 22:08:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-06-03 22:08:00 +0000
commite83ff5f82f65a75e90044e5fb564aec1cd1e5a1a (patch)
tree603152d4672eb7eaa03dcadb9aeaedb258561a71 /Carpet/CarpetRegrid/src/regrid.cc
parentd2f2c7964192cc72ba94d7083d695f4be861eaf1 (diff)
CarpetReduce: Handle empty domains gracefully
Empty simulation domains occur e.g. with Cartoon2D, where the total volume of the domain is zero: All evolved grid points lie on the boundary. Before, CarpetReduce did not handle this special case correctly. Instead of returning 0 for all reductions, set up the grid point weights to perform a 2D reduction on the data. That is, the domain is treated as if it was one grid point wide in the direction in which it has the extent zero. darcs-hash:20050603220813-891bb-83088cbd570d967aee95170915c54d905ea5bf71.gz
Diffstat (limited to 'Carpet/CarpetRegrid/src/regrid.cc')
0 files changed, 0 insertions, 0 deletions