14 #ifndef _SOLVER_UTILS__H
15 #define _SOLVER_UTILS__H
18 #include <lac/block_sparse_matrix.h>
19 #include <lac/full_matrix.h>
20 #include "lac/block_vector.h"
21 #include <lac/petsc_parallel_block_sparse_matrix.h>
36 using namespace dealii;
63 const std::string& file = std::string(
"diag_matrix.dat"));
86 #ifdef OPENFCST_WITH_PETSC
102 #endif //_SOLVER_UTILS__H
void output_diagonal(const BlockSparseMatrix< double > &A)
Output diagonal elements of the stiffness matrix to the screen.
void check_diagonal(const BlockSparseMatrix< double > &A)
Check that the diagonal of the matrix does not have any zeros.
void print_diagonal(const BlockSparseMatrix< double > &A, const std::string &file=std::string("diag_matrix.dat"))
Print the diagonal elements of a matrix to a file named diag_matrix.dat.
void repair_diagonal(BlockSparseMatrix< double > &A)
This member function is used to make sure that the BlockSpareMatrix has no zeros in the diagonal...
BlockVector< double > FEVector
The vector class used by applications.
Definition: application_data.h:39