OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
olb::opti::SuperLatticeSerialDataF< T, DESCRIPTOR > Class Template Reference

A data field whose values are managed by a controller. More...

#include <serialization.h>

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

Public Member Functions

 SuperLatticeSerialDataF (SuperLattice< T, DESCRIPTOR > &superLattice, Controller< T > &controller, unsigned dataDim, std::shared_ptr< const GeometrySerializer< T, DESCRIPTOR::d > > serializer, std::function< T(T)> projection=[](T x){ return x;})
 
 SuperLatticeSerialDataF (SuperLattice< T, DESCRIPTOR > &superLattice, Controller< T > &controller, unsigned dataDim, std::function< T(T)> projection=[](T x){ return x;})
 

Protected Attributes

std::shared_ptr< const GeometrySerializer< T, DESCRIPTOR::d > > _serializer
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::opti::SuperLatticeSerialDataF< T, DESCRIPTOR >

A data field whose values are managed by a controller.

Template Parameters
Tdata type
DESCRIPTORlattice design
Parameters
dataDimdimension of field

Definition at line 357 of file serialization.h.

Constructor & Destructor Documentation

◆ SuperLatticeSerialDataF() [1/2]

template<typename T , typename DESCRIPTOR >
olb::opti::SuperLatticeSerialDataF< T, DESCRIPTOR >::SuperLatticeSerialDataF ( SuperLattice< T, DESCRIPTOR > & superLattice,
Controller< T > & controller,
unsigned dataDim,
std::shared_ptr< const GeometrySerializer< T, DESCRIPTOR::d > > serializer,
std::function< T(T)> projection = [](T x){ return x; } )
inline

Definition at line 361 of file serialization.h.

364 { return x; })
365 : SuperLatticeF<T,DESCRIPTOR>(superLattice, dataDim),
366 _serializer(serializer)
367 {
368 this->getName() = "SuperLatticeSerialDataF";
369
370 const int maxC = superLattice.getLoadBalancer().size();
371 this->_blockF.reserve(maxC);
372
373 for (int iC = 0; iC < maxC; ++iC) {
374 this->_blockF.emplace_back(
375 new BlockLatticeSerialDataF<T,DESCRIPTOR>(
376 superLattice.getBlock(iC),
377 controller,
379 superLattice.getLoadBalancer().glob(iC),
380 dataDim,
381 projection)
382 );
383 }
384 }
std::shared_ptr< const GeometrySerializer< T, DESCRIPTOR::d > > _serializer

◆ SuperLatticeSerialDataF() [2/2]

template<typename T , typename DESCRIPTOR >
olb::opti::SuperLatticeSerialDataF< T, DESCRIPTOR >::SuperLatticeSerialDataF ( SuperLattice< T, DESCRIPTOR > & superLattice,
Controller< T > & controller,
unsigned dataDim,
std::function< T(T)> projection = [](T x){ return x; } )
inline

Definition at line 386 of file serialization.h.

388 { return x; })
389 : SuperLatticeSerialDataF(superLattice, controller, dataDim,
390 std::make_shared<const SimpleGeometrySerializer<T,DESCRIPTOR::d>>(superLattice),
391 projection)
392 { }
SuperLatticeSerialDataF(SuperLattice< T, DESCRIPTOR > &superLattice, Controller< T > &controller, unsigned dataDim, std::shared_ptr< const GeometrySerializer< T, DESCRIPTOR::d > > serializer, std::function< T(T)> projection=[](T x){ return x;})
constexpr int d() any_platform

Member Data Documentation

◆ _serializer

template<typename T , typename DESCRIPTOR >
std::shared_ptr<const GeometrySerializer<T,DESCRIPTOR::d> > olb::opti::SuperLatticeSerialDataF< T, DESCRIPTOR >::_serializer
protected

Definition at line 359 of file serialization.h.


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