mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 16:54:24 -06:00
Remove unused functions.
This commit is contained in:
parent
355bfb0e70
commit
a4024a3f9e
@ -77,14 +77,6 @@ namespace Opm
|
||||
/// \return solution to complete system.
|
||||
V recoverVariable(const ADB& equation, const V& partial_solution, const int n);
|
||||
|
||||
/// Determine diagonality of a sparse matrix.
|
||||
/// If there are off-diagonal elements in the sparse
|
||||
/// structure, this function returns true if they are all
|
||||
/// equal to zero.
|
||||
/// \param[in] matrix the matrix under consideration
|
||||
/// \return true if matrix is diagonal
|
||||
bool isDiagonal(const M& matrix);
|
||||
|
||||
/// Form an elliptic system of equations.
|
||||
/// \param[in] num_phases the number of fluid phases
|
||||
/// \param[in] eqs the equations
|
||||
@ -98,11 +90,6 @@ namespace Opm
|
||||
Eigen::SparseMatrix<double, Eigen::RowMajor>& A,
|
||||
V& b);
|
||||
|
||||
/// Create a dune-istl matrix from an Eigen matrix.
|
||||
/// \param[in] matrix input Eigen::SparseMatrix
|
||||
/// \return output Dune::BCRSMatrix
|
||||
Mat makeIstlMatrix(const Eigen::SparseMatrix<double, Eigen::RowMajor>& matrix);
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
||||
@ -382,29 +369,6 @@ namespace Opm
|
||||
|
||||
|
||||
|
||||
|
||||
bool isDiagonal(const M& matr)
|
||||
{
|
||||
M matrix = matr;
|
||||
matrix.makeCompressed();
|
||||
for (int k = 0; k < matrix.outerSize(); ++k) {
|
||||
for (M::InnerIterator it(matrix, k); it; ++it) {
|
||||
if (it.col() != it.row()) {
|
||||
// Off-diagonal element.
|
||||
if (it.value() != 0.0) {
|
||||
// Nonzero off-diagonal element.
|
||||
// std::cout << "off-diag: " << it.row() << ' ' << it.col() << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// Form an elliptic system of equations.
|
||||
/// \param[in] num_phases the number of fluid phases
|
||||
/// \param[in] eqs the equations
|
||||
|
Loading…
Reference in New Issue
Block a user