Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
ioread.h
Go to the documentation of this file.
1/*
2 * This file is part of Vlasiator.
3 * Copyright 2010-2016 Finnish Meteorological Institute
4 *
5 * For details of usage, see the COPYING file and read the "Rules of the Road"
6 * at http://www.physics.helsinki.fi/vlasiator/
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22#ifndef IOREAD_H
23#define IOREAD_H
24#include "mpi.h"
25#include <dccrg.hpp>
26#include <dccrg_cartesian_geometry.hpp>
27#include <string>
28
29#include "vlsv_reader_parallel.h"
30#include "definitions.h"
33
34
41bool readGrid(dccrg::Dccrg<SpatialCell, dccrg::Cartesian_Geometry>& mpiGrid,
44 fsgrids::technicalspan technical, FieldSolverGrid &fsgrid, const std::string& name);
45
52bool readFileCells(dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid, const std::string& name);
53
58
60 vlsv::ParallelReader& file, const string& variableName, SBC::SphericalTriGrid& grid, ionosphereParameters index);
61
62bool readFsgridDecomposition(vlsv::ParallelReader& file, std::array<fsgrid::Task_t,3>& decomposition);
63
64#endif
Binary file
Definition Dispersion.m:11
ionosphereParameters
Definition common.h:458
fsgrid::FsGrid< FS_STENCIL_WIDTH > FieldSolverGrid
Definition definitions.h:78
bool readFsgridDecomposition(vlsv::ParallelReader &file, std::array< fsgrid::Task_t, 3 > &decomposition)
Definition ioread.cpp:1986
bool readIonosphereNodeVariable(vlsv::ParallelReader &file, const string &variableName, SBC::SphericalTriGrid &grid, ionosphereParameters index)
Definition ioread.cpp:1570
void checkExternalCommands()
Check in local directory for external commands passed to the simulation. Only executed by MASTER_RANK...
Definition ioread.cpp:72
bool readFileCells(dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::string &name)
Refine the grid to be identical to the file's.
Definition ioread.cpp:1964
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.
Definition ioread.cpp:1951
#define index(i, j, k)
std::span< std::array< Real, fsgrids::bfield::N_BFIELD > > perbspan
Definition common.h:434
std::span< technical > technicalspan
Definition common.h:452
std::span< std::array< Real, fsgrids::efield::N_EFIELD > > efieldspan
Definition common.h:436