fix bug: check bhp vector is not empty.

This commit is contained in:
Liu Ming
2014-01-03 15:27:48 +08:00
parent cf28164a5a
commit ff91428fe0

View File

@@ -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);