OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W > Class Template Reference

#include <groupedFieldF.h>

+ Inheritance diagram for olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >:
+ Collaboration diagram for olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >:

Public Member Functions

 SuperParticleGroupedFieldF (particles::SuperParticleSystem< T, DESCRIPTOR > &sParticleSystem)
 
- Public Member Functions inherited from olb::SuperContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >
LoadBalancer< T > & getLoadBalancer ()
 
int getContainerSize () const
 
ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & getContainerF (int iCloc)
 
bool operator() (W output[], const int input[])
 
- Public Member Functions inherited from olb::GenericF< T, S >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
virtual bool operator() (T output[], const S input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (T output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (T output[], S input0)
 
bool operator() (T output[], S input0, S input1)
 
bool operator() (T output[], S input0, S input1, S input2)
 
bool operator() (T output[], S input0, S input1, S input2, S input3)
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, S >
using targetType = T
 
using sourceType = S
 
- Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Static Public Attributes inherited from olb::SuperContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >
static constexpr bool isSuper = true
 
static constexpr unsigned d = DESCRIPTOR::d
 
- Protected Member Functions inherited from olb::SuperContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >
 SuperContainerF (LoadBalancer< T > &loadBalancer, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::SuperContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >
LoadBalancer< T > & _loadBalancer
 
std::vector< std::unique_ptr< ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE > > > _containerF
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename GROUP, typename FIELD, typename W = T>
class olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >

Definition at line 114 of file groupedFieldF.h.

Constructor & Destructor Documentation

◆ SuperParticleGroupedFieldF()

template<typename T , typename DESCRIPTOR , typename GROUP , typename FIELD , typename W >
olb::SuperParticleGroupedFieldF< T, DESCRIPTOR, GROUP, FIELD, W >::SuperParticleGroupedFieldF ( particles::SuperParticleSystem< T, DESCRIPTOR > & sParticleSystem)

Definition at line 133 of file groupedFieldF.hh.

135 : SuperContainerF<T,DESCRIPTOR,DynamicFieldGroupsD<T,typename DESCRIPTOR::fields_t>,W>(
136 sParticleSystem.getSuperStructure().getLoadBalancer(),
137 DESCRIPTOR::template size<typename meta::derived_type_in_nested<DESCRIPTOR,GROUP,FIELD>::type>() ),
138 _sParticleSystem(sParticleSystem)
139{
140 this->getName() = std::string(typeid(FIELD).name());
141
142 int maxC = this->_sParticleSystem.getSuperStructure().getLoadBalancer().size();
143 this->_containerF.reserve(maxC);
144 for (int iC = 0; iC < maxC; iC++) {
145
146 auto bParticleSystems = _sParticleSystem.getBlockParticleSystems();
147 auto& particleSystem = *bParticleSystems[iC];
148 auto& container = particleSystem.get();
149
150 this->_containerF.emplace_back(new GroupedFieldF<T,DESCRIPTOR,GROUP,FIELD>( container ) );
151 }
152}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::vector< std::unique_ptr< ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE > > > _containerF
LoadBalancer< T > & getLoadBalancer()
Read and write access to the load balancer.
SuperStructure< T, PARTICLETYPE::d > & getSuperStructure()
std::vector< ParticleSystem< T, PARTICLETYPE > * > & getBlockParticleSystems()
std::string name()
Returns distinct name on GCC, Clang and ICC but may return arbitrary garbage as per the standard.
Definition meta.h:100

References olb::SuperContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::_containerF, olb::particles::SuperParticleSystem< T, PARTICLETYPE >::getBlockParticleSystems(), olb::SuperStructure< T, D >::getLoadBalancer(), olb::GenericF< T, S >::getName(), and olb::particles::SuperParticleSystem< T, PARTICLETYPE >::getSuperStructure().

+ Here is the call graph for this function:

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