Merge pull request #3958 from Tongdongq/fix-gpu-well-apply

Fix stdwell apply on GPU
This commit is contained in:
Markus Blatt 2022-06-24 16:02:34 +02:00 committed by GitHub
commit 25a92c2c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1139,7 +1139,7 @@ addWellContribution(WellContributions& wellContribs) const
for (int i = 0; i < numStaticWellEq; ++i)
{
for (int j = 0; j < numStaticWellEq; ++j) {
nnzValues.emplace_back(this->duneD_[0][0][i][j]);
nnzValues.emplace_back(this->invDuneD_[0][0][i][j]);
}
}
wellContribs.addMatrix(WellContributions::MatrixType::D, colIndices.data(), nnzValues.data(), 1);