Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/dc/de4/classdolfinx_1_1io_1_1ADIOS2Writer.html
DOLFINx  0.5.1
DOLFINx C++ interface
Public Types | Public Member Functions | Protected Member Functions | List of all members
ADIOS2Writer Class Reference

Base class for ADIOS2-based writers. More...

#include <ADIOS2Writers.h>

Inheritance diagram for ADIOS2Writer:
Inheritance graph
[legend]

Public Types

using Fdr = fem::Function< double >
 Typedefs.
 
using Fdc = fem::Function< std::complex< double > >
 Typedefs.
 
using U = std::vector< std::variant< std::shared_ptr< const Fdr >, std::shared_ptr< const Fdc > >>
 Typedefs.
 

Public Member Functions

void close ()
 Close the file.
 

Protected Member Functions

 ADIOS2Writer (MPI_Comm comm, const std::filesystem::path &filename, const std::string &tag, std::shared_ptr< const mesh::Mesh > mesh)
 Create an ADIOS2-based writer for a mesh. More...
 
 ADIOS2Writer (MPI_Comm comm, const std::filesystem::path &filename, const std::string &tag, const U &u)
 Create an ADIOS2-based writer for a list of functions. More...
 
 ADIOS2Writer (ADIOS2Writer &&writer)=default
 Move constructor.
 
 ADIOS2Writer (const ADIOS2Writer &)=delete
 Copy constructor.
 
 ~ADIOS2Writer ()
 Destructor.
 
ADIOS2Writeroperator= (ADIOS2Writer &&writer)=default
 Move assignment.
 
ADIOS2Writeroperator= (const ADIOS2Writer &)=delete
 

Detailed Description

Base class for ADIOS2-based writers.

Constructor & Destructor Documentation

◆ ADIOS2Writer() [1/2]

ADIOS2Writer ( MPI_Comm  comm,
const std::filesystem::path &  filename,
const std::string &  tag,
std::shared_ptr< const mesh::Mesh mesh 
)
protected

Create an ADIOS2-based writer for a mesh.

Parameters
[in]commThe MPI communicator
[in]filenameName of output file
[in]tagThe ADIOS2 object name
[in]meshThe mesh

◆ ADIOS2Writer() [2/2]

ADIOS2Writer ( MPI_Comm  comm,
const std::filesystem::path &  filename,
const std::string &  tag,
const U u 
)
protected

Create an ADIOS2-based writer for a list of functions.

Parameters
[in]commThe MPI communicator
[in]filenameName of output file
[in]tagThe ADIOS2 object name
[in]uList of functions

The documentation for this class was generated from the following files: