mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
committed by
Atgeirr Flø Rasmussen
parent
0bb293aeb0
commit
f3acfcde0b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user