Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anagainaru committed Oct 29, 2023
1 parent 80dceba commit a47c7ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/adios2/engine/bp/operations/TestBPWriteReadBlosc2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ void Blosc2NullBlocks(const std::string accuracy, const std::string threshold,
const adios2::Dims start{static_cast<size_t>(Nx * mpiRank)};
const adios2::Dims count{Nx};

auto var_r32 = io.DefineVariable<float>("r32", shape, start, count, adios2::ConstantDims);
auto var_r32 = io.DefineVariable<float>("r32", shape, start, count);

// add operations
adios2::Operator Blosc2Op =
Expand All @@ -912,9 +912,9 @@ void Blosc2NullBlocks(const std::string accuracy, const std::string threshold,
for (size_t step = 0; step < NSteps; ++step)
{
bpWriter.BeginStep();
r32s.SetSelection(adios2::Box<adios2::Dims>({rank * Nx}, {Nx}));
var_r32.SetSelection(adios2::Box<adios2::Dims>({mpiRank * Nx}, {Nx}));
bpWriter.Put<float>("r32", r32s.data());
r32s.SetSelection(adios2::Box<adios2::Dims>({rank * Nx}, {0}));
var_r32.SetSelection(adios2::Box<adios2::Dims>({mpiRank * Nx}, {0}));
std::vector<float> r32_empty;
bpWriter.Put<float>("r32", r32_empty.data());
bpWriter.EndStep();
Expand Down

0 comments on commit a47c7ac

Please sign in to comment.