stats.c File Reference

Statistics on the AnaMod system. More...

#include <stdlib.h>
#include "anamod.h"
#include "petscerror.h"

Include dependency graph for stats.c:

Go to the source code of this file.

Functions

static PetscErrorCode Version (AnaModNumericalProblem prob, AnalysisItem *rv, int *l, PetscTruth *flg)
PetscErrorCode RegisterStatsModules ()


Detailed Description

Statistics on the AnaMod system.

Statistics on the AnaMod system

The stats module needs to be enabled explicitly.

Definition in file stats.c.


Function Documentation

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:


Generated on Sun Oct 4 04:01:23 2009 for SALSA Analysis Modules by  doxygen 1.5.9