1 #ifndef INCFLO_IF_LIST_
2 #define INCFLO_IF_LIST_
5 #include <AMReX_Vector.H>
35 amrex::Real vmax =
m_ifs[0](p);
36 for(
int i = 1; i <
m_ifs.size(); i++)
38 amrex::Real vcur =
m_ifs[i](p);
115 template <
class F1,
class F2>
127 AMREX_ALWAYS_ASSERT_WITH_MESSAGE(f1.is_active() || f2.is_active(),
128 "You must specify at least one active implicit function.");
169 template <
class F1,
class F2>
181 AMREX_ALWAYS_ASSERT_WITH_MESSAGE(f1.is_active() || f2.is_active(),
182 "You must specify at least one active implicit function.");
Definition: ERF_EBIF.H:78
CIF & operator=(CIF &&rhs) noexcept=default
CIF(F &&f, bool a_active)
Definition: ERF_EBIF.H:81
bool m_active
Definition: ERF_EBIF.H:105
bool is_active() const
Definition: ERF_EBIF.H:99
void set_active(bool a_active)
Definition: ERF_EBIF.H:95
CIF & operator=(const CIF &rhs)=default
CIF(CIF &&rhs) noexcept=default
CIF(const CIF &rhs)=default
Definition: ERF_EBIF.H:171
F1 m_f1
Definition: ERF_EBIF.H:210
amrex::Real operator()(const amrex::RealArray &p) const
Definition: ERF_EBIF.H:198
IntersectionCIF(IntersectionCIF &&rhs) noexcept=default
bool is_active() const
Definition: ERF_EBIF.H:193
IntersectionCIF & operator=(IntersectionCIF &&rhs) noexcept=default
bool f2_active
Definition: ERF_EBIF.H:213
IntersectionCIF(const F1 &f1, const F2 &f2)
Definition: ERF_EBIF.H:175
~IntersectionCIF()=default
bool f1_active
Definition: ERF_EBIF.H:212
IntersectionCIF & operator=(const IntersectionCIF &rhs)=default
F2 m_f2
Definition: ERF_EBIF.H:211
IntersectionCIF(const IntersectionCIF &rhs)=default
Definition: ERF_EBIF.H:117
UnionCIF & operator=(UnionCIF &&rhs) noexcept=default
F2 m_f2
Definition: ERF_EBIF.H:157
bool f1_active
Definition: ERF_EBIF.H:158
UnionCIF(const UnionCIF &rhs)=default
F1 m_f1
Definition: ERF_EBIF.H:156
bool f2_active
Definition: ERF_EBIF.H:159
UnionCIF & operator=(const UnionCIF &rhs)=default
UnionCIF(UnionCIF &&rhs) noexcept=default
UnionCIF(const F1 &f1, const F2 &f2)
Definition: ERF_EBIF.H:121
amrex::Real operator()(const amrex::RealArray &p) const
Definition: ERF_EBIF.H:144
bool is_active() const
Definition: ERF_EBIF.H:139
Definition: ERF_EBIF.H:18
bool is_empty() const
Definition: ERF_EBIF.H:26
amrex::Real operator()(const amrex::RealArray &p) const
Definition: ERF_EBIF.H:31
UnionListIF(const amrex::Vector< F > &a_ifs)
Definition: ERF_EBIF.H:21
amrex::Vector< F > m_ifs
Definition: ERF_EBIF.H:56
bool empty
Definition: ERF_EBIF.H:57