Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
feelslepc.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*-
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2011-11-13
7 
8  Copyright (C) 2011 Université Joseph Fourier (Grenoble I)
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __FeelSLEPc_H
30 #define __FeelSLEPc_H 1
31 
33 
34 #if defined( FEELPP_HAS_SLEPC )
35 # include <slepc.h>
36 #endif /* FEELPP_HAS_SLEPC */
37 
38 
39 
40 namespace Feel
41 {
42 namespace SLEPc
43 {
44 FEELPP_STRONG_INLINE int EPSDestroy ( EPS& eps )
45 {
46 #if (PETSC_VERSION_MAJOR == 3) && (PETSC_VERSION_MINOR >= 2)
47  return ::EPSDestroy( &eps );
48 #else
49  return ::EPSDestroy( eps );
50 #endif
51 }
52 
53 } // slepc
54 } // Feel
55 
56 #endif /* __FeelSLEPc_H */
57 

Generated on Fri Oct 25 2013 14:24:10 for Feel++ by doxygen 1.8.4