Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
vmesh::VelocityMesh Class Reference

#include <velocity_mesh_cpu.h>

Collaboration diagram for vmesh::VelocityMesh:

Public Member Functions

 VelocityMesh ()
 ~VelocityMesh ()
 VelocityMesh (const VelocityMesh &other)
const VelocityMeshoperator= (const VelocityMesh &other)
size_t capacityInBytes () const
bool check () const
void clear (bool shrink=false)
void clearMap (const vmesh::LocalID &newSize)
bool move (const vmesh::LocalID &sourceLocalID, const vmesh::LocalID &targetLocalID)
size_t count (const vmesh::GlobalID &globalID) const
vmesh::GlobalID findBlock (vmesh::GlobalID cellIndices[3]) const
bool getBlockCoordinates (const vmesh::GlobalID &globalID, Real coords[3]) const
void getBlockInfo (const vmesh::GlobalID &globalID, Real *array) const
const RealgetBlockSize () const
bool getBlockSize (const vmesh::GlobalID &globalID, Real size[3]) const
const RealgetCellSize () const
bool getCellSize (const vmesh::GlobalID &globalID, Real size[3]) const
vmesh::GlobalID getGlobalID (const vmesh::LocalID &localID) const
vmesh::GlobalID getGlobalID (const Real *coords) const
vmesh::GlobalID getGlobalID (vmesh::LocalID indices[3]) const
vmesh::GlobalID getGlobalID (const vmesh::LocalID &i, const vmesh::LocalID &j, const vmesh::LocalID &k) const
vmesh::GlobalID getGlobalIndexOffset ()
std::vector< vmesh::GlobalID > * getGrid ()
const vmesh::LocalIDgetGridLength () const
void getIndices (const vmesh::GlobalID &globalID, vmesh::LocalID &i, vmesh::LocalID &j, vmesh::LocalID &k) const
size_t getMesh () const
vmesh::LocalID getLocalID (const vmesh::GlobalID &globalID) const
vmesh::GlobalID getMaxVelocityBlocks () const
const RealgetMeshMaxLimits () const
const RealgetMeshMinLimits () const
bool initialize (const size_t &meshID)
bool isInitialized () const
void pop ()
bool push_back (const vmesh::GlobalID &globalID)
bool push_back (const std::vector< vmesh::GlobalID > &blocks)
void setGrid ()
bool setGrid (const std::vector< vmesh::GlobalID > &globalIDs)
bool setMesh (const size_t &meshID)
void setNewSize (const vmesh::LocalID &newSize)
void setNewCapacity (const vmesh::LocalID &newCapacity)
size_t size (bool dummy=0) const
size_t sizeInBytes () const
 VelocityMesh ()
 ~VelocityMesh ()
 VelocityMesh (const VelocityMesh &other)
