Debian Codegraph @

packages/trilinoscouplings/src/ml/NonlinML/nlnml_preconditioner_utils.H

raw
1 // @HEADER
2 // *****************************************************************************
3 // Trilinos: An Object-Oriented Solver Framework
4 //
5 // Copyright 2001-2024 NTESS and the Trilinos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 /* ******************************************************************** */
11 /* See the file COPYRIGHT for a complete copyright notice, contact */
12 /* person and disclaimer. */
13 /* ******************************************************************** */
14 /*!
15 * \file nlnml_preconditioner_utils.H
16 *
17 * \brief ML nonlinear preconditioner and solver utility routines
18 *
19 * \date Last update do Doxygen: 31-Mar-05
20 *
21 */
22 #include "ml_common.h"
23 #include "TrilinosCouplings_config.h"
24
25 #if defined(HAVE_ML_NOX) && defined(HAVE_ML_EPETRA) && defined(HAVE_ML_AZTECOO) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) && defined(HAVE_ML_AMESOS) && defined(HAVE_ML_EPETRAEXT)
26
27 #ifndef NLNML_PRECONDITIONER_UTILS_H
28 #define NLNML_PRECONDITIONER_UTILS_H
29
30 #include "Epetra_CrsGraph.h"
31 // the graph coloring class
32 #include "Epetra_MapColoring.h"
33 #include "EpetraExt_MapColoring.h"
34 #include "EpetraExt_MapColoringIndex.h"
35 #include "Epetra_CrsMatrix.h"
36 #include "Teuchos_RefCountPtr.hpp"
37
38 using namespace Teuchos;
39 namespace NLNML
40 {
41 Epetra_CrsGraph* deepcopy_graph(const Epetra_CrsGraph* oldgraph);
42 RefCountPtr<Epetra_MapColoring> Collapsedcoloring(Epetra_CrsGraph* cgraph,
43 const int bsize,
44 bool diagonalonly,
45 int printlevel);
46 RefCountPtr<Epetra_MapColoring> Standardcoloring(Epetra_CrsGraph* graph,
47 bool diagonalonly);
48 bool Print_Epetra_CrsMatrix(Epetra_CrsMatrix& matrix);
49 RefCountPtr<Epetra_CrsMatrix> StripZeros(RefCountPtr<Epetra_CrsMatrix> in, double eps = 0.0);
50 }
51
52
53
54
55 #endif
56 #endif