Belos Version of the Day
Loading...
Searching...
No Matches
BelosConfigDefs.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Belos: Block Linear Solvers Package
4//
5// Copyright 2004-2016 NTESS and the Belos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef BELOS_CONFIGDEFS_HPP
11#define BELOS_CONFIGDEFS_HPP
12
17#ifndef __cplusplus
18#define __cplusplus
19#endif
20
21#ifndef TRILINOS_NO_CONFIG_H
22
23/*
24 * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
25 * be undef'd here to avoid warnings when this file is included from another package.
26 * KL 11/25/02
27 */
28#ifdef PACKAGE
29#undef PACKAGE
30#endif
31
32#ifdef PACKAGE_NAME
33#undef PACKAGE_NAME
34#endif
35
36#ifdef PACKAGE_BUGREPORT
37#undef PACKAGE_BUGREPORT
38#endif
39
40#ifdef PACKAGE_STRING
41#undef PACKAGE_STRING
42#endif
43
44#ifdef PACKAGE_TARNAME
45#undef PACKAGE_TARNAME
46#endif
47
48#ifdef PACKAGE_VERSION
49#undef PACKAGE_VERSION
50#endif
51
52#ifdef VERSION
53#undef VERSION
54#endif
55
56#include <Belos_config.h>
57
58#include "Teuchos_ConfigDefs.hpp"
59
60#else
61
62#include <iostream>
63#include <string>
64#include <stdexcept>
65#include <vector>
66
67#if defined(SGI) || defined(SGI64) || defined(SGI32) || defined(CPLANT) || defined(TFLOP)
68
69#include <stdlib.h>
70#include <stdio.h>
71#include <assert.h>
72#include <math.h>
73#include <complex.h>
74
75#else
76
77#include <cstdlib>
78#include <cstdio>
79#include <cassert>
80#include <cmath>
81#include <complex>
82
83#endif
84
85#endif /*ndef HAVE_CONFIG_H*/
86
87
88/* Define some macros */
89#define BELOS_MAX(x,y) (( (x) > (y) ) ? (x) : (y) ) /* max function */
90#define BELOS_MIN(x,y) (( (x) < (y) ) ? (x) : (y) ) /* min function */
91#define BELOS_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 ) /* sign function */
92
93namespace Belos { std::string Belos_Version(); }
94
95// This include file defines macros to avoid warnings under CUDA. See github issue #1133.
96#include "Teuchos_CompilerCodeTweakMacros.hpp"
97
98#endif /* BELOS_CONFIGDEFS_HPP */
std::string Belos_Version()

Generated for Belos by doxygen 1.9.8