COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Public Attributes | List of all members
BlockArrays::Implementation::Block Struct Reference

Encapsulate a single block, providing all data needed to produce the mesh connectivity. More...

Public Member Functions

 Block (const Uint dim)
 Constructor taking the number of dimensions as argument. More...
 
Block operator[] (const Uint i) const
 
Uint global_idx () const
 Get the global index. Available after "dimension" subsequent calls to operator[]. More...
 

Public Attributes

Uint dimensions
 Number of dimensions (2 or 3) More...
 
std::vector< Uintsearch_indices
 Previous indices passed to operator[]. More...
 
std::vector< Uintnb_points
 Number of points in each direction. More...
 
Uint nb_elems
 Number of elements. More...
 
std::vector< Uintsegments
 Segments in each direction. More...
 
std::vector< bool > bounded
 True if bounded in on the positive side for each direction. More...
 
std::vector< Block * > neighbors
 Neighbors in the positive direction. More...
 
std::vector< Uintstrides
 Strides in each direction. More...
 
Uint start_index
 Starting index for this block. More...
 
bool is_local
 True if the block is stored on the current MPI rank. More...
 

Detailed Description

Encapsulate a single block, providing all data needed to produce the mesh connectivity.

Definition at line 158 of file BlockData.cpp.

Constructor & Destructor Documentation

Block ( const Uint  dim)
inline

Constructor taking the number of dimensions as argument.

Definition at line 161 of file BlockData.cpp.

Member Function Documentation

Uint global_idx ( ) const
inline

Get the global index. Available after "dimension" subsequent calls to operator[].

Definition at line 195 of file BlockData.cpp.

Block operator[] ( const Uint  i) const
inline

Get the block corresponding to index i in a certain direction. Meant to be called sequentially like: block[i][j][k]

Definition at line 173 of file BlockData.cpp.

Member Data Documentation

std::vector<bool> bounded

True if bounded in on the positive side for each direction.

Definition at line 217 of file BlockData.cpp.

Uint dimensions

Number of dimensions (2 or 3)

Definition at line 207 of file BlockData.cpp.

bool is_local

True if the block is stored on the current MPI rank.

Definition at line 225 of file BlockData.cpp.

Uint nb_elems

Number of elements.

Definition at line 213 of file BlockData.cpp.

std::vector<Uint> nb_points

Number of points in each direction.

Definition at line 211 of file BlockData.cpp.

std::vector<Block*> neighbors

Neighbors in the positive direction.

Definition at line 219 of file BlockData.cpp.

std::vector<Uint> search_indices

Previous indices passed to operator[].

Definition at line 209 of file BlockData.cpp.

std::vector<Uint> segments

Segments in each direction.

Definition at line 215 of file BlockData.cpp.

Uint start_index

Starting index for this block.

Definition at line 223 of file BlockData.cpp.

std::vector<Uint> strides

Strides in each direction.

Definition at line 221 of file BlockData.cpp.


The documentation for this struct was generated from the following file:
Send comments to:
COOLFluiD Web Admin