SALSA Analysis Modules
Functions
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().

{
  PetscErrorCode ierr;
  PetscFunctionBegin;

  ierr = RegisterModule
    ("stats","version",ANALYSISSTRING,&Version); CHKERRQ(ierr);

  PetscFunctionReturn(0);
}

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

{
  int id; PetscTruth has; PetscErrorCode ierr;
  PetscFunctionBegin;
  ierr = GetDataID("simple","trace",&id,&has); CHKERRQ(ierr);
  HASTOEXIST(has);
  rv->c = ANAMOD_FORMAT_VERSION;
  
  PetscFunctionReturn(0);
}

Here is the call graph for this function: