Merge pull request #1765 from andlaus/minor_cleanups

Minor cleanups
This commit is contained in:
Tor Harald Sandve
2019-03-26 12:38:50 +01:00
committed by GitHub
2 changed files with 6 additions and 8 deletions

View File

@@ -1325,12 +1325,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);
}
/*!
@@ -2719,7 +2717,6 @@ private:
std::vector<Scalar> maxPolymerAdsorption_;
std::vector<InitialFluidState> initialFluidStates_;
std::vector<Scalar> initialTemperature_;
std::vector<Scalar> polymerConcentration_;
// polymer molecular weight