DOLFIN-X
DOLFIN-X C++ interface
defines.h
1 // Copyright (C) 2009-2011 Johan Hake
2 //
3 // This file is part of DOLFINX (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <string>
10 
11 namespace dolfinx
12 {
13 
15 std::string version();
16 
18 std::string ufc_signature();
19 
22 std::string git_commit_hash();
23 
26 bool has_debug();
27 
30 bool has_petsc_complex();
31 
33 bool has_slepc();
34 
36 bool has_scotch();
37 
39 bool has_parmetis();
40 
42 bool has_kahip();
43 
44 } // namespace dolfinx
dolfinx::version
std::string version()
Return DOLFINX version string.
Definition: defines.cpp:13
dolfinx::has_kahip
bool has_kahip()
Return true if DOLFINX is compiled with KaHIP.
Definition: defines.cpp:58
dolfinx::has_debug
bool has_debug()
Return true if DOLFINX is compiled in debugging mode, i.e., with assertions on.
Definition: defines.cpp:22
dolfinx::has_petsc_complex
bool has_petsc_complex()
Return true if DOLFINX is configured with PETSc compiled with scalars represented as complex numbers.
Definition: defines.cpp:31
dolfinx
Low-level methods for reading XDMF files.
Definition: defines.h:11
dolfinx::has_scotch
bool has_scotch()
Return true if DOLFINX is compiled with Scotch.
dolfinx::git_commit_hash
std::string git_commit_hash()
Return git changeset hash (returns "unknown" if changeset is not known)
Definition: defines.cpp:17
dolfinx::has_parmetis
bool has_parmetis()
Return true if DOLFINX is compiled with ParMETIS.
Definition: defines.cpp:49
dolfinx::ufc_signature
std::string ufc_signature()
Return UFC signature string.
Definition: defines.cpp:15
dolfinx::has_slepc
bool has_slepc()
Return true if DOLFINX is compiled with SLEPc.
Definition: defines.cpp:40