mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
modification to to well assembly form well side to avoid asking for wells on all cells
This commit is contained in:
1 parent
6d07c490c3
commit
e705dc41c2
4 files changed
+47
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user