diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2005-08-15 15:00:00 +0000 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2005-08-15 15:00:00 +0000 |
commit | b3405326ebf651b20b4c44423df62ef23a1bf8f2 (patch) | |
tree | 3f28fb7697589ff69ab3ac283cd0064dba340522 /Carpet/CarpetIOHDF5/src/Output.cc | |
parent | 8493c61f465169c3d52b53b5023680a0d33f898c (diff) |
Carpet*: generalise the comm_state class for collective buffer communications
CarpetLib's comm_state class (actually, it's still just a struct) has been
extended to handle collective buffer communications for all possible C datatypes
at the same time. This makes it unnecessary for the higher-level communication
routines to loop over each individual datatype separately.
darcs-hash:20050815150023-776a0-dddc1aca7ccaebae872f9f451b2c3595cd951fed.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/Output.cc')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index a42c9a727..272150c40 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -160,7 +160,7 @@ int WriteVarUnchunked (const cGH* const cctkGH, gdata* const processor_component = data->make_typed (request->vindex); processor_component->allocate (overlap, 0); - for (comm_state state(group.vartype); not state.done(); state.step()) { + for (comm_state state; not state.done(); state.step()) { processor_component->copy_from (state, data, overlap); } @@ -314,7 +314,7 @@ int WriteVarChunkedSequential (const cGH* const cctkGH, gdata* const processor_component = data->make_typed (request->vindex); processor_component->allocate (bbox, 0); - for (comm_state state(group.vartype); not state.done(); state.step()) { + for (comm_state state; not state.done(); state.step()) { processor_component->copy_from (state, data, bbox); } |