mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -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: "
|
||||
<< 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);
|
||||
UnstructuredGrid* gg = const_cast<UnstructuredGrid*>(&grid_);
|
||||
tpfa_htrans_compute(gg, permeability, &htrans_[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user