System Preprocessors
|
Go to the source code of this file.
Functions | |
PetscErrorCode | SysProComputeQuantity (NumericalProblem theproblem, const char *cat, const char *cmp, void *res, int *reslen, PetscBool *flg) |
PetscErrorCode | SysProRetrieveQuantity (NumericalProblem theproblem, const char *cat, const char *cmp, void *res, int *reslen, PetscBool *flg) |
PetscErrorCode | SysProRemoveQuantity (NumericalProblem theproblem, const char *cat, const char *cmp, PetscBool *flg) |
PetscErrorCode | SysProFreeQuantities (NumericalProblem theproblem) |
PetscErrorCode SysProComputeQuantity | ( | NumericalProblem | theproblem, |
const char * | cat, | ||
const char * | cmp, | ||
void * | res, | ||
int * | reslen, | ||
PetscBool * | flg | ||
) |
anamod SysPro-AnaMod interface
The SysPro linear package has a few routines to facilitate integration with AnaMod
SysProComputeQuantity()
: to compute a quantity using AnaMod and store it as the metadata of a linear systemSysProRetrieveQuantity()
: to get an already computed quantitySysProFreeQuantities()
: to destroy the metadata objectSysProRemoveQuantity()
: to invalidate/free selected quantitiesThis routine is used in SysPro to compute quantities. See also SysProRetrieveQuantity().
Definition at line 23 of file syspro_anamod.c.
References CHKERRQ(), ierr, LinearSystemGetMetadata(), and LinearSystemGetParts().
Referenced by flipsign(), MatSymmetricPart(), sans_partition(), specific_flipsign_choices(), and specific_singleton_choices().
PetscErrorCode SysProFreeQuantities | ( | NumericalProblem | theproblem | ) |
Definition at line 96 of file syspro_anamod.c.
References CHKERRQ(), ierr, and LinearSystemGetMetadata().
PetscErrorCode SysProRemoveQuantity | ( | NumericalProblem | theproblem, |
const char * | cat, | ||
const char * | cmp, | ||
PetscBool * | flg | ||
) |
This routine is used to invalidate and free computed quantities. See also SysProRetrieveQuantity(), SysProComputeQuantity().
Definition at line 80 of file syspro_anamod.c.
References CHKERRQ(), ierr, and LinearSystemGetMetadata().
Referenced by singleton_specific_unset().
PetscErrorCode SysProRetrieveQuantity | ( | NumericalProblem | theproblem, |
const char * | cat, | ||
const char * | cmp, | ||
void * | res, | ||
int * | reslen, | ||
PetscBool * | flg | ||
) |
This routine is used in SysPro to retrieve already computed quantities. Reports failure if the quantity has not already been computed. See also SysProComputeQuantity().
Definition at line 52 of file syspro_anamod.c.
References CHKERRQ(), ierr, and LinearSystemGetParts().
Referenced by disable_pcs(), eliminate_singletons(), MatSymmetricPart(), set_intelligent_scaling(), specific_approximation_choices(), and specific_scaling_choices().