Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_BoundCond.H
Go to the documentation of this file.
1
2#ifndef AMREX_BOUNDCOND_H_
3#define AMREX_BOUNDCOND_H_
4#include <AMReX_Config.H>
5
6#include <AMReX_BLassert.H>
8
14namespace amrex {
15
25{
26public:
27 //
29 BoundCond () noexcept = default;
30 //
32 BoundCond (int _bctype) noexcept : bctype(_bctype) {}
33 //
36 operator int () const noexcept
37 {
38 BL_ASSERT(bctype != -1);
39 return bctype;
40 }
41 //
43 BoundCond& operator= (const int _bctype) noexcept
44 {
45 bctype = _bctype;
46 return *this;
47 }
48private:
49 //
51 int bctype = -1;
52};
53
54}
55
56#endif /*_BOUNDCOND_H_*/
#define BL_ASSERT(EX)
Definition AMReX_BLassert.H:39
#define AMREX_GPU_HOST_DEVICE
Definition AMReX_GpuQualifiers.H:20
Maintain an identifier for boundary condition types.
Definition AMReX_BoundCond.H:25
BoundCond & operator=(const int _bctype) noexcept
Set index of boundary condition type to _bctype.
Definition AMReX_BoundCond.H:43
BoundCond() noexcept=default
Initializes boundary condition type to default.
Definition AMReX_Amr.cpp:49
const int[]
Definition AMReX_BLProfiler.cpp:1664