#ifndef BUILDERH_H_ #define BUILDERH_H_ /* This version is only support uniprocess. */ # include "petscksp.h" # include # include typedef enum {RC_1=0,RC_2=1,DB_1=2,DB_2=3}ProblemType; typedef struct { ProblemType problem; /* size of preconditioner */ PetscInt k,v; PetscInt n_x,s_t; PetscReal h_x,h_t; }MainMatPar ; /*=============================================================================*/ extern PetscErrorCode CreateMainMatPar(ProblemType,PetscInt,PetscInt,PetscInt,PetscInt,\ PetscReal,PetscReal,MainMatPar**); extern PetscErrorCode DestroyMainMatPar(MainMatPar*); extern PetscErrorCode BuildMainMatrix(Mat*,MainMatPar*); extern PetscErrorCode Build11(Mat*,MainMatPar*); #endif /*BUILDERH_H_*/