u16.c File Reference

#include <stdlib.h>
#include "syspro.h"
#include "anamodsalsamodules.h"
#include "sysprotransform.h"
#include "sysprolinear.h"
#include "anamod.h"
#include "nmd.h"
#include "testmat16.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 (char *type, int pcv, PetscTruth overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscTruth *success)
static PetscErrorCode unset_pc (char *type, PetscTruth overwrite, void *ctx, void *gctx, NumericalProblem thisproblem, NumericalProblem upproblem, NumericalSolution old, NumericalSolution new)
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 23 of file u16.c.

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

Referenced by main().

static PetscErrorCode destroy_solver ( void *  ctx  )  [static]

Definition at line 35 of file u16.c.

References CHKERRQ(), and ierr.

Referenced by main().

int main ( int  argc,
char **  argv 
)

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

Definition at line 59 of file u16.c.

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

Referenced by main().

static PetscErrorCode setup_pc_choices (  )  [static]

Definition at line 46 of file u16.c.

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

Referenced by main().

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

Definition at line 110 of file u16.c.

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

Referenced by main().

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

Definition at line 87 of file u16.c.

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


Generated on Sun Oct 4 04:03:05 2009 for System Preprocessors by  doxygen 1.5.9