SALSA Analysis Modules
logging.c
Go to the documentation of this file.
00001 #include <stdlib.h>
00002 #include <stdio.h>
00003 #include <string.h>
00004 #include <stdarg.h>
00005 #include "petsc.h"
00006 #include "anamod.h"
00007 
00008 /*! \file logging.c
00009   \brief PETSc event logging in AnaMod
00010 
00011   \section logging Event logging
00012 
00013   We use PETSc Log Events to report on time expended in AnaMod routines.
00014 */
00015 
00016 //extern PetscLogEvent *catevents;
00017 
00018 #undef __FUNCT__
00019 #define __FUNCT__ "CategoryLogEventRegister"
00020 PetscErrorCode CategoryLogEventRegister(char *cat,int icat)
00021 {
00022   PetscLogEvent catevent; PetscClassId cookie; PetscErrorCode ierr;
00023   PetscFunctionBegin;
00024   ierr = PetscClassIdRegister("Anamod events",&cookie); CHKERRQ(ierr);
00025   ierr = PetscLogEventRegister(cat,cookie,&catevent); CHKERRQ(ierr);
00026 //  catevents[icat] = catevent;
00027   PetscFunctionReturn(0);
00028 }