mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Work around different 'const' rules in C.
This commit is contained in:
1 parent
55cbd9143b
commit
4f488a08e7
1 file changed
+2
-1
@@ -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]);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user