template<typename GhostLayerField_T, class Enable = void>
struct walberla::field::Creator< GhostLayerField_T, Enable >
BlockDataCreator for fields.
Use this class when different fields should be added for different selectors.
Example for making the field layout selector dependent:
BlockDataID fieldId = blocks->addBlockData( "my data field" )
<< field::Creator< MyField_T >( blocks,
"my data field (zyxf)", NONE, FZYX, 0,
field::zyxf )
<< field::Creator< MyField_T >( blocks,
"my data field (fzyx)", FZYX, NONE, 0,
field::fzyx );
|
| Creator (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &identifier, const Set< SUID > &requiredSelectors, const Set< SUID > &incompatibleSelectors, const typename GhostLayerField_T::value_type &initValue=typename GhostLayerField_T::value_type(), const Layout layout=fzyx, const uint_t nrOfGhostLayers=uint_t(1), const bool=false, const std::function< void(GhostLayerField_T *field, IBlock *const block) > &initFunction=std::function< void(GhostLayerField_T *field, IBlock *const block) >()) |
|
| Creator (const std::string &identifier=std::string(), const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet(), const typename GhostLayerField_T::value_type &initValue=typename GhostLayerField_T::value_type(), const Layout layout=fzyx, const uint_t nrOfGhostLayers=uint_t(1)) |
|
Public Member Functions inherited from walberla::domain_decomposition::BlockDataCreator< GhostLayerField_T > |
| BlockDataCreator (const shared_ptr< U > &dataHandling, const std::string &identifier=std::string(), const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet()) |
|
| BlockDataCreator (const std::function< GhostLayerField_T *(IBlock *const block) > &function, const std::string &identifier=std::string(), const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet()) |
|