From b3405326ebf651b20b4c44423df62ef23a1bf8f2 Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Mon, 15 Aug 2005 15:00:00 +0000 Subject: 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 --- Carpet/CarpetIOHDF5/src/Output.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Carpet/CarpetIOHDF5') 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); } -- cgit v1.2.3