Adding functions for pressure system manipulation to well models.

Also add well-aware operator and transfer policy.
This will be used for CPR with custom operators.
This commit is contained in:
hnil
2021-01-04 15:18:23 +01:00
committed by Atgeirr Flø Rasmussen
parent 0bb293aeb0
commit f3acfcde0b
15 changed files with 821 additions and 103 deletions

View File

@@ -233,8 +233,19 @@ namespace Opm {
}
} // namespace wellhelpers
template <class DenseMatrix>
DenseMatrix transposeDenseDynMatrix(const DenseMatrix& M)
{
DenseMatrix tmp{M.cols(), M.rows()};
for (int i = 0; i < M.rows(); ++i) {
for (int j = 0; j < M.cols(); ++j) {
tmp[j][i] = M[i][j];
}
}
return tmp;
}
} // namespace wellhelpers
}
#endif