fix a few annoying but harmless warnings appearing on newish compilers

(i.e. clang 3.3 in my case.)
This commit is contained in:
Andreas Lauser 2014-05-13 13:37:59 +02:00
parent 756de358c0
commit 2fda604c3b
2 changed files with 0 additions and 4 deletions

View File

@ -233,9 +233,6 @@ void extractInternalFaces(const Dune::CpGrid& grid,
Eigen::Array<int, Eigen::Dynamic, 1>& internal_faces,
Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor>& nbi)
{
typedef Eigen::Array<bool, Eigen::Dynamic, 1> OneColBool;
typedef Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor> TwoColInt;
typedef Eigen::Array<bool, Eigen::Dynamic, 2, Eigen::RowMajor> TwoColBool;
// Extracts the internal faces of the grid.
// These are stored in internal_faces.
int nf=numFaces(grid);

View File

@ -185,7 +185,6 @@ namespace Opm
// but for scalar lambda and using TPFA it holds.
const V p1 = Vec(state.pressure().data(), nc, 1);
const V ndp = (ops_.ngrad * p1.matrix()).array();
typedef Eigen::Array<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> DynArr;
const V z = cellCentroidsZ(grid_);
const V ndz = (ops_.ngrad * z.matrix()).array();
assert(num_internal == ndp.size());