Amesos Package Browser (Single Doxygen Collection)
Development
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
Amesos_ConfigDefs.h
Go to the documentation of this file.
1
// @HEADER
2
// ***********************************************************************
3
//
4
// Amesos: Direct Sparse Solver Package
5
// Copyright (2004) Sandia Corporation
6
//
7
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8
// license for use of this work by or on behalf of the U.S. Government.
9
//
10
// This library is free software; you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as
12
// published by the Free Software Foundation; either version 2.1 of the
13
// License, or (at your option) any later version.
14
//
15
// This library is distributed in the hope that it will be useful, but
16
// WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
23
// USA
24
// Questions? Contact Michael A. Heroux (maherou@sandia.gov)
25
//
26
// ***********************************************************************
27
// @HEADER
28
29
#ifndef AMESOS_CONFIGDEFS
30
#define AMESOS_CONFIGDEFS
31
32
#if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
33
#ifdef __GNUC__
34
#warning "The Amesos package is deprecated"
35
#endif
36
#endif
37
38
#ifdef PACKAGE
39
#undef PACKAGE
40
#endif
41
42
#ifdef PACKAGE_NAME
43
#undef PACKAGE_NAME
44
#endif
45
46
#ifdef PACKAGE_BUGREPORT
47
#undef PACKAGE_BUGREPORT
48
#endif
49
50
#ifdef PACKAGE_STRING
51
#undef PACKAGE_STRING
52
#endif
53
54
#ifdef PACKAGE_TARNAME
55
#undef PACKAGE_TARNAME
56
#endif
57
58
#ifdef PACKAGE_VERSION
59
#undef PACKAGE_VERSION
60
#endif
61
62
#ifdef VERSION
63
#undef VERSION
64
#endif
65
66
#ifdef F77_FUNC
67
#undef F77_FUNC
68
#endif
69
70
#include "Amesos_config.h"
71
#include "
Epetra_ConfigDefs.h
"
72
#include <vector>
73
74
#define AMESOS_PRINT(variable) { { \
75
if ( debug_ != 0) { std::cerr << "AMESOS_PRINT " << # variable << "= " << variable << ", " \
76
<< __FILE__ << ", line " << __LINE__ << std::endl; } }\
77
}
78
79
// prints out an error message if variable is not zero,
80
// and return this value. This is a copy of macro EPETRA_CHK_ERR,
81
// here modified so that the user sees an "AMESOS ERROR" instead
82
// of a possibly misleading "Epetra ERROR".
83
84
#define AMESOS_CHK_ERR(a) { { int amesos_err = a; \
85
if ((amesos_err < 0 && Epetra_Object::GetTracebackMode() > 0) || \
86
(amesos_err > 0 && Epetra_Object::GetTracebackMode() > 1)) { \
87
std::cerr << "AMESOS ERROR " << amesos_err << ", " \
88
<< __FILE__ << ", line " << __LINE__ << std::endl; }\
89
if (amesos_err != 0) return(amesos_err); }\
90
}
91
//#define AMESOS_CHK_ERR(amesos_err) { EPETRA_CHK_ERR( amesos_err ) }
92
93
// prints out an error message if variable is not zero,
94
// returns void
95
#define AMESOS_CHK_ERRV(amesos_err) \
96
{ if (amesos_err != 0) { \
97
std::cerr << "AMESOS ERROR " << amesos_err << ", " \
98
<< __FILE__ << ", line " << __LINE__ << std::endl; \
99
return; } }
100
101
// prints out an error message if variable is not zero,
102
// returns void
103
#define AMESOS_RETURN(amesos_err) \
104
{ \
105
if (amesos_err != 0) \
106
std::cerr << "AMESOS ERROR " << amesos_err << ", " \
107
<< __FILE__ << ", line " << __LINE__ << std::endl; \
108
return(amesos_err); }
109
110
111
#endif
Epetra_ConfigDefs.h
Generated on Fri Dec 20 2024 09:19:16 for Amesos Package Browser (Single Doxygen Collection) by
1.8.5