Aquifer connected cell area - unconditional access to double

This commit is contained in:
Joakim Hove 2021-02-14 20:47:22 +01:00
parent 591826ea4e
commit b7f3a07939

View File

@ -200,14 +200,6 @@ protected:
rhow_.at(idx) = fs.density(waterPhaseIdx);
}
template <class Intersection>
inline double getFaceArea(const Intersection& intersection,
unsigned idx) const
{
const auto& geometry = intersection.geometry();
const auto defaultFaceArea = geometry.volume();
return (!this->connections_[idx].influx_coeff.first) ? defaultFaceArea : this->connections_[idx].influx_coeff.second;
}
virtual void endTimeStep() = 0;
@ -310,7 +302,7 @@ protected:
if (faceDirection == this->connections_[idx].face_dir) {
this->faceArea_connected_[idx] = this->getFaceArea(intersection, idx);
this->faceArea_connected_[idx] = this->connections_[idx].influx_coeff;
break;
}
}