GeoProps: initialize scaledFaceNormal with zero.

This commit is contained in:
Robert Kloefkorn 2015-07-08 13:46:03 +02:00
parent 3c1bf1a669
commit db36dd6f43

View File

@ -376,7 +376,7 @@ namespace Opm
const double* faceNormal = Opm::UgGridHelpers::faceNormal(grid, faceIdx); const double* faceNormal = Opm::UgGridHelpers::faceNormal(grid, faceIdx);
#if HAVE_DUNE_CORNERPOINT #if HAVE_DUNE_CORNERPOINT
assert( dim <= 3 ); assert( dim <= 3 );
Dune::FieldVector< double, 3 > scaledFaceNormal; Dune::FieldVector< double, 3 > scaledFaceNormal( 0 );
for (int indx = 0; indx < dim; ++indx) { for (int indx = 0; indx < dim; ++indx) {
scaledFaceNormal[ indx ] = faceNormal[ indx ]; scaledFaceNormal[ indx ] = faceNormal[ indx ];
} }