![]() |
Block-Structured AMR Software Framework
|
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 CompI and CompJ. | |
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 CompI, CompJ 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 CompI and CompJ.