OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::SuperD< T, DESCRIPTOR > Class Template Reference

#include <superD.h>

+ Inheritance diagram for olb::SuperD< T, DESCRIPTOR >:
+ Collaboration diagram for olb::SuperD< T, DESCRIPTOR >:

Public Types

using value_t = T
 
using descriptor_t = DESCRIPTOR
 

Public Member Functions

 SuperD (const std::vector< std::pair< Vector< std::size_t, DESCRIPTOR::d >, Platform > > &blocks)
 
 SuperD (const LoadBalancer< T > &load)
 
std::size_t size () const
 
BlockD< T, DESCRIPTOR > & getBlock (unsigned iB)
 
template<typename OPERATOR >
void apply ()
 
void setProcessingContext (ProcessingContext context)
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::SuperD< T, DESCRIPTOR >

Definition at line 33 of file superD.h.

Member Typedef Documentation

◆ descriptor_t

template<typename T , typename DESCRIPTOR >
using olb::SuperD< T, DESCRIPTOR >::descriptor_t = DESCRIPTOR

Definition at line 39 of file superD.h.

◆ value_t

template<typename T , typename DESCRIPTOR >
using olb::SuperD< T, DESCRIPTOR >::value_t = T

Definition at line 38 of file superD.h.

Constructor & Destructor Documentation

◆ SuperD() [1/2]

template<typename T , typename DESCRIPTOR >
olb::SuperD< T, DESCRIPTOR >::SuperD ( const std::vector< std::pair< Vector< std::size_t, DESCRIPTOR::d >, Platform > > & blocks)
inline

Definition at line 41 of file superD.h.

41 {
42 for (auto [extent, platform] : blocks) {
43 _block.emplace_back(constructUsingConcretePlatform<ConcretizableBlockD<T,DESCRIPTOR>>(
44 platform, extent, 0));
45 }
46 }
CONCRETIZABLE::base_t * constructUsingConcretePlatform(Platform platform, ARGS &&... args)
Definition dispatch.h:107

References olb::constructUsingConcretePlatform().

+ Here is the call graph for this function:

◆ SuperD() [2/2]

template<typename T , typename DESCRIPTOR >
olb::SuperD< T, DESCRIPTOR >::SuperD ( const LoadBalancer< T > & load)
inline

Definition at line 48 of file superD.h.

48 {
49 for (int iB = 0; iB < load.size(); ++iB) {
50 _block.emplace_back(constructUsingConcretePlatform<ConcretizableBlockD<T,DESCRIPTOR>>(
51 load.platform(iB), 0, 0));
52 }
53 }

References olb::constructUsingConcretePlatform(), olb::LoadBalancer< T >::platform(), and olb::LoadBalancer< T >::size().

+ Here is the call graph for this function:

Member Function Documentation

◆ apply()

template<typename T , typename DESCRIPTOR >
template<typename OPERATOR >
void olb::SuperD< T, DESCRIPTOR >::apply ( )
inline

Definition at line 64 of file superD.h.

64 {
65 OPERATOR{}.apply(*this);
66 }
#define OPERATOR(OP, rhs)
Definition aDiffTape.h:64

References OPERATOR.

◆ getBlock()

template<typename T , typename DESCRIPTOR >
BlockD< T, DESCRIPTOR > & olb::SuperD< T, DESCRIPTOR >::getBlock ( unsigned iB)
inline

Definition at line 59 of file superD.h.

59 {
60 return *_block.at(iB);
61 }

◆ setProcessingContext()

template<typename T , typename DESCRIPTOR >
void olb::SuperD< T, DESCRIPTOR >::setProcessingContext ( ProcessingContext context)
inline

Definition at line 68 of file superD.h.

68 {
69 for (auto& block : _block) {
70 block->setProcessingContext(context);
71 }
72 }

◆ size()

template<typename T , typename DESCRIPTOR >
std::size_t olb::SuperD< T, DESCRIPTOR >::size ( ) const
inline

Definition at line 55 of file superD.h.

55 {
56 return _block.size();
57 }
+ Here is the caller graph for this function:

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