fix a pretty simple compile issue

This was caused by the new multi-region PVT support in opm-core.
This commit is contained in:
Andreas Lauser 2014-06-05 14:39:11 +02:00
parent 64aa6566ae
commit 67b5cb263e

View File

@ -1259,7 +1259,7 @@ namespace Opm
assert(np == 2);
const int dim = grid_.dimensions;
density_.resize(nc*np);
props_.density(grid_.number_of_cells, &A_[0], &density_[0]);
props_.density(grid_.number_of_cells, &A_[0], grid_.global_cell, &density_[0]);
std::fill(gravflux_.begin(), gravflux_.end(), 0.0);
for (int f = 0; f < nf; ++f) {
const int* c = &grid_.face_cells[2*f];