aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetSlab
diff options
context:
space:
mode:
authorThomas Radke <tradke@aei.mpg.de>2005-03-31 08:22:00 +0000
committerThomas Radke <tradke@aei.mpg.de>2005-03-31 08:22:00 +0000
commit9176606044d27ef371642496410f9e4db17c7c81 (patch)
tree95242a4a78642d8c87146b52ee82f8b4de098fa5 /Carpet/CarpetSlab
parent01d5df806689a07a6af0e0c896e346462de2bdde (diff)
CarpetSlab: pass vartype in comm_state constructor tto make use of collective communication buffers
So far collective buffers can be used only for the collector object. For the case where all processors should receive the resulting hyperslab, the comm_state loop was left untouched because I didn't understand the code. darcs-hash:20050331082252-776a0-bae45b204fdf31f38969bee81c0ae97edae68f5c.gz
Diffstat (limited to 'Carpet/CarpetSlab')
-rw-r--r--Carpet/CarpetSlab/src/GetHyperslab.cc2
-rw-r--r--Carpet/CarpetSlab/src/slab.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetSlab/src/GetHyperslab.cc b/Carpet/CarpetSlab/src/GetHyperslab.cc
index 1c9e687cc..4f6bb34a4 100644
--- a/Carpet/CarpetSlab/src/GetHyperslab.cc
+++ b/Carpet/CarpetSlab/src/GetHyperslab.cc
@@ -177,7 +177,7 @@ namespace CarpetSlab {
// Done with the temporary stuff
mydata = 0;
- for (comm_state state; !state.done(); state.step()) {
+ for (comm_state state(gp.vartype); !state.done(); state.step()) {
// Loop over all components, copying data from them
BEGIN_LOCAL_COMPONENT_LOOP (cgh, gp.grouptype) {
diff --git a/Carpet/CarpetSlab/src/slab.cc b/Carpet/CarpetSlab/src/slab.cc
index ac8ea0ef9..d204a1cca 100644
--- a/Carpet/CarpetSlab/src/slab.cc
+++ b/Carpet/CarpetSlab/src/slab.cc
@@ -209,7 +209,7 @@ namespace CarpetSlab {
// Done with the temporary stuff
mydata = 0;
- for (comm_state state; !state.done(); state.step()) {
+ for (comm_state state(gp.vartype); !state.done(); state.step()) {
// Loop over all components, copying data from them
BEGIN_LOCAL_COMPONENT_LOOP (cgh, gp.grouptype) {