Skip to content

Commit acfdbf3

Browse files
franzpoeschelax3l
andcommitted
Add links to ADIOS2 documentation in comments
Co-authored-by: Axel Huebl <[email protected]>
1 parent 6701dd3 commit acfdbf3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/10_streaming_write.cpp

+1
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

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ void WriteDataset::call(ADIOS2File &ba, detail::BufferedPut &bp)
8888
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
8989
bp.param.offset, bp.param.extent, ba.m_IO, bp.name);
9090

91+
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
9192
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
9293
{
9394
if (bp.param.extent != Extent{1})
@@ -161,6 +162,7 @@ struct RunUniquePtrPut
161162
auto ptr = static_cast<T const *>(bufferedPut.data.get());
162163
adios2::Variable<T> var = ba.m_impl->verifyDataset<T>(
163164
bufferedPut.offset, bufferedPut.extent, ba.m_IO, bufferedPut.name);
165+
// https://adios2.readthedocs.io/en/v2.9.2/components/components.html#shapes
164166
if (var.Shape() == adios2::Dims{adios2::LocalValueDim})
165167
{
166168
if (bufferedPut.extent != Extent{1})

0 commit comments

Comments
 (0)