![]() |
Block-Structured AMR Software Framework
|
Helper routines for manipulating BaseFab data and related arrays. More...
Go to the source code of this file.
Namespaces | |
| namespace | amrex |
Functions | |
| template<class Tto , class Tfrom > | |
| __host__ __device__ void | amrex::cast (BaseFab< Tto > &tofab, BaseFab< Tfrom > const &fromfab, Box const &bx, SrcComp scomp, DestComp dcomp, NumComps ncomp) noexcept |
| Cast components from one BaseFab to another over a region. | |
| template<typename STRUCT , typename F > requires ((sizeof(STRUCT)<=36*8) && std::is_trivially_copyable_v< STRUCT > && std::is_trivially_destructible_v<STRUCT>) | |
| void | amrex::fill (BaseFab< STRUCT > &aos_fab, F const &f) |
| Fill an array-of-structs BaseFab by invoking a functor per cell. | |
| template<typename T > | |
| void | amrex::transposeCtoF (T const *pi, T *po, int nx, int ny, int nz) |
| Transpose a 3D array of shape (nx, ny, nz) from C-order to Fortran-order storage. | |
| template<typename T > | |
| void | amrex::transposeCtoF (T const *pi, T *po, int nx, int ny) |
| Transpose a 2D array of shape (nx, ny) from C-order to Fortran-order storage. | |
Helper routines for manipulating BaseFab data and related arrays.