logging.c File Reference

PETSc event logging in AnaMod. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "petsc.h"
#include "anamod.h"

Include dependency graph for logging.c:

Go to the source code of this file.

Functions

PetscErrorCode CategoryLogEventRegister (char *cat, int icat)


Detailed Description

PETSc event logging in AnaMod.

Event logging

We use PETSc Log Events to report on time expended in AnaMod routines.

Definition in file logging.c.


Function Documentation

PetscErrorCode CategoryLogEventRegister ( char *  cat,
int  icat 
)

Definition at line 20 of file logging.c.

00021 {
00022   PetscLogEvent catevent; PetscCookie cookie; PetscErrorCode ierr;
00023   PetscFunctionBegin;
00024   ierr = PetscCookieRegister("Anamod events",&cookie); CHKERRQ(ierr);
00025   ierr = PetscLogEventRegister(cat,cookie,&catevent); CHKERRQ(ierr);
00026 //  catevents[icat] = catevent;
00027   PetscFunctionReturn(0);
00028 }


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