mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
only compute field fluid in place.
This commit is contained in:
parent
056708574c
commit
90086f690e
@ -2347,15 +2347,13 @@ namespace detail {
|
|||||||
fip[4] = state.rv.value() * fip[pg];
|
fip[4] = state.rv.value() * fip[pg];
|
||||||
}
|
}
|
||||||
|
|
||||||
const int dims = *std::max_element(fipnum.begin(), fipnum.end()) + 1;
|
const int dims = 1;
|
||||||
std::vector<V> values(dims, V::Zero(5));
|
std::vector<V> values(dims, V::Zero(5));
|
||||||
|
|
||||||
for (int d = 0; d < dims; ++d) {
|
for (int d = 0; d < dims; ++d) {
|
||||||
for (int c = 0; c < nc; ++c) {
|
for (int c = 0; c < nc; ++c) {
|
||||||
if (fipnum[c] == d) {
|
for (int i = 0; i < 5; ++i) {
|
||||||
for (int i = 0; i < 5; ++i) {
|
values[d][i] += fip[i][c];
|
||||||
values[d][i] += fip[i][c];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user