25#ifndef LATTICE_RANK_3D_HH
26#define LATTICE_RANK_3D_HH
44template<
typename T,
typename DESCRIPTOR>
49 int maxC = this->
_sLattice.getLoadBalancer().size();
51 for (
int iC = 0; iC < maxC; iC++) {
56template<
typename T,
typename DESCRIPTOR>
64template<
typename T,
typename DESCRIPTOR>
71template<
typename T,
typename DESCRIPTOR>
75 this->getName() =
"platform";
76 auto load = this->_sLattice.getLoadBalancer();
77 for (
int iC = 0; iC < load.size(); iC++) {
82template<
typename T,
typename DESCRIPTOR>
87 this->getName() =
"platform";
90template<
typename T,
typename DESCRIPTOR>
93 output[0] =
static_cast<std::uint8_t
>(this->_blockLattice.getPlatform());
represents all functors that operate on a DESCRIPTOR in general, e.g. getVelocity(),...
functor to get pointwise the rank no. + 1 on local lattice
BlockLatticeRank3D(BlockLattice< T, DESCRIPTOR > &blockLattice)
bool operator()(T output[], const int input[]) override
has to be implemented for 'every' derived class
Platform-abstracted block lattice for external access and inter-block interaction.
std::string & getName()
read and write access to name
std::vector< std::unique_ptr< BlockF3D< T > > > _blockF
Super functors may consist of several BlockF3D<W> derived functors.
represents all functors that operate on a SuperLattice in general, e.g. getVelocity(),...
SuperLattice< T, DESCRIPTOR > & _sLattice
SuperLatticeRank3D(SuperLattice< T, DESCRIPTOR > &sLattice)
Super class maintaining block lattices for a cuboid decomposition.
int getRank() const
Returns the process ID.
Wrapper functions that simplify the use of MPI.
Top level namespace for all of OpenLB.
std::conditional_t< DESCRIPTOR::d==2, SuperLatticeF2D< T, DESCRIPTOR >, SuperLatticeF3D< T, DESCRIPTOR > > SuperLatticeF
std::conditional_t< DESCRIPTOR::d==2, BlockLatticeF2D< T, DESCRIPTOR >, BlockLatticeF3D< T, DESCRIPTOR > > BlockLatticeF
Representation of a parallel 2D geometry – header file.