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

{
  PetscLogEvent catevent; PetscCookie cookie; PetscErrorCode ierr;
  PetscFunctionBegin;
  ierr = PetscCookieRegister("Anamod events",&cookie); CHKERRQ(ierr);
  ierr = PetscLogEventRegister(cat,cookie,&catevent); CHKERRQ(ierr);
//  catevents[icat] = catevent;
  PetscFunctionReturn(0);
}