Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::EB2::ComplementIF< F > Class Template Reference

Implicit function wrapper that swaps interior/exterior. More...

#include <AMReX_EB2_IF_Complement.H>

Public Member Functions

 ComplementIF (F a_f)
 Store the child implicit function to be complemented.
 
Real operator() (const RealArray &p) const noexcept
 Evaluate the complement in array form.
 
template<class U = F, std::enable_if_t< IsGPUable< U >::value, int > = 0>
__host__ __device__ Real operator() (Real x, Real y, Real z) const noexcept
 Evaluate the complement.
 

Protected Attributes

F m_f
 

Detailed Description

template<class F>
class amrex::EB2::ComplementIF< F >

Implicit function wrapper that swaps interior/exterior.

Constructor & Destructor Documentation

◆ ComplementIF()

template<class F >
amrex::EB2::ComplementIF< F >::ComplementIF ( F  a_f)
inline

Store the child implicit function to be complemented.

Member Function Documentation

◆ operator()() [1/2]

template<class F >
Real amrex::EB2::ComplementIF< F >::operator() ( const RealArray p) const
inlinenoexcept

Evaluate the complement in array form.

◆ operator()() [2/2]

template<class F >
template<class U = F, std::enable_if_t< IsGPUable< U >::value, int > = 0>
__host__ __device__ Real amrex::EB2::ComplementIF< F >::operator() ( Real  x,
Real  y,
Real  z 
) const
inlinenoexcept

Evaluate the complement.

Member Data Documentation

◆ m_f

template<class F >
F amrex::EB2::ComplementIF< F >::m_f
protected

The documentation for this class was generated from the following file: