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, 12 const PetscInt, const PetscInt, const PetscInt, 13 const PetscReal, 14 PetscInt*, Mat *, PetscReal **, PetscBool *, PetscReal *); 15 #if defined PETSC_USE_LOG 16 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}; 17 extern PetscLogEvent gamg_setup_events[NUM_SET]; 18 #endif 19 20 #define PETSC_GAMG_SMOOTHER PCJACOBI 21 #define VERBOSE 1 22 23 #endif 24 25