mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Fix initialization issue with gpot_.
This commit is contained in:
parent
70ebd21cfd
commit
07fbdf7608
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user