Skip to content

docs(io): render the save overloads that take a communicator - #785

Merged
gouarin merged 1 commit into
mainfrom
docs/io-mpi-overloads
Oct 28, 2026
Merged

gouarin merged 1 commit into
mainfrom
docs/io-mpi-overloads

Conversation

@gouarin

@gouarin gouarin commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Description

docs/source/api/io.md said the API reference is generated without MPI and does not render the save overloads that take a communicator. It is the other way round: docs/Doxyfile sets PREDEFINED = SAMURAI_INLINE= SAMURAI_WITH_MPI, so Doxygen parses the four overloads (template parameter detail::mpi_communicator Comm) and Breathe can render them.

The page now renders them with doxygenfunction, like the other overloads, and drops the wrong sentence. It also says that local_save takes the arguments of the save overloads without a communicator, since it has none with one.

No other page assumes a reference built without MPI (grep of docs/source for "without MPI", "MPI build", "does not render"), and dump and load have no communicator overloads.

Doxygen and sphinx-build -b html -W --keep-going, run as in the docs CI job, report no warning. The rendered api/io.html lists the 8 save and 4 local_save signatures.

The Doxyfile defines SAMURAI_WITH_MPI, so Doxygen parses the MPI-only
save overloads and Breathe renders them like the others. The API page
claimed the opposite and left them out.
@sonarqubecloud

Copy link
Copy Markdown

@gouarin
gouarin merged commit 55bdffd into main Oct 28, 2026
16 checks passed
@gouarin
gouarin deleted the docs/io-mpi-overloads branch October 28, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant