This is a permutation where only two components are swapped. More...
#include <AMReX_NonLocalBC.H>
Public Member Functions | |
constexpr int | operator() (int i) const noexcept |
Swaps indices I and J. More... | |
This is a permutation where only two components are swapped.
This class is used with MapComponents to define fab projections that swap components on FABs, e.g. for velocity components. The template arguments I, J should be greater or equal to -1. The value -1 indicates run-time values and increase the object size of this function object.
|
inlineconstexprnoexcept |
Swaps indices I and J.