#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"
Go to the source code of this file.
|
| 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) |
◆ writeDiagnostic()
| bool writeDiagnostic |
( |
const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & | mpiGrid, |
|
|
DataReducer & | dataReducer ) |
Write out simulation diagnostics into diagnostic.txt.
- Parameters
-
| mpiGrid | The DCCRG grid with spatial cells |
| dataReducer | Contains datareductionoperators that are used to compute diagnostic data |
Definition at line 2422 of file iowrite.cpp.
◆ 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
-
| mpiGrid | The DCCRG grid with spatial cells |
| dataReducer | Contains datareductionoperators that are used to compute data that is added into file |
| index | Index to call the correct member of the various parameter vectors |
| writeGhosts | Write ghost zones |
| mpiGrid | The DCCRG grid with spatial cells |
| dataReducer | Contains datareductionoperators that are used to compute data that is added into file |
| index | Index to call the correct member of the various parameter vectors |
| writeGhosts | If true, writes out ghost cells (cells that exist on the process boundary so other process' cells) |
Definition at line 1829 of file iowrite.cpp.
◆ 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.
◆ 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
-
| mpiGrid | The DCCRG grid with spatial cells |
| perBGrid | fsgrid with perturbed B |
| EGrid | fsgrid with E |
| EHallGrid | fsgrid with Hall term |
| EGradPeGrid | fsgrid with E grad(Pe) term |
| momentsGrid | fsgrid with moments |
| dPerBGrid | fsgrid with derivatives of perturbed B |
| dMomentsGrid | fsgrid with derivatives of moments |
| BgBGrid | fsgrid with background B |
| volGrid | fsgrid with volume fields |
| technicalGrid | fsgrid with technical info |
| versionInfo | version info string |
| configInfo | cfg file string |
| dataReducer | Contains datareductionoperators that are used to compute data that is added into file |
| name | File name prefix, file will be called "name.index.vlsv" |
| fileIndex | File index, file will be called "name.index.vlsv" |
| dateInFileName | Write the date (restarts) or not (recovers) |
| stripe | lustre 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 ) |