Add an overload suited to pointer arguments (primitive types).
This commit is contained in:
parent
f72be4bf80
commit
903c959252
@ -42,6 +42,16 @@ namespace Opm {
|
|||||||
namespace ImplicitTransportLinAlgSupport {
|
namespace ImplicitTransportLinAlgSupport {
|
||||||
class CSRMatrixUmfpackSolver {
|
class CSRMatrixUmfpackSolver {
|
||||||
public:
|
public:
|
||||||
|
template <class Vector>
|
||||||
|
void
|
||||||
|
solve(const struct CSRMatrix* A,
|
||||||
|
const Vector b,
|
||||||
|
Vector x) {
|
||||||
|
|
||||||
|
call_UMFPACK(const_cast<CSRMatrix*>(A),
|
||||||
|
b, x);
|
||||||
|
}
|
||||||
|
|
||||||
template <class Vector>
|
template <class Vector>
|
||||||
void
|
void
|
||||||
solve(const struct CSRMatrix& A,
|
solve(const struct CSRMatrix& A,
|
||||||
|
Loading…
Reference in New Issue
Block a user