Skip to content

Commit

Permalink
Add links to ADIOS2 documentation in comments
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
  • Loading branch information
franzpoeschel and ax3l committed Mar 19, 2024
1 parent 954ad73 commit 29bc62c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/10_streaming_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ int main()
// fully interconnected communication meshes for data that needs to be
// read by each reader. A local value dataset can only contain a single
// item per MPI rank, forming an array of length equal to the MPI size.
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes

auto e_patches = iteration.particles["e"].particlePatches;
auto numParticles = e_patches["numParticles"];
Expand Down
2 changes: 2 additions & 0 deletions src/IO/ADIOS/ADIOS2File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void WriteDataset::call(ADIOS2File &ba, detail::BufferedPut &bp)
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
bp.param.offset, bp.param.extent, ba.m_IO, bp.name);

// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
{
if (bp.param.extent != Extent{1})
Expand Down Expand Up @@ -160,6 +161,7 @@ struct RunUniquePtrPut
auto ptr = static_cast<T const *>(bufferedPut.data.get());
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
bufferedPut.offset, bufferedPut.extent, ba.m_IO, bufferedPut.name);
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
{
if (bufferedPut.extent != Extent{1})
Expand Down

0 comments on commit 29bc62c

Please sign in to comment.