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

Go to the source code of this file.

Functions

bool readGrid (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, fsgrids::perbspan perb, fsgrids::efieldspan e, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid, const std::string &name)
 Read in state from a vlsv file in order to restart simulations.
bool readFileCells (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::string &name)
 Refine the grid to be identical to the file's.
void checkExternalCommands ()
 Check in local directory for external commands passed to the simulation. Only executed by MASTER_RANK.
bool readIonosphereNodeVariable (vlsv::ParallelReader &file, const string &variableName, SBC::SphericalTriGrid &grid, ionosphereParameters index)
bool readFsgridDecomposition (vlsv::ParallelReader &file, std::array< fsgrid::Task_t, 3 > &decomposition)

Function Documentation

◆ checkExternalCommands()

void checkExternalCommands ( )

Check in local directory for external commands passed to the simulation. Only executed by MASTER_RANK.

Check in local directory for external commands passed to the simulation. Only executed by MASTER_RANK.

Definition at line 72 of file ioread.cpp.

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

◆ readFileCells()

bool readFileCells ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::string & name )

Refine the grid to be identical to the file's.

Parameters
mpiGridVlasiator's grid
nameName of the restart file e.g. "restart.00052.vlsv"

Definition at line 1964 of file ioread.cpp.

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

◆ readFsgridDecomposition()

bool readFsgridDecomposition ( vlsv::ParallelReader & file,
std::array< fsgrid::Task_t, 3 > & decomposition )

Definition at line 1986 of file ioread.cpp.

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

◆ readGrid()

bool readGrid ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
fsgrids::perbspan perb,
fsgrids::efieldspan e,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid,
const std::string & name )

Read in state from a vlsv file in order to restart simulations.

Parameters
mpiGridVlasiator's grid
nameName of the restart file e.g. "restart.00052.vlsv"

Definition at line 1951 of file ioread.cpp.

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

◆ readIonosphereNodeVariable()

bool readIonosphereNodeVariable ( vlsv::ParallelReader & file,
const string & variableName,
SBC::SphericalTriGrid & grid,
ionosphereParameters index )

Read an ionosphere variable from the given vlsv file. Note that only singular floating point values (no vectors) can be read at this time.

Parameters
fileVLSV parallel reader with a file open.
variableNameName of the variable in the file
gridthe ionosphere grid that data will be deposited into
indexindex into the nodes' parameters array, where the data will end up.

Definition at line 1570 of file ioread.cpp.

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