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
functionspetsc.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 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Vincent Chabannes <vincent.chabannes@imag.fr>
6  Date: 2011-08-24
7 
8  Copyright (C) 2011 Universite 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 3.0 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 __FunctionsPetsc_H
30 #define __FunctionsPetsc_H 1
31 
32 #include <feel/feelcore/feel.hpp>
33 
34 // Petsc include files.
35 #if defined( FEELPP_HAS_PETSC_H )
36 
37 #ifndef USE_COMPLEX_NUMBERS
38 extern "C" {
39 # include <petscversion.h>
40 # include <petsc.h>
41 # include <petscsnes.h>
42 }
43 #else
44 # include <petscversion.h>
45 # include <petsc.h>
46 # include <petscsnes.h>
47 #endif
48 
49 #include <feel/feelalg/enums.hpp>
50 
51 namespace Feel
52 {
53 
54 MatSolverPackageType matSolverPackageEnumType(std::string const& type );
55 void PetscPCFactorSetMatSolverPackage( PC & pc, MatSolverPackageType mspackt );
56 
57 std::string PetscConvertKSPReasonToString( KSPConvergedReason reason );
58 std::string PetscConvertSNESReasonToString( SNESConvergedReason reason );
59 
60 MatStructure PetscGetMatStructureEnum( Feel::MatrixStructure matStruc );
61 
62 } // namespace Feel
63 
64 #endif
65 
66 #endif

Generated on Sun Oct 20 2013 08:24:59 for Feel++ by doxygen 1.8.4