Skip to content
Snippets Groups Projects
Commit 2e54137a authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Remove unused GlobalMatrix's getMaxDiagCoeff

parent ea317a12
No related branches found
No related tags found
No related merge requests found
...@@ -140,12 +140,6 @@ public: ...@@ -140,12 +140,6 @@ public:
} }
*/ */
/// get a maximum value in diagonal entries
double getMaxDiagCoeff() const
{
return _mat.diagonal().maxCoeff();
}
/// return always true, i.e. the matrix is always ready for use /// return always true, i.e. the matrix is always ready for use
bool isAssembled() const { return true; } bool isAssembled() const { return true; }
......
...@@ -118,24 +118,6 @@ void LisMatrix::write(const std::string &filename) const ...@@ -118,24 +118,6 @@ void LisMatrix::write(const std::string &filename) const
lis_output_matrix(_AA, LIS_FMT_MM, const_cast<char*>(filename.c_str())); lis_output_matrix(_AA, LIS_FMT_MM, const_cast<char*>(filename.c_str()));
} }
double LisMatrix::getMaxDiagCoeff()
{
double abs_max_entry;
int ierr = lis_vector_get_value(_diag, 0, &abs_max_entry);
checkLisError(ierr);
abs_max_entry = std::abs(abs_max_entry);
for (std::size_t k(1); k<_n_rows; ++k) {
double tmp;
ierr = lis_vector_get_value(_diag, k, &tmp);
checkLisError(ierr);
if (abs_max_entry < std::abs(tmp)) {
abs_max_entry = std::abs(tmp);
}
}
return abs_max_entry;
}
bool finalizeMatrixAssembly(LisMatrix &mat) bool finalizeMatrixAssembly(LisMatrix &mat)
{ {
LIS_MATRIX &A = mat.getRawMatrix(); LIS_MATRIX &A = mat.getRawMatrix();
......
...@@ -111,9 +111,6 @@ public: ...@@ -111,9 +111,6 @@ public:
/// printout this equation for debugging /// printout this equation for debugging
void write(const std::string &filename) const; void write(const std::string &filename) const;
/// get a maximum value in diagonal entries
double getMaxDiagCoeff();
/// return a raw Lis matrix object /// return a raw Lis matrix object
LIS_MATRIX& getRawMatrix() { return _AA; } LIS_MATRIX& getRawMatrix() { return _AA; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment