#include <stdlib.h>
#include "anamod.h"
#include "petscerror.h"
Go to the source code of this file.
Functions | |
static PetscErrorCode | Version (AnaModNumericalProblem prob, AnalysisItem *rv, int *l, PetscTruth *flg) |
PetscErrorCode | RegisterStatsModules () |
Definition in file stats.c.
PetscErrorCode RegisterStatsModules | ( | ) |
Declare statistics modules
Definition at line 34 of file stats.c.
References ANALYSISSTRING, RegisterModule(), and Version().
00035 { 00036 PetscErrorCode ierr; 00037 PetscFunctionBegin; 00038 00039 ierr = RegisterModule 00040 ("stats","version",ANALYSISSTRING,&Version); CHKERRQ(ierr); 00041 00042 PetscFunctionReturn(0); 00043 }
static PetscErrorCode Version | ( | AnaModNumericalProblem | prob, | |
AnalysisItem * | rv, | |||
int * | l, | |||
PetscTruth * | 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().
00020 { 00021 int id; PetscTruth has; PetscErrorCode ierr; 00022 PetscFunctionBegin; 00023 ierr = GetDataID("simple","trace",&id,&has); CHKERRQ(ierr); 00024 HASTOEXIST(has); 00025 rv->c = ANAMOD_FORMAT_VERSION; 00026 00027 PetscFunctionReturn(0); 00028 }