source: CIVL/examples/mpi-omp/AMG2013/utilities/HYPRE_utilities.h

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[2aa6644]1/*BHEADER**********************************************************************
2 * Copyright (c) 2008, Lawrence Livermore National Security, LLC.
3 * Produced at the Lawrence Livermore National Laboratory.
4 * This file is part of HYPRE. See file COPYRIGHT for details.
5 *
6 * HYPRE is free software; you can redistribute it and/or modify it under the
7 * terms of the GNU Lesser General Public License (as published by the Free
8 * Software Foundation) version 2.1 dated February 1999.
9 *
10 * $Revision: 2.4 $
11 ***********************************************************************EHEADER*/
12
13/******************************************************************************
14 *
15 * Header file for HYPRE_utilities library
16 *
17 *****************************************************************************/
18
19#include "HYPRE.h"
20
21#ifndef HYPRE_UTILITIES_HEADER
22#define HYPRE_UTILITIES_HEADER
23
24#ifndef HYPRE_SEQUENTIAL
25#include "mpi.h"
26#endif
27
28#ifdef HYPRE_USING_OPENMP
29#include <omp.h>
30#endif
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36/*
37 * Before a version of HYPRE goes out the door, increment the version
38 * number and check in this file (for CVS to substitute the Date).
39 */
40#define HYPRE_Version() "PACKAGE_STRING $Date: 2009/01/09 23:02:06 $ Compiled: " __DATE__ " " __TIME__
41
42#ifdef HYPRE_USE_PTHREADS
43#ifndef hypre_MAX_THREADS
44#define hypre_MAX_THREADS 128
45#endif
46#endif
47
48/*--------------------------------------------------------------------------
49 * Structures
50 *--------------------------------------------------------------------------*/
51
52#ifdef HYPRE_SEQUENTIAL
53typedef int MPI_Comm;
54#endif
55
56/*--------------------------------------------------------------------------
57 * HYPRE error user functions
58 *--------------------------------------------------------------------------*/
59
60/* Return the current hypre error flag */
61int HYPRE_GetError();
62
63/* Check if the given error flag contains the given error code */
64int HYPRE_CheckError(int hypre_ierr, int hypre_error_code);
65
66/* Return the index of the argument (counting from 1) where
67 argument error (HYPRE_ERROR_ARG) has occured */
68int HYPRE_GetErrorArg();
69
70/* Describe the given error flag in the given string */
71void HYPRE_DescribeError(int hypre_ierr, char *descr);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif
Note: See TracBrowser for help on using the repository browser.