System Preprocessors
Functions
pcstuff.c File Reference
#include <stdlib.h>
#include "petscpc.h"
#include "petscksp.h"
#include "anamod.h"
#include "linpc.h"

Go to the source code of this file.

Functions

static PetscErrorCode set_blocked_sub_pc (int pcv)
PetscErrorCode pc_string (KSPType pct, int pcv, int pcvv, char **s)
PetscErrorCode pc_short_string (KSPType pct, int pcv, int pcvv, char **s)
static PetscErrorCode ilu_stats_function (PC pc, void *ctx)
PetscErrorCode get_pc_stats_function (PCType pct, int(**f)(PC, void *))
PetscErrorCode set_preconditioner_base_matrix (PCType pct, Mat B, Mat *Buse)
PetscErrorCode SetPetscOptionsForPC (PC pc, PCType pct0, int pcv, int pcvv)

Function Documentation

PetscErrorCode get_pc_stats_function ( PCType  pct,
int(**)(PC, void *)  f 
)

Definition at line 243 of file pcstuff.c.

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

static PetscErrorCode ilu_stats_function ( PC  pc,
void *  ctx 
) [static]

Definition at line 226 of file pcstuff.c.

Referenced by get_pc_stats_function().

PetscErrorCode pc_short_string ( KSPType  pct,
int  pcv,
int  pcvv,
char **  s 
)

Definition at line 111 of file pcstuff.c.

References CHKERRQ(), ierr, and PCBS95.

PetscErrorCode pc_string ( KSPType  pct,
int  pcv,
int  pcvv,
char **  s 
)

Definition at line 61 of file pcstuff.c.

References CHKERRQ(), and ierr.

static PetscErrorCode set_blocked_sub_pc ( int  pcv) [static]

Set the parameter value for a pc; this routine is only called for parametrised pcs

Definition at line 13 of file pcstuff.c.

References CHKERRQ(), and ierr.

Referenced by SetPetscOptionsForPC().

PetscErrorCode set_preconditioner_base_matrix ( PCType  pct,
Mat  B,
Mat *  Buse 
)

Definition at line 258 of file pcstuff.c.

References CHKERRQ(), ierr, PCBS95, PCMUMPS, PCSPOOLES, PCSUPERLU, and PCUMFPACK.

Referenced by setup_pc().

PetscErrorCode SetPetscOptionsForPC ( PC  pc,
PCType  pct0,
int  pcv,
int  pcvv 
)