modification to to well assembly form well side to avoid asking for wells on all cells

This commit is contained in:
hnil authored and Atgeirr Flø Rasmussen committed 2023-03-08 16:41:36 +01:00
1 parent 6d07c490c3
commit e705dc41c2
4 files changed
+47

No files matched your search

+9
View File
@@ -1785,6 +1785,7 @@ public:
OPM_TIMEBLOCK_LOCAL(eclProblemSource);
rate = 0.0;
// Add well contribution to source here.
wellModel_.computeTotalRatesForDof(rate, globalDofIdx);
// convert the source term from the total mass rate of the
@@ -1796,6 +1797,14 @@ public:
assert(isfinite(rate[eqIdx]));
}
// Add non-well sources.
addToSourceDense(rate, globalDofIdx, timeIdx);
}
void addToSourceDense(RateVector& rate,
unsigned globalDofIdx,
unsigned timeIdx) const
{
if (enableAquifers_)
aquiferModel_.addToSource(rate, globalDofIdx, timeIdx);