mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 09:52:01 -05:00
move Index query into if.
This commit is contained in:
1 parent
cbfb4f0489
commit
6f55c862ce
1 file changed
+1
-1
@@ -104,10 +104,10 @@ static void conservative_sparse_sparse_product_impl(const Lhs& lhs, const Rhs& r
|
|||||||
const Scalar y = rhsIt.value();
|
const Scalar y = rhsIt.value();
|
||||||
for (typename Lhs::InnerIterator lhsIt(lhs, rhsIt.index()); lhsIt; ++lhsIt)
|
for (typename Lhs::InnerIterator lhsIt(lhs, rhsIt.index()); lhsIt; ++lhsIt)
|
||||||
{
|
{
|
||||||
const Index i = lhsIt.index();
|
|
||||||
const Scalar val = lhsIt.value() * y;
|
const Scalar val = lhsIt.value() * y;
|
||||||
if( std::abs( val ) > epsilon )
|
if( std::abs( val ) > epsilon )
|
||||||
{
|
{
|
||||||
|
const Index i = lhsIt.index();
|
||||||
if(!mask[i])
|
if(!mask[i])
|
||||||
{
|
{
|
||||||
mask[i] = true;
|
mask[i] = true;
|
||||||
|
|||||||
Reference in new issue
Block a user