1998-10-16 07:41:53 +08:00
|
|
|
/*BHEADER**********************************************************************
|
2006-07-28 07:26:57 +08:00
|
|
|
* Copyright (c) 2006 The Regents of the University of California.
|
|
|
|
|
* Produced at the Lawrence Livermore National Laboratory.
|
2006-09-27 06:53:11 +08:00
|
|
|
* Written by the HYPRE team, UCRL-CODE-222953.
|
2006-07-28 07:26:57 +08:00
|
|
|
* All rights reserved.
|
1998-10-16 07:41:53 +08:00
|
|
|
*
|
2006-07-28 07:26:57 +08:00
|
|
|
* This file is part of HYPRE (see http://www.llnl.gov/CASC/hypre/).
|
|
|
|
|
* Please see the COPYRIGHT_and_LICENSE file for the copyright notice,
|
|
|
|
|
* disclaimer and the GNU Lesser General Public License.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the GNU General Public License (as published by the Free
|
|
|
|
|
* Software Foundation) version 2.1 dated February 1999.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the terms and conditions of the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-10-16 07:41:53 +08:00
|
|
|
*
|
|
|
|
|
* $Revision$
|
2006-07-28 07:26:57 +08:00
|
|
|
***********************************************************************EHEADER*/
|
|
|
|
|
|
1998-10-16 07:41:53 +08:00
|
|
|
/******************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* Header file for HYPRE_utilities library
|
|
|
|
|
*
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef HYPRE_UTILITIES_HEADER
|
|
|
|
|
#define HYPRE_UTILITIES_HEADER
|
|
|
|
|
|
1999-09-03 02:21:43 +08:00
|
|
|
#include <HYPRE_config.h>
|
|
|
|
|
|
1998-10-16 07:41:53 +08:00
|
|
|
#ifndef HYPRE_SEQUENTIAL
|
|
|
|
|
#include "mpi.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-06-16 07:56:19 +08:00
|
|
|
#ifdef HYPRE_USING_OPENMP
|
|
|
|
|
#include <omp.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
1998-10-16 07:41:53 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2000-04-27 07:41:53 +08:00
|
|
|
/*
|
|
|
|
|
* Before a version of HYPRE goes out the door, increment the version
|
|
|
|
|
* number and check in this file (for CVS to substitute the Date).
|
|
|
|
|
*/
|
2004-01-16 09:38:27 +08:00
|
|
|
#define HYPRE_Version() "PACKAGE_STRING $Date$ Compiled: " __DATE__ " " __TIME__
|
2000-04-27 07:41:53 +08:00
|
|
|
|
1999-02-11 00:47:41 +08:00
|
|
|
#ifdef HYPRE_USE_PTHREADS
|
|
|
|
|
#ifndef hypre_MAX_THREADS
|
|
|
|
|
#define hypre_MAX_THREADS 128
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
1998-10-16 07:41:53 +08:00
|
|
|
/*--------------------------------------------------------------------------
|
|
|
|
|
* Structures
|
|
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#ifdef HYPRE_SEQUENTIAL
|
2000-09-06 02:35:48 +08:00
|
|
|
typedef int MPI_Comm;
|
1998-10-16 07:41:53 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------
|
2006-02-07 07:49:24 +08:00
|
|
|
* HYPRE error user functions
|
1998-10-16 07:41:53 +08:00
|
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
|
|
2006-02-07 07:49:24 +08:00
|
|
|
/* Return the current hypre error flag */
|
|
|
|
|
int HYPRE_GetError();
|
2006-09-14 04:46:11 +08:00
|
|
|
|
|
|
|
|
/* 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 */
|
2006-02-07 07:49:24 +08:00
|
|
|
int HYPRE_GetErrorArg();
|
|
|
|
|
|
2006-09-14 04:46:11 +08:00
|
|
|
/* Describe the given error flag in the given string */
|
|
|
|
|
void HYPRE_DescribeError(int hypre_ierr, char *descr);
|
|
|
|
|
|
1998-10-16 07:41:53 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|