mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -196,6 +196,7 @@ namespace Opm
|
|||||||
if (!file) {
|
if (!file) {
|
||||||
THROW("Failed to open " << fname.str());
|
THROW("Failed to open " << fname.str());
|
||||||
}
|
}
|
||||||
|
file.precision(15);
|
||||||
const std::vector<double>& d = *(it->second);
|
const std::vector<double>& d = *(it->second);
|
||||||
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
||||||
}
|
}
|
||||||
@@ -434,9 +435,8 @@ namespace Opm
|
|||||||
computePorevolume(grid_, props_.porosity(), *rock_comp_, state.pressure(), porevol);
|
computePorevolume(grid_, props_.porosity(), *rock_comp_, state.pressure(), porevol);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process transport sources (to include bdy terms and well flows).
|
// Process transport sources from well flows.
|
||||||
Opm::computeTransportSource(grid_, src_, state.faceflux(), 1.0,
|
Opm::computeTransportSource(props_, wells_, well_state, transport_src);
|
||||||
wells_, well_state.perfRates(), transport_src);
|
|
||||||
|
|
||||||
// Solve transport.
|
// Solve transport.
|
||||||
transport_timer.start();
|
transport_timer.start();
|
||||||
@@ -449,9 +449,7 @@ namespace Opm
|
|||||||
tsolver_.solve(&state.faceflux()[0], &state.pressure()[0],
|
tsolver_.solve(&state.faceflux()[0], &state.pressure()[0],
|
||||||
&initial_porevol[0], &porevol[0], &transport_src[0], stepsize,
|
&initial_porevol[0], &porevol[0], &transport_src[0], stepsize,
|
||||||
state.saturation(), state.surfacevol());
|
state.saturation(), state.surfacevol());
|
||||||
Opm::computeInjectedProduced(props_,
|
Opm::computeInjectedProduced(props_, state, transport_src, stepsize, injected, produced);
|
||||||
state.pressure(), state.surfacevol(), state.saturation(),
|
|
||||||
transport_src, stepsize, injected, produced);
|
|
||||||
if (gravity_ != 0 && use_segregation_split_) {
|
if (gravity_ != 0 && use_segregation_split_) {
|
||||||
tsolver_.solveGravity(columns_, stepsize, state.saturation(), state.surfacevol());
|
tsolver_.solveGravity(columns_, stepsize, state.saturation(), state.surfacevol());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ namespace Opm
|
|||||||
if (!file) {
|
if (!file) {
|
||||||
THROW("Failed to open " << fname.str());
|
THROW("Failed to open " << fname.str());
|
||||||
}
|
}
|
||||||
|
file.precision(15);
|
||||||
const std::vector<double>& d = *(it->second);
|
const std::vector<double>& d = *(it->second);
|
||||||
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
std::copy(d.begin(), d.end(), std::ostream_iterator<double>(file, "\n"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user