mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 16:13:27 -06:00
Use v.data() instead of &v[0].
This commit is contained in:
parent
9e5d98dddd
commit
939489a534
@ -1027,11 +1027,11 @@ namespace {
|
||||
|
||||
// Update primary variables, if necessary.
|
||||
if (bhp_changed) {
|
||||
ADB::V new_bhp = Eigen::Map<ADB::V>(&xw.bhp()[0], nw);
|
||||
ADB::V new_bhp = Eigen::Map<ADB::V>(xw.bhp().data(), nw);
|
||||
bhp = ADB::function(new_bhp, bhp.derivative());
|
||||
}
|
||||
if (rates_changed) {
|
||||
ADB::V new_qs = Eigen::Map<ADB::V>(&xw.wellRates()[0], np*nw);
|
||||
ADB::V new_qs = Eigen::Map<ADB::V>(xw.wellRates().data(), np*nw);
|
||||
well_phase_flow_rate = ADB::function(new_qs, well_phase_flow_rate.derivative());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user