Avoid release mode warnings.

Variables only used in asserts have been removed, their content used
directly in the assert() instead.
This commit is contained in:
Atgeirr Flø Rasmussen
2014-09-18 11:31:03 +02:00
parent 2a0c9dd009
commit b0c6fff9f0
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -105,10 +105,9 @@ namespace Opm
double perm_threshold)
{
const int dim = 3;
const int num_global_cells = cartdims[0]*cartdims[1]*cartdims[2];
const int nc = number_of_cells;
assert(num_global_cells > 0);
assert(cartdims[0]*cartdims[1]*cartdims[2] > 0);
permeability_.assign(dim * dim * nc, 0.0);