Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
setOfPencils Struct Reference

#include <cpu_trans_pencils.hpp>

Public Member Functions

 setOfPencils ()
void addPencil (vector< CellID > idsIn, Real xIn, Real yIn)
 setOfPencils ()
void addPencil (std::vector< CellID > idsIn, Real xIn, Real yIn)
std::vector< CellIDgetIds (uint pencilId)
 setOfPencils ()
void removeAllPencils ()
void addPencil (std::vector< CellID > idsIn, Real xIn, Real yIn, bool periodicIn, std::vector< uint > pathIn)
void binPencils ()
void removePencil (const uint pencilId)
std::vector< CellIDgetIds (const uint pencilId) const
void split (const uint myPencilId, const Real dx, const Real dy)

Public Attributes

uint N
std::vector< uint > lengthOfPencils
std::vector< CellIDids
std::vector< Realx
std::vector< Realy
uint sumOfLengths
std::vector< uint > idsStart
std::vector< RealfsourceDZ
std::vector< RealftargetRatios
std::vector< bool > periodic
std::vector< std::vector< uint > > path
std::vector< uint > binOfPencil
 Bin of each pencil.
std::map< uint, std::vector< uint > > pencilsInBin
 Vector of pencils in each bin.
std::map< uint, std::set< CellID > > targetCellsInBin
 Set of source and target cells in each bin which are a target cell of any pencil.
std::vector< uint > activeBins
 set of keys in the above two maps

Detailed Description

Definition at line 27 of file grid_test.cpp.

Constructor & Destructor Documentation

◆ setOfPencils() [1/3]

setOfPencils::setOfPencils ( )
inline

Definition at line 34 of file grid_test.cpp.

◆ setOfPencils() [2/3]

setOfPencils::setOfPencils ( )
inline

Definition at line 32 of file grid_test_neighbors.cpp.

◆ setOfPencils() [3/3]

setOfPencils::setOfPencils ( )
inline

Definition at line 67 of file cpu_trans_pencils.hpp.

Member Function Documentation

◆ addPencil() [1/3]

void setOfPencils::addPencil ( std::vector< CellID > idsIn,
Real xIn,
Real yIn )
inline

Definition at line 37 of file grid_test_neighbors.cpp.

◆ addPencil() [2/3]

void setOfPencils::addPencil ( std::vector< CellID > idsIn,
Real xIn,
Real yIn,
bool periodicIn,
std::vector< uint > pathIn )
inline

Definition at line 90 of file cpu_trans_pencils.hpp.

◆ addPencil() [3/3]

void setOfPencils::addPencil ( vector< CellID > idsIn,
Real xIn,
Real yIn )
inline

Definition at line 38 of file grid_test.cpp.

Here is the caller graph for this function:

◆ binPencils()

void setOfPencils::binPencils ( )
inline

Definition at line 114 of file cpu_trans_pencils.hpp.

◆ getIds() [1/2]

std::vector< CellID > setOfPencils::getIds ( const uint pencilId) const
inline

Definition at line 251 of file cpu_trans_pencils.hpp.

◆ getIds() [2/2]

std::vector< CellID > setOfPencils::getIds ( uint pencilId)
inline

Definition at line 48 of file grid_test_neighbors.cpp.

Here is the caller graph for this function:

◆ removeAllPencils()

void setOfPencils::removeAllPencils ( )
inline

Definition at line 72 of file cpu_trans_pencils.hpp.

◆ removePencil()

void setOfPencils::removePencil ( const uint pencilId)
inline

Definition at line 234 of file cpu_trans_pencils.hpp.

◆ split()

void setOfPencils::split ( const uint myPencilId,
const Real dx,
const Real dy )
inline

Definition at line 265 of file cpu_trans_pencils.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ activeBins

std::vector<uint> setOfPencils::activeBins

set of keys in the above two maps

Definition at line 50 of file cpu_trans_pencils.hpp.

◆ binOfPencil

std::vector<uint> setOfPencils::binOfPencil

Bin of each pencil.

Definition at line 47 of file cpu_trans_pencils.hpp.

◆ ids

std::vector< CellID > setOfPencils::ids

Definition at line 31 of file grid_test.cpp.

◆ idsStart

std::vector< uint > setOfPencils::idsStart

Definition at line 40 of file cpu_trans_pencils.hpp.

◆ lengthOfPencils

std::vector< uint > setOfPencils::lengthOfPencils

Definition at line 30 of file grid_test.cpp.

◆ N

uint setOfPencils::N

Definition at line 29 of file grid_test.cpp.

◆ path

std::vector< std::vector<uint> > setOfPencils::path

Definition at line 45 of file cpu_trans_pencils.hpp.

◆ pencilsInBin

std::map<uint, std::vector<uint> > setOfPencils::pencilsInBin

Vector of pencils in each bin.

Definition at line 48 of file cpu_trans_pencils.hpp.

◆ periodic

std::vector< bool > setOfPencils::periodic

Definition at line 44 of file cpu_trans_pencils.hpp.

◆ sourceDZ

std::vector< Realf > setOfPencils::sourceDZ

Definition at line 41 of file cpu_trans_pencils.hpp.

◆ sumOfLengths

uint setOfPencils::sumOfLengths

Definition at line 27 of file grid_test_neighbors.cpp.

◆ targetCellsInBin

std::map<uint, std::set<CellID> > setOfPencils::targetCellsInBin

Set of source and target cells in each bin which are a target cell of any pencil.

Definition at line 49 of file cpu_trans_pencils.hpp.

◆ targetRatios

std::vector< Realf > setOfPencils::targetRatios

Definition at line 42 of file cpu_trans_pencils.hpp.

◆ x

std::vector< Real > setOfPencils::x

Definition at line 32 of file grid_test.cpp.

◆ y

std::vector< Real > setOfPencils::y

Definition at line 32 of file grid_test.cpp.


The documentation for this struct was generated from the following files: