Changed way to get total number of cells.

This commit is contained in:
Xavier Raynaud committed 2012-08-21 17:10:49 +02:00
1 parent 712ccb0309
commit 52ab67201d
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,7 @@ namespace Opm
double perm_threshold)
{
const int dim = 3;
const int num_global_cells = numGlobalCells(parser);
const int num_global_cells = grid.cartdims[0]*grid.cartdims[1]*grid.cartdims[2];
const int nc = grid.number_of_cells;
ASSERT (num_global_cells > 0);