System Preprocessors
Functions
syspro_anamod.c File Reference
#include <stdlib.h>
#include "anamod.h"
#include "syspro.h"
#include "sysprolinear.h"

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)

Function Documentation

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

This 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().