BEM++
2.0
|
Assembly context. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/context.hpp>
Public Types | |
typedef Fiber::QuadratureStrategy < BasisFunctionType, ResultType, GeometryFactory > | QuadratureStrategy |
Type of the appropriate instantiation of Fiber::QuadratureStrategy. | |
Public Member Functions | |
Context (const shared_ptr< const QuadratureStrategy > &quadStrategy, const AssemblyOptions &assemblyOptions) | |
Constructor. More... | |
BEMPP_DEPRECATED shared_ptr < const DiscreteBoundaryOperator < ResultType > > | getWeakForm (const AbstractBoundaryOperator< BasisFunctionType, ResultType > &op) const |
Return the discrete weak form of the specified abstract operator. More... | |
const AssemblyOptions & | assemblyOptions () const |
Return a reference to a copy of the AssemblyOptions object passed when constructing the Context. | |
shared_ptr< const QuadratureStrategy > | quadStrategy () const |
Return a reference to the QuadratureStrategy object passed when constructing the Context. | |
Private Attributes | |
shared_ptr< const QuadratureStrategy > | m_quadStrategy |
AssemblyOptions | m_assemblyOptions |
Assembly context.
This class manages the assembly of weak forms and evaluation of potentials.
An assembly context consists of a quadrature strategy, which determines the way integrals are calculated, and assembly options, which control higher-level aspects of weak-form assembly, e.g. the use or not of acceleration algorithms such as ACA and the level of parallelism.
Bempp::Context< BasisFunctionType, ResultType >::Context | ( | const shared_ptr< const QuadratureStrategy > & | quadStrategy, |
const AssemblyOptions & | assemblyOptions | ||
) |
Constructor.
[in] | quadStrategy | Quadrature strategy to be used for calculation of integrals occurring e.g. in the weak forms of boundary operators or in the definition of potential operators. |
[in] | assemblyOptions | Further options influencing the weak-form assembly process. |
shared_ptr< const DiscreteBoundaryOperator< ResultType > > Bempp::Context< BasisFunctionType, ResultType >::getWeakForm | ( | const AbstractBoundaryOperator< BasisFunctionType, ResultType > & | op | ) | const |
Return the discrete weak form of the specified abstract operator.
This function returns returns the weak form of the specified abstract boundary operator, calculated in accordance with the settings specified during the construction of the Context.
assembleWeakForm()
method. Alternatively, call the weakForm()
method of a BoundaryOperator object wrapping the AbstractBoundaryOperator in question. References Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >::assembleWeakForm().