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:
Atgeirr Flø Rasmussen 2016-02-22 17:09:06 +01:00
commit 95c645cc72

View File

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