MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
maia::dg::bc Namespace Reference

Namespaces

namespace  factory
 

Classes

struct  Type
 Simple type-to-type mapper for function overloading. More...
 

Functions

template<class Functor , class Class , class IdType , class... Args>
void loop (Functor &&fun, Class *object, const IdType begin, const IdType end, Args... args)
 

Function Documentation

◆ loop()

template<class Functor , class Class , class IdType , class... Args>
void maia::dg::bc::loop ( Functor &&  fun,
Class *  object,
const IdType  begin,
const IdType  end,
Args...  args 
)

Definition at line 219 of file dgcartesianboundarycondition.h.

219 {
220#ifdef _OPENMP
221#pragma omp parallel for
222#endif
223 for(IdType i = begin; i < end; i++) {
224 (object->*fun)(i, std::forward<Args>(args)...);
225 }
226}