Work around different 'const' rules in C.

This commit is contained in:
Bård Skaflestad 2011-10-04 21:21:30 +02:00
parent 55cbd9143b
commit 4f488a08e7

View File

@ -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]);
}
};
}