added: StandardWellEquations::sumDistributed

this sums up the global equation system for distributed wells
This commit is contained in:
Arne Morten Kvarving
2022-11-11 21:41:24 +01:00
parent e9ed80d644
commit 4b4898d6ec
3 changed files with 14 additions and 2 deletions

View File

@@ -385,6 +385,14 @@ extractCPRPressureMatrix(PressureMatrix& jacobian,
}
}
template<class Scalar, int numEq>
void StandardWellEquations<Scalar,numEq>::
sumDistributed(Parallel::Communication comm)
{
// accumulate resWell_ and duneD_ in parallel to get effects of all perforations (might be distributed)
wellhelpers::sumDistributedWellEntries(duneD_[0][0], resWell_[0], comm);
}
#define INSTANCE(N) \
template class StandardWellEquations<double,N>; \
template void StandardWellEquations<double,N>:: \