GooseEPM v0.11.0
Loading...
Searching...
No Matches
config.h File Reference

Go to the source code of this file.

Namespaces

namespace  GooseEPM
 Elasto-plastic model.
 
namespace  GooseEPM::array_type
 Container type.
 

Macros

#define GOOSEEPM_ASSERT(expr, assertion)
 All assertions are implementation as::
 
#define GOOSEEPM_REQUIRE(expr, assertion)    GOOSEEPM_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)
 Assertion that cannot be switched off.
 
#define GOOSEEPM_WIP_ASSERT(expr, assertion)    GOOSEEPM_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)
 Assertion that concerns temporary implementation limitations.
 
#define GOOSEEPM_WARNING(message)   GOOSEEPM_WARNING_IMPL(message, __FILE__, __LINE__, __FUNCTION__)
 All warnings are implemented as::
 
#define GOOSEEPM_WARNING_PYTHON(message)
 All warnings specific to the Python API are implemented as::
 

Typedefs

template<typename T , size_t N>
using GooseEPM::array_type::tensor = xt::xtensor< T, N >
 Fixed (static) rank array.
 

Detailed Description

License: This project is released under the GNU Public License (MIT).

Definition in file config.h.

Macro Definition Documentation

◆ GOOSEEPM_ASSERT

#define GOOSEEPM_ASSERT (   expr,
  assertion 
)

All assertions are implementation as::

GOOSEEPM_ASSERT(...)

They can be enabled by::

#define GOOSEEPM_ENABLE_ASSERT

(before including GooseEPM). The advantage is that:

  • File and line-number are displayed if the assertion fails.
  • GooseEPM's assertions can be enabled/disabled independently from those of other libraries.
Exceptions
std::runtime_error

Definition at line 53 of file config.h.

◆ GOOSEEPM_REQUIRE

#define GOOSEEPM_REQUIRE (   expr,
  assertion 
)     GOOSEEPM_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)

Assertion that cannot be switched off.

Implement assertion by::

GOOSEEPM_REQUIRE(...)
Exceptions
std::runtime_error

Definition at line 63 of file config.h.

◆ GOOSEEPM_WARNING

#define GOOSEEPM_WARNING (   message)    GOOSEEPM_WARNING_IMPL(message, __FILE__, __LINE__, __FUNCTION__)

All warnings are implemented as::

GOOSEEPM_WARNING(...)

They can be disabled by::

#define GOOSEEPM_DISABLE_WARNING

Definition at line 89 of file config.h.

◆ GOOSEEPM_WARNING_PYTHON

#define GOOSEEPM_WARNING_PYTHON (   message)

All warnings specific to the Python API are implemented as::

GOOSEEPM_WARNING_PYTHON(...)

They can be enabled by::

#define GOOSEEPM_ENABLE_WARNING_PYTHON

Definition at line 105 of file config.h.

◆ GOOSEEPM_WIP_ASSERT

#define GOOSEEPM_WIP_ASSERT (   expr,
  assertion 
)     GOOSEEPM_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)

Assertion that concerns temporary implementation limitations.

Implement assertion by::

GOOSEEPM_WIP_ASSERT(...)
Exceptions
std::runtime_error

Definition at line 74 of file config.h.