mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclProblem: remove the initialTemperature_ array
this was not used since the fluid states that correspond to the initial condition are kept permanently.
This commit is contained in:
parent
f18477ce71
commit
1b8124cc31
@ -1321,12 +1321,10 @@ public:
|
||||
template <class Context>
|
||||
Scalar temperature(const Context& context, unsigned spaceIdx, unsigned timeIdx) const
|
||||
{
|
||||
// use the temporally constant temperature, i.e. use the initial temperature of
|
||||
// the DOF
|
||||
// use the initial temperature of the DOF if temperature is not a primary
|
||||
// variable
|
||||
unsigned globalDofIdx = context.globalSpaceIndex(spaceIdx, timeIdx);
|
||||
if (!initialFluidStates_.empty())
|
||||
return initialFluidStates_[globalDofIdx].temperature(/*phaseIdx=*/0);
|
||||
return initialTemperature_[globalDofIdx];
|
||||
return initialFluidStates_[globalDofIdx].temperature(/*phaseIdx=*/0);
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -2666,7 +2664,6 @@ private:
|
||||
std::vector<Scalar> maxPolymerAdsorption_;
|
||||
|
||||
std::vector<InitialFluidState> initialFluidStates_;
|
||||
std::vector<Scalar> initialTemperature_;
|
||||
|
||||
std::vector<Scalar> polymerConcentration_;
|
||||
// polymer molecular weight
|
||||
|
Loading…
Reference in New Issue
Block a user