System Preprocessors
Functions
u14.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 unset_pc (const char *type, PetscTruth overwrite, void *ctx, void *gctx, NumericalProblem thisproblem, NumericalProblem upproblem, NumericalSolution old, NumericalSolution nnew)
static PetscErrorCode solvelinear (NumericalProblem problem, void *dum, NumericalSolution *rsol)
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 u14.c.

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

Referenced by main().

static PetscErrorCode destroy_solver ( void *  ctx) [static]

Definition at line 32 of file u14.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 u14.c.

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

Referenced by main().

static PetscErrorCode setup_pc_choices ( ) [static]

Definition at line 43 of file u14.c.

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

Referenced by main().

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

Definition at line 107 of file u14.c.

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

Referenced by main().

static PetscErrorCode unset_pc ( const char *  type,
PetscTruth  overwrite,
void *  ctx,
void *  gctx,
NumericalProblem  thisproblem,
NumericalProblem  upproblem,
NumericalSolution  old,
NumericalSolution  nnew 
) [static]

Definition at line 84 of file u14.c.

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