BEM++
2.0
|
Cache of discrete boundary operators. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/discrete_boundary_operator_cache.hpp>
Public Member Functions | |
DiscreteBoundaryOperatorCache () | |
Constructor. | |
~DiscreteBoundaryOperatorCache () | |
Destructor. | |
BEMPP_DEPRECATED shared_ptr < const DiscreteBoundaryOperator < ResultType > > | getWeakForm (const Context< BasisFunctionType, ResultType > &context, const AbstractBoundaryOperator< BasisFunctionType, ResultType > &op) const |
Return the weak form of the operator op . More... | |
std::vector< shared_ptr< const DiscreteBoundaryOperator < ResultType > > > | aliveOperators () const |
Return list of discrete operators currently stored in cache. More... | |
Cache of discrete boundary operators.
std::vector< shared_ptr< const DiscreteBoundaryOperator< ResultType > > > Bempp::DiscreteBoundaryOperatorCache< BasisFunctionType, ResultType >::aliveOperators | ( | ) | const |
Return list of discrete operators currently stored in cache.
Can be used for debugging.
shared_ptr< const DiscreteBoundaryOperator< ResultType > > Bempp::DiscreteBoundaryOperatorCache< BasisFunctionType, ResultType >::getWeakForm | ( | const Context< BasisFunctionType, ResultType > & | context, |
const AbstractBoundaryOperator< BasisFunctionType, ResultType > & | op | ||
) | const |
Return the weak form of the operator op
.
This function first checks whether the weak form of op
is already stored in the DiscreteBoundaryOperatorCache object. If it is, it is returned. Otherwise the weak form is assembled from scratch, possible stored in cache (if the operator op
is cacheable) and returned to the caller.
References Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >::assembleWeakForm(), and Bempp::AbstractBoundaryOperator< BasisFunctionType_, ResultType_ >::id().