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

Data writer class implementation. More...

#include "data_writer.h"
#include "comm.h"
#include "input.h"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <limits>
#include <numeric>
#include <sstream>
#include <unordered_map>
#include "common_io.h"
#include "log.h"
#include "mesh_block.h"

Functions

RestartData read_restart (const std::string &filename, const std::vector< uint64_t > *cells)
 Read a restart file written by a DataWriter with format = "restart": every cell, or with cells, only those global cells (fields then hold their values in the order of cells).
 

Detailed Description

Data writer class implementation.

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.2
Date
2024-01-11

Function Documentation

◆ read_restart()

RestartData read_restart ( const std::string &  filename,
const std::vector< uint64_t > *  cells = nullptr 
)

Read a restart file written by a DataWriter with format = "restart": every cell, or with cells, only those global cells (fields then hold their values in the order of cells).

Version 2 files list their variable names, version 3 files also named scalar attributes, version 4 files also face records; version 1 files hold the flow block CONSERVATIVE_NAMES only. Either must contain the flow block of this build's dimension.