diff --git a/tests/test_pinchprocessor.cpp b/tests/test_pinchprocessor.cpp index 9bfb2b2d3..7c4ca05d6 100644 --- a/tests/test_pinchprocessor.cpp +++ b/tests/test_pinchprocessor.cpp @@ -26,7 +26,11 @@ #define NVERBOSE // Suppress own messages when throw()in #define BOOST_TEST_MODULE PinchProcessorTest + +#include #include +#include + #include #include #include @@ -76,7 +80,7 @@ BOOST_AUTO_TEST_CASE(Processing) std::vector actnum; eclgrid->exportACTNUM(actnum); - if (actnum.empty() && (nc == eclgrid->getCartesianSize())) { + if (actnum.empty() && (nc == int(eclgrid->getCartesianSize()))) { actnum.assign(nc, 1); } std::vector htrans(Opm::UgGridHelpers::numCellFaces(grid)); @@ -84,12 +88,11 @@ BOOST_AUTO_TEST_CASE(Processing) tpfa_htrans_compute(ug, rock.permeability(), htrans.data()); auto transMult = eclstate->getTransMult(); std::vector multz(nc, 0.0); - std::vector dz(porv.size(), 0.0); for (int i = 0; i < nc; ++i) { multz[i] = transMult->getMultiplier(global_cell[i], Opm::FaceDir::ZPlus); } Opm::NNC nnc(deck, eclgrid); - pinch.process(grid, htrans, actnum, multz, porv, dz, nnc); + pinch.process(grid, htrans, actnum, multz, porv, nnc); auto nnc1 = nnc.nnc1(); auto nnc2 = nnc.nnc2(); auto trans = nnc.trans();