DOLFIN
DOLFIN C++ interface
defines.h
1 // Copyright (C) 2009-2011 Johan Hake
2 //
3 // This file is part of DOLFIN.
4 //
5 // DOLFIN is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // DOLFIN is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // Modified by Anders Logg, 2011
19 // Modified by Garth N. Wells, 2013
20 //
21 // First added: 2009-09-03
22 // Last changed: 2014-08-11
23 
24 #ifndef __DOLFIN_DEFINES_H
25 #define __DOLFIN_DEFINES_H
26 
27 #include <string>
28 
29 namespace dolfin
30 {
31 
33  std::string dolfin_version();
34 
36  std::string ufc_signature();
37 
40  std::string git_commit_hash();
41 
43  std::size_t sizeof_la_index();
44 
47  bool has_debug();
48 
50  bool has_openmp();
51 
53  bool has_mpi();
54 
56  bool has_petsc();
57 
59  bool has_slepc();
60 
62  bool has_scotch();
63 
65  bool has_sundials();
66 
68  bool has_umfpack();
69 
71  bool has_cholmod();
72 
74  bool has_parmetis();
75 
77  bool has_zlib();
78 
80  bool has_hdf5();
81 
83  bool has_hdf5_parallel();
84 
85 }
86 
87 #endif
std::size_t sizeof_la_index()
Return sizeof the dolfin::la_index type.
Definition: defines.cpp:51
bool has_debug()
Definition: defines.cpp:56
std::string dolfin_version()
Return DOLFIN version string.
Definition: defines.cpp:36
bool has_petsc()
Return true if DOLFIN is compiled with PETSc.
Definition: defines.cpp:83
bool has_parmetis()
Return true if DOLFIN is compiled with ParMETIS.
Definition: defines.cpp:137
Definition: adapt.h:29
bool has_hdf5()
Return true if DOLFIN is compiled with HDF5.
Definition: defines.cpp:155
std::string ufc_signature()
Return UFC signature string.
Definition: defines.cpp:41
bool has_scotch()
Return true if DOLFIN is compiled with Scotch.
Definition: defines.cpp:101
bool has_cholmod()
Return true if DOLFIN is compiled with Cholmod.
Definition: defines.cpp:128
bool has_hdf5_parallel()
Return true if DOLFIN is compiled with Parallel HDF5.
Definition: defines.cpp:164
bool has_slepc()
Return true if DOLFIN is compiled with SLEPc.
Definition: defines.cpp:92
bool has_mpi()
Return true if DOLFIN is compiled with MPI.
Definition: defines.cpp:74
bool has_zlib()
Return true if DOLFIN is compiled with ZLIB.
Definition: defines.cpp:146
std::string git_commit_hash()
Definition: defines.cpp:46
bool has_sundials()
Return true if DOLFIN is compiled with SUNDIALS.
Definition: defines.cpp:110
bool has_umfpack()
Return true if DOLFIN is compiled with Umfpack.
Definition: defines.cpp:119
bool has_openmp()
Return true if DOLFIN is compiled with OpenMP.
Definition: defines.cpp:65