Fix initialization issue with gpot_.

This commit is contained in:
Atgeirr Flø Rasmussen 2013-05-23 16:39:15 +02:00
parent 70ebd21cfd
commit 07fbdf7608

View File

@ -40,7 +40,7 @@ namespace Opm
const double* grav = 0)
: pvol_ (grid.number_of_cells)
, trans_(grid.number_of_faces)
, gpot_ (grid.cell_facepos[ grid.number_of_cells ])
, gpot_ (Vector::Zero(grid.cell_facepos[ grid.number_of_cells ], 1))
{
// Pore volume
const typename Vector::Index nc = grid.number_of_cells;