mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 16:00:01 -06:00
Fix bug related to arithmetic if operator ( ? : ).
This commit is contained in:
parent
a6c71288aa
commit
07b04825fd
@ -59,7 +59,7 @@ namespace Opm
|
|||||||
THROW("Inconsistent number of phases specified: "
|
THROW("Inconsistent number of phases specified: "
|
||||||
<< wells_->number_of_phases << " != " << num_phases);
|
<< wells_->number_of_phases << " != " << num_phases);
|
||||||
}
|
}
|
||||||
const int num_dofs = g.number_of_cells + wells ? wells->number_of_wells : 0;
|
const int num_dofs = g.number_of_cells + (wells ? wells->number_of_wells : 0);
|
||||||
pressure_increment_.resize(num_dofs);
|
pressure_increment_.resize(num_dofs);
|
||||||
UnstructuredGrid* gg = const_cast<UnstructuredGrid*>(&grid_);
|
UnstructuredGrid* gg = const_cast<UnstructuredGrid*>(&grid_);
|
||||||
tpfa_htrans_compute(gg, permeability, &htrans_[0]);
|
tpfa_htrans_compute(gg, permeability, &htrans_[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user