mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix bug: check bhp vector is not empty.
This commit is contained in:
@@ -309,7 +309,7 @@ namespace {
|
||||
vars0.push_back(qs);
|
||||
|
||||
// Initial well bottom hole pressure.
|
||||
assert (not xw.bhp().size());
|
||||
assert (not xw.bhp().empty());
|
||||
const V bhp = Eigen::Map<const V>(& xw.bhp()[0], xw.bhp().size());
|
||||
vars0.push_back(bhp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user