System Preprocessors
Functions
u13.c File Reference
#include <stdlib.h>
#include "syspro.h"
#include "sysprotransform.h"
#include "sysprolinear.h"
#include "testmat.c"

Go to the source code of this file.

Functions

static PetscErrorCode create_solver (NumericalProblem prob, void **ctx)
static PetscErrorCode destroy_solver (void *ctx)
static PetscErrorCode setup_pc_choices ()
static PetscErrorCode setup_pc (const char *type, int pcv, PetscTruth overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscTruth *success)
static PetscErrorCode solvelinear (NumericalProblem problem, void *dum, NumericalSolution *rsol)
static PetscErrorCode destroysolution (NumericalSolution sol)
int main (int argc, char **argv)

Function Documentation

static PetscErrorCode create_solver ( NumericalProblem  prob,
void **  ctx 
) [static]

Create a solver and install a monitor that dynamically increases the maximum number of iterations.

Definition at line 20 of file u13.c.

References CHKERRQ(), ierr, and NumericalProblemGetComm().

Referenced by main().

static PetscErrorCode destroy_solver ( void *  ctx) [static]

Definition at line 32 of file u13.c.

References CHKERRQ(), and ierr.

Referenced by main().

static PetscErrorCode destroysolution ( NumericalSolution  sol) [static]

Definition at line 124 of file u13.c.

References CHKERRQ(), and ierr.

Referenced by main().

int main ( int  argc,
char **  argv 
)
static PetscErrorCode setup_pc ( const char *  type,
int  pcv,
PetscTruth  overwrite,
NumericalProblem  inproblem,
NumericalProblem outproblem,
void *  gctx,
void **  ctx,
PetscTruth *  success 
) [static]

Definition at line 56 of file u13.c.

References CHKERRQ(), ierr, and LinearSystemGetParts().

Referenced by main().

static PetscErrorCode setup_pc_choices ( ) [static]

Definition at line 43 of file u13.c.

References CHKERRQ(), ierr, and NewTransformObject().

Referenced by main().

static PetscErrorCode solvelinear ( NumericalProblem  problem,
void *  dum,
NumericalSolution rsol 
) [static]

Definition at line 102 of file u13.c.

References CHKERRQ(), ierr, and LinearSystemGetParts().

Referenced by main().