From 29bc62c546abf95e2492d495b9e953ad18a99890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 19 Mar 2024 11:15:40 +0100 Subject: [PATCH] Add links to ADIOS2 documentation in comments Co-authored-by: Axel Huebl --- examples/10_streaming_write.cpp | 1 + src/IO/ADIOS/ADIOS2File.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/examples/10_streaming_write.cpp b/examples/10_streaming_write.cpp index c48b4c4ef7..387e1bd5ce 100644 --- a/examples/10_streaming_write.cpp +++ b/examples/10_streaming_write.cpp @@ -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"]; diff --git a/src/IO/ADIOS/ADIOS2File.cpp b/src/IO/ADIOS/ADIOS2File.cpp index fd2dd8255a..31efd7d7f7 100644 --- a/src/IO/ADIOS/ADIOS2File.cpp +++ b/src/IO/ADIOS/ADIOS2File.cpp @@ -87,6 +87,7 @@ void WriteDataset::call(ADIOS2File &ba, detail::BufferedPut &bp) adios2::Variable var = ba.m_impl->verifyDataset( 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}) @@ -160,6 +161,7 @@ struct RunUniquePtrPut auto ptr = static_cast(bufferedPut.data.get()); adios2::Variable var = ba.m_impl->verifyDataset( 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})