Loading...
Searching...
No Matches
defines.h
// Copyright (C) 2009-2011 Johan Hake
//
// This file is part of DOLFINx (https://www.fenicsproject.org)
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#pragma once
#include <string>
namespace dolfinx
{
std::string version();
std::string ufcx_signature();
std::string git_commit_hash();
consteval bool has_debug()
{
#ifndef NDEBUG
return true;
#else
return false;
#endif
}
consteval bool has_petsc()
{
#ifdef HAS_PETSC
return true;
#else
return false;
#endif
}
consteval bool has_slepc()
{
#ifdef HAS_SLEPC
return true;
#else
return false;
#endif
}
consteval bool has_parmetis()
{
#ifdef HAS_PARMETIS
return true;
#else
return false;
#endif
}
consteval bool has_kahip()
{
#ifdef HAS_KAHIP
return true;
#else
return false;
#endif
}
consteval bool has_adios2()
{
#ifdef HAS_ADIOS2
return true;
#else
return false;
#endif
}
consteval bool has_ptscotch()
{
#ifdef HAS_PTSCOTCH
return true;
#else
return false;
#endif
}
consteval bool has_complex_ufcx_kernels()
{
#ifdef DOLFINX_NO_STDC_COMPLEX_KERNELS
return false;
#else
return true;
#endif
}
} // namespace dolfinx
dolfinx
Top-level namespace.
Definition defines.h:12
dolfinx::has_adios2
consteval bool has_adios2()
Return true if DOLFINX is compiled with ADIOS2.
Definition defines.h:76
dolfinx::has_petsc
consteval bool has_petsc()
Return true if DOLFINx is compiled with PETSc.
Definition defines.h:36
dolfinx::has_debug
consteval bool has_debug()
Definition defines.h:26
dolfinx::has_slepc
consteval bool has_slepc()
Return true if DOLFINx is compiled with SLEPc.
Definition defines.h:46
dolfinx::has_ptscotch
consteval bool has_ptscotch()
Return true if DOLFINX is compiled with PT-SCOTCH.
Definition defines.h:86
dolfinx::git_commit_hash
std::string git_commit_hash()
Definition defines.cpp:14
dolfinx::ufcx_signature
std::string ufcx_signature()
Return UFC signature string.
Definition defines.cpp:12
dolfinx::has_parmetis
consteval bool has_parmetis()
Return true if DOLFINx is compiled with ParMETIS.
Definition defines.h:56
dolfinx::has_kahip
consteval bool has_kahip()
Return true if DOLFINx is compiled with KaHIP.
Definition defines.h:66
dolfinx::version
std::string version()
Return DOLFINx version string.
Definition defines.cpp:10
dolfinx::has_complex_ufcx_kernels
consteval bool has_complex_ufcx_kernels()
Definition defines.h:99