mistake use of typename.

This commit is contained in:
Liu Ming 2014-01-03 15:35:00 +08:00
parent ff91428fe0
commit 391287283d

View File

@ -155,7 +155,7 @@ namespace {
V pvol(grid_.number_of_cells);
// Pore volume
const typename V::Index nc = grid_.number_of_cells;
const V::Index nc = grid_.number_of_cells;
V rho = V::Constant(pvol.size(), 1, *fluid_.porosity());
std::transform(grid_.cell_volumes, grid_.cell_volumes + nc,
rho.data(), pvol.data(),