/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (as published by the Free * Software Foundation) version 2.1 dated February 1999. * * $Revision: 2.4 $ ***********************************************************************EHEADER*/ /****************************************************************************** * * Header file for HYPRE_utilities library * *****************************************************************************/ #include "HYPRE.h" #ifndef HYPRE_UTILITIES_HEADER #define HYPRE_UTILITIES_HEADER #ifndef HYPRE_SEQUENTIAL #include "mpi.h" #endif #ifdef HYPRE_USING_OPENMP #include #endif #ifdef __cplusplus extern "C" { #endif /* * Before a version of HYPRE goes out the door, increment the version * number and check in this file (for CVS to substitute the Date). */ #define HYPRE_Version() "PACKAGE_STRING $Date: 2009/01/09 23:02:06 $ Compiled: " __DATE__ " " __TIME__ #ifdef HYPRE_USE_PTHREADS #ifndef hypre_MAX_THREADS #define hypre_MAX_THREADS 128 #endif #endif /*-------------------------------------------------------------------------- * Structures *--------------------------------------------------------------------------*/ #ifdef HYPRE_SEQUENTIAL typedef int MPI_Comm; #endif /*-------------------------------------------------------------------------- * HYPRE error user functions *--------------------------------------------------------------------------*/ /* Return the current hypre error flag */ int HYPRE_GetError(); /* Check if the given error flag contains the given error code */ int HYPRE_CheckError(int hypre_ierr, int hypre_error_code); /* Return the index of the argument (counting from 1) where argument error (HYPRE_ERROR_ARG) has occured */ int HYPRE_GetErrorArg(); /* Describe the given error flag in the given string */ void HYPRE_DescribeError(int hypre_ierr, char *descr); #ifdef __cplusplus } #endif #endif