Skip to content

Commit 93e1707

Browse files
franzpoeschelax3l
andcommitted
Add links to ADIOS2 documentation in comments
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
1 parent e8a61f0 commit 93e1707

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

examples/10_streaming_write.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ int main()
8787
// fully interconnected communication meshes for data that needs to be
8888
// read by each reader. A local value dataset can only contain a single
8989
// item per MPI rank, forming an array of length equal to the MPI size.
90+
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
9091

9192
auto e_patches = iteration.particles["e"].particlePatches;
9293
auto numParticles = e_patches["numParticles"];

src/IO/ADIOS/ADIOS2File.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void WriteDataset::call(ADIOS2File &ba, detail::BufferedPut &bp)
9191
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
9292
bp.param.offset, bp.param.extent, ba.m_IO, bp.name);
9393

94+
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
9495
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
9596
{
9697
if (bp.param.extent != Extent{1})
@@ -164,6 +165,7 @@ struct RunUniquePtrPut
164165
auto ptr = static_cast<T const *>(bufferedPut.data.get());
165166
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
166167
bufferedPut.offset, bufferedPut.extent, ba.m_IO, bufferedPut.name);
168+
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
167169
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
168170
{
169171
if (bufferedPut.extent != Extent{1})

0 commit comments

Comments
 (0)