#include <algorithm>
#include <string>
#include <xtensor/xtensor.hpp>
Go to the source code of this file.
- Copyright
- Copyright 2020. Tom de Geus. All rights reserved.
- License: This project is released under the GNU Public License (MIT).
Definition in file config.h.
◆ FRICTIONQPOTFEM_ASSERT
#define FRICTIONQPOTFEM_ASSERT |
( |
|
expr | ) |
|
All assertions are implementation as::
FRICTIONQPOTFEM_ASSERT(...)
They can be enabled by::
#define FRICTIONQPOTFEM_ENABLE_ASSERT
(before including FrictionQPotFEM). The advantage is that:
- File and line-number are displayed if the assertion fails.
- FrictionQPotFEM's assertions can be enabled/disabled independently from those of other libraries.
- Exceptions
-
Definition at line 62 of file config.h.
◆ FRICTIONQPOTFEM_REQUIRE
#define FRICTIONQPOTFEM_REQUIRE |
( |
|
expr | ) |
FRICTIONQPOTFEM_ASSERT_IMPL(expr, __FILE__, __LINE__) |
Assertions that cannot be disabled.
- Exceptions
-
Definition at line 70 of file config.h.
◆ FRICTIONQPOTFEM_VERSION
#define FRICTIONQPOTFEM_VERSION "@PROJECT_VERSION@" |
Current version.
Either:
Note that both CMakeLists.txt
and setup.py
will construct the version using setuptools_scm
. Tip: use the environment variable SETUPTOOLS_SCM_PRETEND_VERSION
to overwrite the automatic version.
Definition at line 132 of file config.h.
◆ FRICTIONQPOTFEM_WARNING
#define FRICTIONQPOTFEM_WARNING |
( |
|
message | ) |
FRICTIONQPOTFEM_WARNING_IMPL(message, __FILE__, __LINE__) |
All warnings are implemented as::
FRICTIONQPOTFEM_WARNING(...)
They can be disabled by::
#define FRICTIONQPOTFEM_DISABLE_WARNING
Definition at line 91 of file config.h.
◆ FRICTIONQPOTFEM_WARNING_PYTHON
#define FRICTIONQPOTFEM_WARNING_PYTHON |
( |
|
message | ) |
|
All warnings specific to the Python API are implemented as::
FRICTIONQPOTFEM_WARNING_PYTHON(...)
They can be enabled by::
#define FRICTIONQPOTFEM_ENABLE_WARNING_PYTHON
Definition at line 107 of file config.h.
◆ FRICTIONQPOTFEM_WIP
#define FRICTIONQPOTFEM_WIP |
( |
|
expr | ) |
FRICTIONQPOTFEM_WIP_IMPL(expr, __FILE__, __LINE__) |
Assertions on a implementation limitation (that in theory can be resolved)
- Exceptions
-
Definition at line 77 of file config.h.