diff --git a/opm/core/props/rock/RockFromDeck.cpp b/opm/core/props/rock/RockFromDeck.cpp index ae4f98d27..ea71d9f6b 100644 --- a/opm/core/props/rock/RockFromDeck.cpp +++ b/opm/core/props/rock/RockFromDeck.cpp @@ -108,6 +108,7 @@ namespace Opm const int nc = number_of_cells; assert(cartdims[0]*cartdims[1]*cartdims[2] > 0); + static_cast(cartdims); // Squash warning in release mode. permeability_.assign(dim * dim * nc, 0.0);