Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_BLassert.H
Go to the documentation of this file.
1
2
#ifndef AMREX_BLASSERT_H_
3
#define AMREX_BLASSERT_H_
4
#include <AMReX_Config.H>
5
6
#include <
AMReX.H
>
7
27
#ifdef AMREX_ASSERT
28
#undef AMREX_ASSERT
29
#endif
30
31
#ifdef BL_ASSERT
32
#undef BL_ASSERT
33
#endif
34
35
#if !defined(AMREX_DEBUG) && !defined(AMREX_USE_ASSERTION)
36
37
#define AMREX_ASSERT_WITH_MESSAGE(EX,MSG) ((void)0)
38
#define AMREX_ASSERT(EX) ((void)0)
39
#define BL_ASSERT(EX) ((void)0)
40
41
#else
42
43
#define AMREX_ASSERT_WITH_MESSAGE(EX,MSG) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__ , MSG)
44
#define AMREX_ASSERT(EX) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__)
45
#define BL_ASSERT(EX) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__)
46
47
#endif
48
49
#define AMREX_ALWAYS_ASSERT_WITH_MESSAGE(EX,MSG) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__ , MSG)
50
#define AMREX_ALWAYS_ASSERT(EX) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__)
51
52
53
#if !defined(AMREX_USE_GPU) || !defined(AMREX_DEBUG) && !defined(AMREX_USE_ASSERTION)
54
#define AMREX_GPU_ASSERT(EX) ((void)0)
55
#else
56
#define AMREX_GPU_ASSERT(EX) (EX)?((void)0):amrex::Assert( # EX , __FILE__, __LINE__)
57
#endif
58
59
#endif
/* AMREX_BLASSERT_H_ */
AMReX.H
Runtime initialization/finalization helpers and global diagnostics.
Src
Base
AMReX_BLassert.H
Generated by
1.9.8