|
SALSA Analysis Modules
|
Statistics on the AnaMod system. More...

Go to the source code of this file.
Functions | |
| static PetscErrorCode | Version (AnaModNumericalProblem prob, AnalysisItem *rv, int *l, PetscBool *flg) |
| PetscErrorCode | RegisterStatsModules () |
Statistics on the AnaMod system.
The stats module needs to be enabled explicitly.
Definition in file stats.c.
| PetscErrorCode RegisterStatsModules | ( | ) |
Declare statistics modules
Definition at line 34 of file stats.c.
References ANALYSISSTRING, RegisterModule(), and Version().
{
PetscErrorCode ierr;
PetscFunctionBegin;
ierr = RegisterModule
("stats","version",ANALYSISSTRING,&Version); CHKERRQ(ierr);
PetscFunctionReturn(0);
}

| static PetscErrorCode Version | ( | AnaModNumericalProblem | prob, |
| AnalysisItem * | rv, | ||
| int * | l, | ||
| PetscBool * | flg | ||
| ) | [static] |
The AnaMod format version string
Definition at line 19 of file stats.c.
References ANAMOD_FORMAT_VERSION, AnalysisItem::c, GetDataID(), HASTOEXIST, and id.
Referenced by RegisterStatsModules().
{
int id; PetscBool has; PetscErrorCode ierr;
PetscFunctionBegin;
ierr = GetDataID("simple","trace",&id,&has); CHKERRQ(ierr);
HASTOEXIST(has);
rv->c = ANAMOD_FORMAT_VERSION;
PetscFunctionReturn(0);
}

1.7.6.1