const VelocityMeshoperator= (const VelocityMesh &other)
ARCH_HOSTDEV size_t capacity () const
size_t capacityInBytes () const
ARCH_HOSTDEV bool check ()
ARCH_HOSTDEV void print ()
void clear (bool shrink)
ARCH_HOSTDEV bool move (const vmesh::LocalID sourceLocalID, const vmesh::LocalID targetLocalID)
ARCH_DEV bool warpMove (const vmesh::LocalID sourceLocalID, const vmesh::LocalID targetLocalID, const size_t b_tid)
ARCH_HOSTDEV size_t count (const vmesh::GlobalID globalID) const
ARCH_DEV size_t warpCount (const vmesh::GlobalID globalID, const size_t b_tid) const
ARCH_HOSTDEV vmesh::GlobalID findBlock (vmesh::GlobalID cellIndices[3]) const
ARCH_DEV vmesh::GlobalID warpFindBlock (vmesh::GlobalID cellIndices[3], const size_t b_tid) const
ARCH_HOSTDEV bool getBlockCoordinates (const vmesh::GlobalID globalID, Real coords[3]) const
ARCH_HOSTDEV void getBlockInfo (const vmesh::GlobalID globalID, Real *array) const
ARCH_HOSTDEV const RealgetBlockSize () const
ARCH_HOSTDEV bool getBlockSize (const vmesh::GlobalID globalID, Real size[3]) const
ARCH_HOSTDEV const RealgetCellSize () const
ARCH_HOSTDEV bool getCellSize (const vmesh::GlobalID globalID, Real size[3]) const
ARCH_HOSTDEV vmesh::GlobalID getGlobalID (const vmesh::LocalID localID) const
ARCH_HOSTDEV vmesh::GlobalID getGlobalID (const Real *coords) const
ARCH_HOSTDEV vmesh::GlobalID getGlobalID (const vmesh::LocalID indices[3]) const
ARCH_HOSTDEV vmesh::GlobalID getGlobalID (const vmesh::LocalID i, const vmesh::LocalID j, const vmesh::LocalID k) const
ARCH_HOSTDEV split::SplitVector< vmesh::GlobalID > * getGrid ()
ARCH_HOSTDEV const vmesh::LocalIDgetGridLength () const
ARCH_HOSTDEV void getIndices (const vmesh::GlobalID globalID, vmesh::LocalID &i, vmesh::LocalID &j, vmesh::LocalID &k) const
ARCH_HOSTDEV void getIndicesX (const vmesh::GlobalID globalID, vmesh::LocalID &i) const
ARCH_HOSTDEV void getIndicesY (const vmesh::GlobalID globalID, vmesh::LocalID &j) const
ARCH_HOSTDEV void getIndicesZ (const vmesh::GlobalID globalID, vmesh::LocalID &k) const
ARCH_HOSTDEV size_t getMesh () const
ARCH_HOSTDEV vmesh::LocalID getLocalID (const vmesh::GlobalID globalID) const
ARCH_DEV vmesh::LocalID warpGetLocalID (const vmesh::GlobalID globalID, const size_t b_tid) const
ARCH_HOSTDEV const RealgetMeshMaxLimits () const
ARCH_HOSTDEV const RealgetMeshMinLimits () const
ARCH_HOSTDEV bool initialize (const size_t meshID)
ARCH_HOSTDEV bool isInitialized () const
ARCH_HOSTDEV void pop ()
ARCH_DEV void warpPop (const size_t b_tid)
ARCH_HOSTDEV bool push_back (const vmesh::GlobalID globalID)
ARCH_DEV bool warpPush_back (const vmesh::GlobalID globalID, const size_t b_tid)
vmesh::LocalID push_back (const std::vector< vmesh::GlobalID > &blocks)
ARCH_HOSTDEV vmesh::LocalID push_back (split::SplitVector< vmesh::GlobalID > *blocks)
ARCH_DEV vmesh::LocalID warpPush_back (const split::SplitVector< vmesh::GlobalID > &blocks, const size_t b_tid)
ARCH_DEV void replaceBlock (const vmesh::GlobalID GIDold, const vmesh::LocalID LID, const vmesh::GlobalID GIDnew)
ARCH_DEV void warpReplaceBlock (const vmesh::GlobalID GIDold, const vmesh::LocalID LID, const vmesh::GlobalID GIDnew, const size_t b_tid)
ARCH_DEV void placeBlock (const vmesh::GlobalID GID, const vmesh::LocalID LID)
ARCH_DEV void warpPlaceBlock (const vmesh::GlobalID GID, const vmesh::LocalID LID, const size_t b_tid)
ARCH_DEV void deleteBlock (const vmesh::GlobalID GID, const vmesh::LocalID LID)
ARCH_DEV void warpDeleteBlock (const vmesh::GlobalID GID, const vmesh::LocalID LID, const size_t b_tid)
void setGrid ()
bool setGrid (const std::vector< vmesh::GlobalID > &globalIDs)
bool setGrid (const split::SplitVector< vmesh::GlobalID > &globalIDs)
bool setMesh (const size_t meshID)
size_t getMeshID ()
void setNewSize (const vmesh::LocalID newSize)
ARCH_DEV void device_setNewSize (const vmesh::LocalID newSize)
void setNewCachedSize (const vmesh::LocalID newSize)
void updateCachedSize ()
void updateCachedCapacity ()
bool setNewCapacity (const vmesh::LocalID newCapacity)
ARCH_HOSTDEV size_t size () const
ARCH_HOSTDEV size_t sizeInBytes () const
void gpu_prefetchHost (gpuStream_t stream)
void gpu_prefetchDevice (gpuStream_t stream)
void gpu_cleanHashMap (gpuStream_t stream)
void print_addresses ()
void print_sizes ()
ARCH_HOSTDEV Hashinator::Hashmap< vmesh::GlobalID, vmesh::LocalID > * gpu_expose_map ()

Static Public Member Functions

