OGS
ProcessLib::BoundaryConditionAndSourceTerm::detail Namespace Reference

Functions

template<int GlobalDim, template< typename, typename, int > class LocalAssemblerImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void createLocalAssemblersPython (NumLib::LocalToGlobalIndexMap const &dof_table, std::vector< MeshLib::Element * > const &mesh_elements, std::vector< std::unique_ptr< LocalAssemblerInterface > > &local_assemblers, NumLib::IntegrationOrder const integration_order, ExtraCtorArgs &&... extra_ctor_args)
 
template<int GlobalDim, template< typename, int > class LocalAssemblerImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void createLocalAssemblers (NumLib::LocalToGlobalIndexMap const &dof_table, const unsigned shapefunction_order, std::vector< MeshLib::Element * > const &mesh_elements, std::vector< std::unique_ptr< LocalAssemblerInterface > > &local_assemblers, NumLib::IntegrationOrder const integration_order, ExtraCtorArgs &&... extra_ctor_args)
 

Function Documentation

◆ createLocalAssemblers()

template<int GlobalDim, template< typename, int > class LocalAssemblerImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void ProcessLib::BoundaryConditionAndSourceTerm::detail::createLocalAssemblers ( NumLib::LocalToGlobalIndexMap const & dof_table,
const unsigned shapefunction_order,
std::vector< MeshLib::Element * > const & mesh_elements,
std::vector< std::unique_ptr< LocalAssemblerInterface > > & local_assemblers,
NumLib::IntegrationOrder const integration_order,
ExtraCtorArgs &&... extra_ctor_args )

Definition at line 28 of file CreateLocalAssemblers.h.

35{
38 LocalAssemblerImplementation, GlobalDim,
39 ExtraCtorArgs...>;
40
41 DBUG("Create local assemblers.");
42
43 NumLib::DefaultIntegrationMethodProvider integration_method_provider{
44 integration_order};
45 LocalAssemblerFactory factory(dof_table, integration_method_provider,
46 shapefunction_order);
47 local_assemblers.resize(mesh_elements.size());
48
49 DBUG("Calling local assembler builder for all mesh elements.");
51 factory, mesh_elements, local_assemblers,
52 std::forward<ExtraCtorArgs>(extra_ctor_args)...);
53}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30
static void transformDereferenced(F const &f, C const &c, Data &data, Args_ &&... args)

References DBUG(), and NumLib::SerialExecutor::transformDereferenced().

◆ createLocalAssemblersPython()

template<int GlobalDim, template< typename, typename, int > class LocalAssemblerImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void ProcessLib::BoundaryConditionAndSourceTerm::detail::createLocalAssemblersPython ( NumLib::LocalToGlobalIndexMap const & dof_table,
std::vector< MeshLib::Element * > const & mesh_elements,
std::vector< std::unique_ptr< LocalAssemblerInterface > > & local_assemblers,
NumLib::IntegrationOrder const integration_order,
ExtraCtorArgs &&... extra_ctor_args )

Definition at line 29 of file CreateLocalAssemblers.h.

35{
36 using LocAsmFactory =
38 LocalAssemblerImplementation, GlobalDim,
39 ExtraCtorArgs...>;
40
41 DBUG("Create local assemblers.");
42
43 NumLib::DefaultIntegrationMethodProvider integration_method_provider{
44 integration_order};
45 LocAsmFactory factory(dof_table, integration_method_provider);
46 local_assemblers.resize(mesh_elements.size());
47
48 DBUG("Calling local assembler builder for all mesh elements.");
50 factory, mesh_elements, local_assemblers,
51 std::forward<ExtraCtorArgs>(extra_ctor_args)...);
52}

References DBUG(), and NumLib::SerialExecutor::transformDereferenced().