mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilMICPModules: fix field prop copy if Scalar is float
This commit is contained in:
parent
fa610b49a3
commit
43fafc1ada
@ -127,8 +127,14 @@ public:
|
|||||||
MICPpara.getMaximumUreaConcentration(),
|
MICPpara.getMaximumUreaConcentration(),
|
||||||
MICPpara.getToleranceBeforeClogging());
|
MICPpara.getToleranceBeforeClogging());
|
||||||
// obtain the porosity for the clamp in the blackoilnewtonmethod
|
// obtain the porosity for the clamp in the blackoilnewtonmethod
|
||||||
|
if constexpr (std::is_same_v<Scalar, float>) {
|
||||||
|
const auto phi = eclState.fieldProps().get_double("PORO");
|
||||||
|
params_.phi_.resize(phi.size());
|
||||||
|
std::copy(phi.begin(), phi.end(), params_.phi_.begin());
|
||||||
|
} else {
|
||||||
params_.phi_ = eclState.fieldProps().get_double("PORO");
|
params_.phi_ = eclState.fieldProps().get_double("PORO");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user