static vmesh::LocalID invalidBlockIndex ()
static vmesh::GlobalID invalidGlobalID ()
static vmesh::LocalID invalidLocalID ()
static ARCH_HOSTDEV vmesh::LocalID invalidBlockIndex ()
static ARCH_HOSTDEV vmesh::GlobalID invalidGlobalID ()
static ARCH_HOSTDEV vmesh::LocalID invalidLocalID ()

Private Attributes

size_t meshID
std::vector< vmesh::GlobalIDlocalToGlobalMap
OpenBucketHashtable< vmesh::GlobalID, vmesh::LocalIDglobalToLocalMap
size_t ltg_size =0
size_t ltg_capacity =0
size_t gtl_sizepower =0
Hashinator::Hashmap< vmesh::GlobalID, vmesh::LocalIDglobalToLocalMap
split::SplitVector< vmesh::GlobalIDlocalToGlobalMap

Detailed Description

Definition at line 47 of file velocity_mesh_cpu.h.

Constructor & Destructor Documentation

◆ VelocityMesh() [1/4]

vmesh::VelocityMesh::VelocityMesh ( )
inline

Definition at line 108 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ ~VelocityMesh() [1/2]

vmesh::VelocityMesh::~VelocityMesh ( )
inline

Definition at line 115 of file velocity_mesh_cpu.h.

◆ VelocityMesh() [2/4]

vmesh::VelocityMesh::VelocityMesh ( const VelocityMesh & other)
inline

Definition at line 117 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ VelocityMesh() [3/4]

vmesh::VelocityMesh::VelocityMesh ( )

◆ ~VelocityMesh() [2/2]

vmesh::VelocityMesh::~VelocityMesh ( )

◆ VelocityMesh() [4/4]

vmesh::VelocityMesh::VelocityMesh ( const VelocityMesh & other)
Here is the call graph for this function:

Member Function Documentation

◆ capacity()

ARCH_HOSTDEV size_t vmesh::VelocityMesh::capacity ( ) const
inline

Definition at line 211 of file velocity_mesh_gpu.h.

◆ capacityInBytes() [1/2]

size_t vmesh::VelocityMesh::capacityInBytes ( ) const
inline

Definition at line 140 of file velocity_mesh_cpu.h.

◆ capacityInBytes() [2/2]

size_t vmesh::VelocityMesh::capacityInBytes ( ) const

