make initializeConnection similar in aquifer classes

This commit is contained in:
Arne Morten Kvarving 2020-12-15 09:33:14 +01:00
parent 5f844bc3a4
commit 4cdb3e85c0
2 changed files with 36 additions and 39 deletions

View File

@ -168,10 +168,11 @@ protected:
if (faceDirection == this->connections_[idx].face_dir) {
this->faceArea_connected_[idx] = this->getFaceArea(intersection, idx);
break;
}
}
denom_face_areas += (this->connections_[idx].influx_mult * this->faceArea_connected_.at(idx));
}
}
}
const double eps_sqrt = std::sqrt(std::numeric_limits<double>::epsilon());
const auto& comm = this->ebos_simulator_.vanguard().grid().comm();

View File

@ -129,7 +129,6 @@ protected:
if( idx < 0)
continue;
if (!this->connections_[idx].influx_coeff.first) { // influx_coeff is defaulted
auto isIt = gridView.ibegin(elem);
const auto& isEndIt = gridView.iend(elem);
for (; isIt != isEndIt; ++ isIt) {
@ -170,9 +169,6 @@ protected:
break;
}
}
} else {
this->faceArea_connected_.at(idx) = this->connections_[idx].influx_coeff.second;
}
denom_face_areas += (this->connections_[idx].influx_mult * this->faceArea_connected_.at(idx));
}