mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added clarifying comment on definedness of const_cast
This commit is contained in:
parent
f850f04c93
commit
8482b435eb
@ -947,6 +947,10 @@ protected:
|
|||||||
{
|
{
|
||||||
if ( ordering_.empty())
|
if ( ordering_.empty())
|
||||||
{
|
{
|
||||||
|
// As d is non-const in the apply method of the
|
||||||
|
// solver casting away constness in this particular
|
||||||
|
// setting is not undefined. It is ugly though but due
|
||||||
|
// to the preconditioner interface of dune-istl.
|
||||||
return const_cast<Range&>(d);
|
return const_cast<Range&>(d);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user