|
System Preprocessors
|
#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, PetscBool overwrite, NumericalProblem inproblem, NumericalProblem *outproblem, void *gctx, void **ctx, PetscBool *success) |
| static PetscErrorCode | unset_pc (const char *type, PetscBool 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) |
| static PetscErrorCode create_solver | ( | NumericalProblem | prob, |
| void ** | ctx | ||
| ) | [static] |
| static PetscErrorCode destroy_solver | ( | void * | ctx | ) | [static] |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 128 of file u14.c.
References CHKERRQ(), create_solver(), CreateLinearSystem(), DeclarePreprocessor(), DeclareScalingPreprocessor(), destroy_solver(), ierr, LinearCreateNumericalSolution(), LinearDeleteNumericalProblem(), LinearDeleteNumericalSolution(), LinearSolutionGetVector(), LinearSystemSetParts(), PreprocessedProblemSolving(), PreprocessorsOptionsHandling(), setup_pc(), setup_pc_choices(), solvelinear(), SysProDeclareFunctions(), SysProDeclareTraceFunction(), SysProDefaultTrace(), SysProFinalize(), and SysProInitialize().
| static PetscErrorCode setup_pc | ( | const char * | type, |
| int | pcv, | ||
| PetscBool | overwrite, | ||
| NumericalProblem | inproblem, | ||
| NumericalProblem * | outproblem, | ||
| void * | gctx, | ||
| void ** | ctx, | ||
| PetscBool * | success | ||
| ) | [static] |
| static PetscErrorCode setup_pc_choices | ( | ) | [static] |
| 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, |
| PetscBool | 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().
1.7.6.1