mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Work around different 'const' rules in C.
This commit is contained in:
parent
55cbd9143b
commit
4f488a08e7
@ -48,7 +48,8 @@ namespace Opm {
|
||||
const Vector& b,
|
||||
Vector& x) {
|
||||
|
||||
call_UMFPACK(&A, &b[0], &x[0]);
|
||||
call_UMFPACK(const_cast<CSRMatrix*>(&A),
|
||||
&b[0], &x[0]);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user