Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
iowrite.h File Reference
#include "grid.h"
#include "mpi.h"
#include <dccrg.hpp>
#include <dccrg_cartesian_geometry.hpp>
#include <string>
#include <vector>
#include <vlsv_writer.h>
#include "definitions.h"
#include "spatial_cells/spatial_cell_wrapper.hpp"
#include "datareduction/datareducer.h"
Include dependency graph for iowrite.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool writeGrid (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const FieldSolverData &fieldSolverData, fsgrids::consttechnicalspan technical, const std::string &versionInfo, const std::string &configInfo, DataReducer *dataReducer, const uint &index, const int &stripe, const bool writeGhosts, bool compress_vdfs=false)
 Write out system into a vlsv file.
bool writeRestart (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const FieldSolverData &fieldSolverData, fsgrids::consttechnicalspan technical, const std::string &versionInfo, const std::string &configInfo, DataReducer &dataReducer, const std::string &name, const uint &fileIndex, const bool dateInFileName, const int &stripe, bool compress_vdfs)
 Write out a restart of the simulation into a vlsv file. All block data in remote cells will be reset.
bool writeDiagnostic (const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, DataReducer &dataReducer)
 Write out simulation diagnostics into diagnostic.txt.
bool writeVelocitySpace (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, vlsv::Writer &vlsvWriter, int index, const std::vector< uint64_t > &cells)
bool writeVelocityDistributionData (vlsv::Writer &vlsvWriter, const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< uint64_t > &cells, MPI_Comm comm)
bool writeIonosphereGridMetadata (vlsv::Writer &vlsvWriter)

Function Documentation

◆ writeDiagnostic()

bool writeDiagnostic ( const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
DataReducer & dataReducer )

Write out simulation diagnostics into diagnostic.txt.

Parameters
mpiGridThe DCCRG grid with spatial cells
dataReducerContains datareductionoperators that are used to compute diagnostic data

Definition at line 2422 of file iowrite.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeGrid()

bool writeGrid ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const FieldSolverData & fieldSolverData,
fsgrids::consttechnicalspan technical,
const std::string & versionInfo,
const std::string & configInfo,
DataReducer * dataReducer,
const uint & outputFileTypeIndex,
const int & stripe,
const bool writeGhosts,
bool compress_vdfs )

Write out system into a vlsv file.

Parameters
mpiGridThe DCCRG grid with spatial cells
dataReducerContains datareductionoperators that are used to compute data that is added into file
indexIndex to call the correct member of the various parameter vectors
writeGhostsWrite ghost zones
mpiGridThe DCCRG grid with spatial cells
dataReducerContains datareductionoperators that are used to compute data that is added into file
indexIndex to call the correct member of the various parameter vectors
writeGhostsIf true, writes out ghost cells (cells that exist on the process boundary so other process' cells)

Definition at line 1829 of file iowrite.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeIonosphereGridMetadata()

bool writeIonosphereGridMetadata ( vlsv::Writer & vlsvWriter)

Writes the mesh metadata for Visit to read the Ionosphere grid and its variables.

Definition at line 1496 of file iowrite.cpp.

Here is the caller graph for this function:

◆ writeRestart()

bool writeRestart ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const FieldSolverData & fieldSolverData,
fsgrids::consttechnicalspan technical,
const std::string & versionInfo,
const std::string & configInfo,
DataReducer & dataReducer,
const std::string & name,
const uint & fileIndex,
const bool dateInFileName,
const int & stripe,
bool compress_vdfs )

Write out a restart of the simulation into a vlsv file. All block data in remote cells will be reset.

Parameters
mpiGridThe DCCRG grid with spatial cells
perBGridfsgrid with perturbed B
EGridfsgrid with E
EHallGridfsgrid with Hall term
EGradPeGridfsgrid with E grad(Pe) term
momentsGridfsgrid with moments
dPerBGridfsgrid with derivatives of perturbed B
dMomentsGridfsgrid with derivatives of moments
BgBGridfsgrid with background B
volGridfsgrid with volume fields
technicalGridfsgrid with technical info
versionInfoversion info string
configInfocfg file string
dataReducerContains datareductionoperators that are used to compute data that is added into file
nameFile name prefix, file will be called "name.index.vlsv"
fileIndexFile index, file will be called "name.index.vlsv"
dateInFileNameWrite the date (restarts) or not (recovers)
stripelustre stripe count

◆ writeVelocityDistributionData()

bool writeVelocityDistributionData ( vlsv::Writer & vlsvWriter,
const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< uint64_t > & cells,
MPI_Comm comm )

◆ writeVelocitySpace()

bool writeVelocitySpace ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
vlsv::Writer & vlsvWriter,
int index,
const std::vector< uint64_t > & cells )