xref: /petsc/src/ksp/pc/impls/gamg/gamg.h (revision da35de2ae6bb4bb16c6cd4e7d528a9e876685ebd)
1 #if !defined(__GAMG_IMPL)
2 #define __GAMG_IMPL
3 #include <private/pcimpl.h>   /*I "petscpc.h" I*/
4 #include <../src/ksp/pc/impls/mg/mgimpl.h>                    /*I "petscpcmg.h" I*/
5 #include <../src/mat/impls/aij/seq/aij.h>
6 #include <../src/mat/impls/aij/mpi/mpiaij.h>
7 #include <assert.h>
8 
9 extern PetscErrorCode PCSetFromOptions_MG(PC);
10 extern PetscErrorCode PCReset_MG(PC);
11 extern PetscErrorCode createProlongation( const Mat, const PetscReal [], const PetscInt, const PetscInt,
12                                           const PetscInt, const PetscInt,
13                                           PetscInt*, Mat *, PetscReal **, PetscBool *, PetscReal *);
14 #if defined PETSC_USE_LOG
15 enum tag {SET1,SET2,GRAPH,GRAPH_MAT,GRAPH_FILTER,GRAPH_SQR,SET4,SET5,SET6,FIND_V,SET7,SET8,SET9,SET10,SET11,SET12,SET13,NUM_SET};
16 extern PetscLogEvent gamg_setup_events[NUM_SET];
17 #endif
18 
19 #define PETSC_GAMG_SMOOTHER PCJACOBI
20 //#define VERBOSE 1
21 
22 #endif
23 
24