Changed int idx to indicate which matrix is added to WellContributions to an enum

This commit is contained in:
T.D. (Tongdong) Qiu
2020-03-20 10:04:58 +01:00
parent 75268f1166
commit ab2d9a8c76
3 changed files with 20 additions and 13 deletions

View File

@@ -2756,7 +2756,7 @@ namespace Opm
}
}
}
wellContribs.addMatrix(0, colIndices.data(), nnzValues.data(), duneC_.nonzeroes());
wellContribs.addMatrix(WellContributions::MatrixType::C, colIndices.data(), nnzValues.data(), duneC_.nonzeroes());
// invDuneD
colIndices.clear();
@@ -2768,7 +2768,7 @@ namespace Opm
nnzValues.emplace_back(invDuneD_[0][0][i][j]);
}
}
wellContribs.addMatrix(1, colIndices.data(), nnzValues.data(), 1);
wellContribs.addMatrix(WellContributions::MatrixType::D, colIndices.data(), nnzValues.data(), 1);
// duneB
colIndices.clear();
@@ -2782,7 +2782,7 @@ namespace Opm
}
}
}
wellContribs.addMatrix(2, colIndices.data(), nnzValues.data(), duneB_.nonzeroes());
wellContribs.addMatrix(WellContributions::MatrixType::B, colIndices.data(), nnzValues.data(), duneB_.nonzeroes());
}