mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #598 from andlaus/allow_temperature_to_default
BlackoilPropsAdFromDeck: allow the AutoDiffBlock which represents temperature to be empty
This commit is contained in:
commit
95c645cc72
@ -440,6 +440,10 @@ namespace {
|
||||
int nextvar = 0;
|
||||
state.pressure = vars[ nextvar++ ];
|
||||
|
||||
// Temperature. (this is always a constant so far)
|
||||
const V T = Eigen::Map<const V>(& x.temperature()[0], nc, 1);
|
||||
state.temperature = ADB::constant(T);
|
||||
|
||||
// Saturation.
|
||||
const std::vector<int>& bpat = vars[0].blockPattern();
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user