Skip to content
Snippets Groups Projects
Commit 6236fc58 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Add comment on allocator rebind

parent a3a16886
No related branches found
No related tags found
1 merge request!546Improve UMFPack vector chooser
Pipeline #65409 passed
......@@ -202,6 +202,9 @@ namespace Dune {
struct UMFPackVectorChooser<BCRSMatrix<T,A>,
std::void_t<UMFPackDomainType<T>, UMFPackRangeType<T>>>
{
// In case of recursive deduction (e.g., BCRSMatrix<FieldMatrix<...>, Allocator<FieldMatrix<...>>>)
// the allocator needs to be converted to the sub-block allocator type too (e.g., Allocator<FieldVector<...>>).
// Note that matrix allocator is assumed to be the same as the domain/range type of allocators
/** @brief The type of the domain of the solver */
using domain_type = BlockVector<UMFPackDomainType<T>, typename std::allocator_traits<A>::template rebind_alloc<UMFPackDomainType<T>>>;
/** @brief The type of the range of the solver */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment