MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / ADIOS2Writer

Method ADIOS2Writer

cpp/dolfinx/io/ADIOS2Writers.cpp:20–28  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

18
19//-----------------------------------------------------------------------------
20ADIOS2Writer::ADIOS2Writer(MPI_Comm comm, const std::filesystem::path& filename,
21 std::string tag, std::string engine)
22 : _adios(std::make_unique<adios2::ADIOS>(comm)),
23 _io(std::make_unique<adios2::IO>(_adios->DeclareIO(std::move(tag))))
24{
25 _io->SetEngine(std::move(engine));
26 _engine = std::make_unique<adios2::Engine>(
27 _io->Open(filename, adios2::Mode::Write));
28}
29//-----------------------------------------------------------------------------
30ADIOS2Writer::~ADIOS2Writer() { close(); }
31//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected