Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
RestartData Struct Reference

Contents of a restart file. More...

#include <data_writer.h>

Public Member Functions

const std::vector< rtype > * find (const std::string &name) const
 Values of the named variable, or nullptr if the file has none.
 
const double * attribute (const std::string &name) const
 Value of the named attribute, or nullptr if the file has none.
 
const rtype * face (uint64_t key) const
 The RestartFaces::WIDTH values of the face with this key, or nullptr if the file has none.
 

Public Attributes

uint64_t step = 0
 
double t = 0.0
 
uint64_t n_cells = 0
 
std::vector< std::string > names
 
std::vector< std::vector< rtype > > fields
 
RestartAttributes attributes
 
RestartFaces faces
 

Detailed Description

Contents of a restart file.

Member Function Documentation

◆ attribute()

const double * RestartData::attribute ( const std::string &  name) const

Value of the named attribute, or nullptr if the file has none.

◆ face()

const rtype * RestartData::face ( uint64_t  key) const

The RestartFaces::WIDTH values of the face with this key, or nullptr if the file has none.

◆ find()

const std::vector< rtype > * RestartData::find ( const std::string &  name) const

Values of the named variable, or nullptr if the file has none.

Member Data Documentation

◆ attributes

RestartAttributes RestartData::attributes

◆ faces

RestartFaces RestartData::faces

◆ fields

std::vector<std::vector<rtype> > RestartData::fields

◆ n_cells

uint64_t RestartData::n_cells = 0

◆ names

std::vector<std::string> RestartData::names

◆ step

uint64_t RestartData::step = 0

◆ t

double RestartData::t = 0.0

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