BELFEM 0.9.4
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
armadillo.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_ARMADILLO_HPP
13#define BELFEM_ARMADILLO_HPP
14
15#ifdef BELFEM_GCC
16#pragma GCC diagnostic push
17#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
18#endif
19
20#define ARMA_USE_BLAS
21#define ARMA_USE_LAPACK
22#define ARMA_USE_ARPACK
23//#define ARMA_USE_SUPERLU
24#define ARMA_USE_WRAPPER
25
26// Bounds and size-conformance checks follow the build mode, as Blaze's BLAZE_USER_ASSERTION does
27// in blaze_config.hpp, on the predicate that defines BELFEM_ASSERT in assert.hpp: on in debug,
28// off in release. ARMA_NO_DEBUG would not do this; it only drops ARMA_DEBUG. ARMA_WARN_LEVEL 1
29// silences the per-translation-unit note Armadillo emits for the disabled checks and drops its
30// level-2 runtime warnings in release.
31#if !defined( NDEBUG ) || defined( DEBUG )
32#else
33# ifndef ARMA_DONT_CHECK_CONFORMANCE
34# define ARMA_DONT_CHECK_CONFORMANCE
35# endif
36# ifndef ARMA_WARN_LEVEL
37# define ARMA_WARN_LEVEL 1
38# endif
39#endif
40
41#ifdef OMP
42#define ARMA_USE_OPENMP
43#endif
44
45#ifdef BELFEM_MKL
46#define ARMA_DONT_USE_FORTRAN_HIDDEN_ARGS
47//#define ARMA_USE_MKL_ALLOC
48#endif
49
50#include <armadillo>
51
52#ifdef BELFEM_GCC
53#pragma GCC diagnostic pop
54#endif
55
56#endif //BELFEM_ARMADILLO_HPP