◆ check() [1/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::check ( )
inline

Definition at line 225 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ check() [2/2]

bool vmesh::VelocityMesh::check ( ) const
inline

Definition at line 145 of file velocity_mesh_cpu.h.

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

◆ clear() [1/2]

void vmesh::VelocityMesh::clear ( bool shrink)

◆ clear() [2/2]

void vmesh::VelocityMesh::clear ( bool shrink = false)
inline

Definition at line 169 of file velocity_mesh_cpu.h.

◆ clearMap()

void vmesh::VelocityMesh::clearMap ( const vmesh::LocalID & newSize)
inline

Definition at line 179 of file velocity_mesh_cpu.h.

◆ count() [1/2]

size_t vmesh::VelocityMesh::count ( const vmesh::GlobalID & globalID) const
inline

Definition at line 200 of file velocity_mesh_cpu.h.

◆ count() [2/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::count ( const vmesh::GlobalID globalID) const
inline

Definition at line 367 of file velocity_mesh_gpu.h.

◆ deleteBlock()

ARCH_DEV void vmesh::VelocityMesh::deleteBlock ( const vmesh::GlobalID GID,
const vmesh::LocalID LID )

◆ device_setNewSize()

ARCH_DEV void vmesh::VelocityMesh::device_setNewSize ( const vmesh::LocalID newSize)
inline

Definition at line 1365 of file velocity_mesh_gpu.h.

◆ findBlock() [1/2]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::findBlock ( vmesh::GlobalID cellIndices[3]) const
inline

Definition at line 204 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ findBlock() [2/2]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::findBlock ( vmesh::GlobalID cellIndices[3]) const

◆ getBlockCoordinates() [1/2]

bool vmesh::VelocityMesh::getBlockCoordinates ( const vmesh::GlobalID & globalID,
Real coords[3] ) const
inline

Definition at line 234 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getBlockCoordinates() [2/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::getBlockCoordinates ( const vmesh::GlobalID globalID,
Real coords[3] ) const
inline

Definition at line 395 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getBlockInfo() [1/2]

void vmesh::VelocityMesh::getBlockInfo ( const vmesh::GlobalID & globalID,
Real * array ) const
inline

Definition at line 253 of file velocity_mesh_cpu.h.

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

◆ getBlockInfo() [2/2]

ARCH_HOSTDEV void vmesh::VelocityMesh::getBlockInfo ( const vmesh::GlobalID globalID,
Real * array ) const
inline

Definition at line 413 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getBlockSize() [1/4]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getBlockSize ( ) const
inline

Definition at line 278 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getBlockSize() [2/4]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getBlockSize ( ) const
Here is the call graph for this function:

◆ getBlockSize() [3/4]

bool vmesh::VelocityMesh::getBlockSize ( const vmesh::GlobalID & globalID,
Real size[3] ) const
inline

Definition at line 282 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getBlockSize() [4/4]

ARCH_HOSTDEV bool vmesh::VelocityMesh::getBlockSize ( const vmesh::GlobalID globalID,
Real size[3] ) const
inline

Definition at line 442 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getCellSize() [1/4]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getCellSize ( ) const
inline

Definition at line 289 of file velocity_mesh_cpu.h.

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

◆ getCellSize() [2/4]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getCellSize ( ) const
Here is the call graph for this function:

◆ getCellSize() [3/4]

bool vmesh::VelocityMesh::getCellSize ( const vmesh::GlobalID & globalID,
Real size[3] ) const
inline

Definition at line 293 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getCellSize() [4/4]

ARCH_HOSTDEV bool vmesh::VelocityMesh::getCellSize ( const vmesh::GlobalID globalID,
Real size[3] ) const
inline

Definition at line 453 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getGlobalID() [1/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const Real * coords) const
inline

Definition at line 310 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getGlobalID() [2/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const Real * coords) const

◆ getGlobalID() [3/8]

vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const vmesh::LocalID & i,
const vmesh::LocalID & j,
const vmesh::LocalID & k ) const
inline

Definition at line 341 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getGlobalID() [4/8]

vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const vmesh::LocalID & localID) const
inline

Definition at line 300 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ getGlobalID() [5/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const vmesh::LocalID i,
const vmesh::LocalID j,
const vmesh::LocalID k ) const
inline

Definition at line 502 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getGlobalID() [6/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const vmesh::LocalID indices[3]) const

◆ getGlobalID() [7/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( const vmesh::LocalID localID) const
inline

Definition at line 460 of file velocity_mesh_gpu.h.

◆ getGlobalID() [8/8]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::getGlobalID ( vmesh::LocalID indices[3]) const
inline

Definition at line 327 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getGlobalIndexOffset()

vmesh::GlobalID vmesh::VelocityMesh::getGlobalIndexOffset ( )
inline

Definition at line 349 of file velocity_mesh_cpu.h.

◆ getGrid() [1/2]

ARCH_HOSTDEV split::SplitVector< vmesh::GlobalID > * vmesh::VelocityMesh::getGrid ( )
inline

Definition at line 353 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ getGrid() [2/2]

ARCH_HOSTDEV split::SplitVector< vmesh::GlobalID > * vmesh::VelocityMesh::getGrid ( )

◆ getGridLength() [1/2]

ARCH_HOSTDEV const vmesh::LocalID * vmesh::VelocityMesh::getGridLength ( ) const
inline

Definition at line 357 of file velocity_mesh_cpu.h.

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

◆ getGridLength() [2/2]

ARCH_HOSTDEV const vmesh::LocalID * vmesh::VelocityMesh::getGridLength ( ) const

◆ getIndices() [1/2]

void vmesh::VelocityMesh::getIndices ( const vmesh::GlobalID & globalID,
vmesh::LocalID & i,
vmesh::LocalID & j,
vmesh::LocalID & k ) const
inline

Definition at line 361 of file velocity_mesh_cpu.h.

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

◆ getIndices() [2/2]

ARCH_HOSTDEV void vmesh::VelocityMesh::getIndices ( const vmesh::GlobalID globalID,
vmesh::LocalID & i,
vmesh::LocalID & j,
vmesh::LocalID & k ) const
inline

Definition at line 525 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getIndicesX()

ARCH_HOSTDEV void vmesh::VelocityMesh::getIndicesX ( const vmesh::GlobalID globalID,
vmesh::LocalID & i ) const
inline

Definition at line 535 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getIndicesY()

ARCH_HOSTDEV void vmesh::VelocityMesh::getIndicesY ( const vmesh::GlobalID globalID,
vmesh::LocalID & j ) const
inline

Definition at line 542 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getIndicesZ()

ARCH_HOSTDEV void vmesh::VelocityMesh::getIndicesZ ( const vmesh::GlobalID globalID,
vmesh::LocalID & k ) const
inline

Definition at line 549 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getLocalID() [1/2]

vmesh::LocalID vmesh::VelocityMesh::getLocalID ( const vmesh::GlobalID & globalID) const
inline

Definition at line 371 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getLocalID() [2/2]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::getLocalID ( const vmesh::GlobalID globalID) const
inline

Definition at line 557 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ getMaxVelocityBlocks()

vmesh::GlobalID vmesh::VelocityMesh::getMaxVelocityBlocks ( ) const
inline

Definition at line 379 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ getMesh() [1/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::getMesh ( ) const
inline

Definition at line 383 of file velocity_mesh_cpu.h.

◆ getMesh() [2/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::getMesh ( ) const

◆ getMeshID()

size_t vmesh::VelocityMesh::getMeshID ( )
inline

Definition at line 1353 of file velocity_mesh_gpu.h.

◆ getMeshMaxLimits() [1/2]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getMeshMaxLimits ( ) const
inline

Definition at line 387 of file velocity_mesh_cpu.h.

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

◆ getMeshMaxLimits() [2/2]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getMeshMaxLimits ( ) const

◆ getMeshMinLimits() [1/2]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getMeshMinLimits ( ) const
inline

Definition at line 391 of file velocity_mesh_cpu.h.

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

◆ getMeshMinLimits() [2/2]

ARCH_HOSTDEV const Real * vmesh::VelocityMesh::getMeshMinLimits ( ) const

◆ gpu_cleanHashMap()

void vmesh::VelocityMesh::gpu_cleanHashMap ( gpuStream_t stream = 0)
inline

Definition at line 1464 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ gpu_expose_map()

ARCH_HOSTDEV Hashinator::Hashmap< vmesh::GlobalID, vmesh::LocalID > * vmesh::VelocityMesh::gpu_expose_map ( )
inline

Definition at line 1483 of file velocity_mesh_gpu.h.

Here is the caller graph for this function:

◆ gpu_prefetchDevice()

void vmesh::VelocityMesh::gpu_prefetchDevice ( gpuStream_t stream = 0)
inline

Definition at line 1453 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ gpu_prefetchHost()

void vmesh::VelocityMesh::gpu_prefetchHost ( gpuStream_t stream = 0)
inline

Definition at line 1444 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ initialize() [1/2]

bool vmesh::VelocityMesh::initialize ( const size_t & meshID)
inline

Definition at line 395 of file velocity_mesh_cpu.h.

◆ initialize() [2/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::initialize ( const size_t meshID)
inline

Definition at line 583 of file velocity_mesh_gpu.h.

◆ invalidBlockIndex() [1/2]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::invalidBlockIndex ( )
inlinestatic

Definition at line 400 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ invalidBlockIndex() [2/2]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::invalidBlockIndex ( )
static

◆ invalidGlobalID() [1/2]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::invalidGlobalID ( )
inlinestatic

Definition at line 404 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ invalidGlobalID() [2/2]

ARCH_HOSTDEV vmesh::GlobalID vmesh::VelocityMesh::invalidGlobalID ( )
static

◆ invalidLocalID() [1/2]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::invalidLocalID ( )
inlinestatic

Definition at line 408 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ invalidLocalID() [2/2]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::invalidLocalID ( )
static

◆ isInitialized() [1/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::isInitialized ( ) const
inline

Definition at line 412 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ isInitialized() [2/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::isInitialized ( ) const

◆ move() [1/2]

bool vmesh::VelocityMesh::move ( const vmesh::LocalID & sourceLocalID,
const vmesh::LocalID & targetLocalID )
inline

Definition at line 184 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ move() [2/2]

ARCH_HOSTDEV bool vmesh::VelocityMesh::move ( const vmesh::LocalID sourceLocalID,
const vmesh::LocalID targetLocalID )
inline

Definition at line 344 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ operator=() [1/2]

const VelocityMesh & vmesh::VelocityMesh::operator= ( const VelocityMesh & other)
inline

Definition at line 128 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ operator=() [2/2]

const VelocityMesh & vmesh::VelocityMesh::operator= ( const VelocityMesh & other)
Here is the call graph for this function:

◆ placeBlock()

ARCH_DEV void vmesh::VelocityMesh::placeBlock ( const vmesh::GlobalID GID,
const vmesh::LocalID LID )

◆ pop() [1/2]

ARCH_HOSTDEV void vmesh::VelocityMesh::pop ( )
inline

Definition at line 416 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ pop() [2/2]

ARCH_HOSTDEV void vmesh::VelocityMesh::pop ( )

◆ print()

ARCH_HOSTDEV void vmesh::VelocityMesh::print ( )
inline

Definition at line 293 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ print_addresses()

void vmesh::VelocityMesh::print_addresses ( )
inline

Definition at line 1487 of file velocity_mesh_gpu.h.

◆ print_sizes()

void vmesh::VelocityMesh::print_sizes ( )
inline

Definition at line 1493 of file velocity_mesh_gpu.h.

◆ push_back() [1/5]

vmesh::LocalID vmesh::VelocityMesh::push_back ( const std::vector< vmesh::GlobalID > & blocks)
inline

Definition at line 447 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ push_back() [2/5]

vmesh::LocalID vmesh::VelocityMesh::push_back ( const std::vector< vmesh::GlobalID > & blocks)

◆ push_back() [3/5]

bool vmesh::VelocityMesh::push_back ( const vmesh::GlobalID & globalID)
inline

Definition at line 429 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ push_back() [4/5]

ARCH_HOSTDEV bool vmesh::VelocityMesh::push_back ( const vmesh::GlobalID globalID)
inline

Returns true if added velocity block was new, false if it couldn't be added or already existed.

Definition at line 629 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ push_back() [5/5]

ARCH_HOSTDEV vmesh::LocalID vmesh::VelocityMesh::push_back ( split::SplitVector< vmesh::GlobalID > * blocks)
inline

Definition at line 709 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ replaceBlock()

ARCH_DEV void vmesh::VelocityMesh::replaceBlock ( const vmesh::GlobalID GIDold,
const vmesh::LocalID LID,
const vmesh::GlobalID GIDnew )

◆ setGrid() [1/5]

void vmesh::VelocityMesh::setGrid ( )
inline

Definition at line 463 of file velocity_mesh_cpu.h.

◆ setGrid() [2/5]

void vmesh::VelocityMesh::setGrid ( )

◆ setGrid() [3/5]

bool vmesh::VelocityMesh::setGrid ( const split::SplitVector< vmesh::GlobalID > & globalIDs)
inline

Definition at line 1330 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ setGrid() [4/5]

bool vmesh::VelocityMesh::setGrid ( const std::vector< vmesh::GlobalID > & globalIDs)
inline

Definition at line 470 of file velocity_mesh_cpu.h.

◆ setGrid() [5/5]

bool vmesh::VelocityMesh::setGrid ( const std::vector< vmesh::GlobalID > & globalIDs)

◆ setMesh() [1/2]

bool vmesh::VelocityMesh::setMesh ( const size_t & meshID)
inline

Definition at line 480 of file velocity_mesh_cpu.h.

Here is the call graph for this function:

◆ setMesh() [2/2]

bool vmesh::VelocityMesh::setMesh ( const size_t meshID)
inline

Definition at line 1346 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ setNewCachedSize()

void vmesh::VelocityMesh::setNewCachedSize ( const vmesh::LocalID newSize)
inline

Definition at line 1375 of file velocity_mesh_gpu.h.

Here is the caller graph for this function:

◆ setNewCapacity() [1/2]

void vmesh::VelocityMesh::setNewCapacity ( const vmesh::LocalID & newCapacity)
inline

Definition at line 493 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ setNewCapacity() [2/2]

bool vmesh::VelocityMesh::setNewCapacity ( const vmesh::LocalID newCapacity)
inline

Definition at line 1390 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ setNewSize() [1/2]

void vmesh::VelocityMesh::setNewSize ( const vmesh::LocalID & newSize)
inline

Definition at line 488 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ setNewSize() [2/2]

void vmesh::VelocityMesh::setNewSize ( const vmesh::LocalID newSize)
inline

Definition at line 1357 of file velocity_mesh_gpu.h.

Here is the call graph for this function:

◆ size() [1/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::size ( ) const
inline

Definition at line 1409 of file velocity_mesh_gpu.h.

Here is the caller graph for this function:

◆ size() [2/2]

size_t vmesh::VelocityMesh::size ( bool dummy = 0) const
inline

Definition at line 497 of file velocity_mesh_cpu.h.

Here is the caller graph for this function:

◆ sizeInBytes() [1/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::sizeInBytes ( ) const
inline

Definition at line 502 of file velocity_mesh_cpu.h.

◆ sizeInBytes() [2/2]

ARCH_HOSTDEV size_t vmesh::VelocityMesh::sizeInBytes ( ) const

◆ updateCachedCapacity()

void vmesh::VelocityMesh::updateCachedCapacity ( )
inline

Definition at line 1383 of file velocity_mesh_gpu.h.

◆ updateCachedSize()

void vmesh::VelocityMesh::updateCachedSize ( )
inline

Definition at line 1379 of file velocity_mesh_gpu.h.

◆ warpCount()

ARCH_DEV size_t vmesh::VelocityMesh::warpCount ( const vmesh::GlobalID globalID,
const size_t b_tid ) const

◆ warpDeleteBlock()

ARCH_DEV void vmesh::VelocityMesh::warpDeleteBlock ( const vmesh::GlobalID GID,
const vmesh::LocalID LID,
const size_t b_tid )

◆ warpFindBlock()

ARCH_DEV vmesh::GlobalID vmesh::VelocityMesh::warpFindBlock ( vmesh::GlobalID cellIndices[3],
const size_t b_tid ) const

◆ warpGetLocalID()

ARCH_DEV vmesh::LocalID vmesh::VelocityMesh::warpGetLocalID ( const vmesh::GlobalID globalID,
const size_t b_tid ) const

◆ warpMove()

ARCH_DEV bool vmesh::VelocityMesh::warpMove ( const vmesh::LocalID sourceLocalID,
const vmesh::LocalID targetLocalID,
const size_t b_tid )

◆ warpPlaceBlock()

ARCH_DEV void vmesh::VelocityMesh::warpPlaceBlock ( const vmesh::GlobalID GID,
const vmesh::LocalID LID,
const size_t b_tid )

◆ warpPop()

ARCH_DEV void vmesh::VelocityMesh::warpPop ( const size_t b_tid)

◆ warpPush_back() [1/2]

ARCH_DEV vmesh::LocalID vmesh::VelocityMesh::warpPush_back ( const split::SplitVector< vmesh::GlobalID > & blocks,
const size_t b_tid )

◆ warpPush_back() [2/2]

ARCH_DEV bool vmesh::VelocityMesh::warpPush_back ( const vmesh::GlobalID globalID,
const size_t b_tid )

◆ warpReplaceBlock()

ARCH_DEV void vmesh::VelocityMesh::warpReplaceBlock ( const vmesh::GlobalID GIDold,
const vmesh::LocalID LID,
const vmesh::GlobalID GIDnew,
const size_t b_tid )

Member Data Documentation

◆ globalToLocalMap [1/2]

OpenBucketHashtable<vmesh::GlobalID,vmesh::LocalID> vmesh::VelocityMesh::globalToLocalMap
private

Definition at line 102 of file velocity_mesh_cpu.h.

◆ globalToLocalMap [2/2]

Hashinator::Hashmap<vmesh::GlobalID,vmesh::LocalID> vmesh::VelocityMesh::globalToLocalMap
private

Definition at line 136 of file velocity_mesh_gpu.h.

◆ gtl_sizepower

size_t vmesh::VelocityMesh::gtl_sizepower =0
private

Definition at line 134 of file velocity_mesh_gpu.h.

◆ localToGlobalMap [1/2]

std::vector<vmesh::GlobalID> vmesh::VelocityMesh::localToGlobalMap
private

Definition at line 101 of file velocity_mesh_cpu.h.

◆ localToGlobalMap [2/2]

split::SplitVector<vmesh::GlobalID> vmesh::VelocityMesh::localToGlobalMap
private

Definition at line 137 of file velocity_mesh_gpu.h.

◆ ltg_capacity

size_t vmesh::VelocityMesh::ltg_capacity =0
private

Definition at line 134 of file velocity_mesh_gpu.h.

◆ ltg_size

size_t vmesh::VelocityMesh::ltg_size =0
private

Definition at line 134 of file velocity_mesh_gpu.h.

◆ meshID

size_t vmesh::VelocityMesh::meshID
private

Definition at line 99 of file velocity_mesh_cpu.h.


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