SALSA Analysis Modules
|
PETSc event logging in AnaMod. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "petsc.h"
#include "anamod.h"
Go to the source code of this file.
Functions | |
PetscErrorCode | CategoryLogEventRegister (char *cat, int icat) |
PETSc event logging in AnaMod.
We use PETSc Log Events to report on time expended in AnaMod routines.
Definition in file logging.c.
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); }