Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
gridGlue.cpp File Reference
#include <dccrg.hpp>
#include <dccrg_cartesian_geometry.hpp>
#include "../grid.h"
#include "../spatial_cells/spatial_cell_wrapper.hpp"
#include "../definitions.h"
#include "../common.h"
#include "gridGlue.hpp"
Include dependency graph for gridGlue.cpp:

Go to the source code of this file.

Functions

int getNumberOfCellsOnMaxRefLvl (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells)
void copyMomentsToOutflow (fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > &moments, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid)
void filterMoments (fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > &moments, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid)
void feedMomentsIntoFsGrid (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells, fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > &moments, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid, bool dt2)
void getFieldsFromFsGrid (fsgrids::constvolspan volumefields, fsgrids::constbgbspan bgb, fsgrids::constegradpespan egradpe, fsgrids::constdmomentsspan dmoments, fsgrids::consttechnicalspan technical, FieldSolverGrid &fsgrid, dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells)
std::vector< CellIDmapDccrgIdToFsGridGlobalID (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, CellID dccrgID)
void feedBoundaryIntoFsGrid (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &cells, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid)

Variables

std::map< int, std::set< CellID > > onDccrgMapRemoteProcessGlobal
std::map< int, std::set< CellID > > onFsgridMapRemoteProcessGlobal
std::map< CellID, std::vector< int64_t > > onFsgridMapCellsGlobal

Function Documentation

◆ copyMomentsToOutflow()

void copyMomentsToOutflow ( fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > & moments,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid )

Definition at line 35 of file gridGlue.cpp.

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

◆ feedBoundaryIntoFsGrid()

void feedBoundaryIntoFsGrid ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid )

Definition at line 516 of file gridGlue.cpp.

Here is the caller graph for this function:

◆ feedMomentsIntoFsGrid()

void feedMomentsIntoFsGrid ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells,
fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > & moments,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid,
bool dt2 )

Definition at line 165 of file gridGlue.cpp.

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

◆ filterMoments()

void filterMoments ( fsgrid::FsData< std::array< Real, fsgrids::moments::N_MOMENTS > > & moments,
fsgrids::technicalspan technical,
FieldSolverGrid & fsgrid )

Definition at line 80 of file gridGlue.cpp.

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

◆ getFieldsFromFsGrid()

void getFieldsFromFsGrid ( fsgrids::constvolspan volumefields,
fsgrids::constbgbspan bgb,
fsgrids::constegradpespan egradpe,
fsgrids::constdmomentsspan dmoments,
fsgrids::consttechnicalspan technical,
FieldSolverGrid & fsgrid,
dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells )

Definition at line 257 of file gridGlue.cpp.

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

◆ getNumberOfCellsOnMaxRefLvl()

int getNumberOfCellsOnMaxRefLvl ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & cells )

Definition at line 18 of file gridGlue.cpp.

◆ mapDccrgIdToFsGridGlobalID()

std::vector< CellID > mapDccrgIdToFsGridGlobalID ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
CellID dccrgID )

Definition at line 490 of file gridGlue.cpp.

Variable Documentation

◆ onDccrgMapRemoteProcessGlobal

std::map<int, std::set<CellID> > onDccrgMapRemoteProcessGlobal

Definition at line 11 of file gridGlue.cpp.

◆ onFsgridMapCellsGlobal

std::map<CellID, std::vector<int64_t> > onFsgridMapCellsGlobal

Definition at line 13 of file gridGlue.cpp.

◆ onFsgridMapRemoteProcessGlobal

std::map<int, std::set<CellID> > onFsgridMapRemoteProcessGlobal

Definition at line 12 of file gridGlue.cpp.