Class MBUtilities contains utility functions related to multiblock functionality.
More...
#include <MBUtilities.h>
|
| static void | translateAndCopyData (hier::Patch< DIM > &dst_patch, const int dst_id, const hier::Patch< DIM > &src_patch, const int src_id, const hier::IntVector< DIM > &shift, const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier rotate) |
| | Copy patch data from src to dst using the shift and rotate arguments. More...
|
| |
| static void | translateAndFillData (hier::Patch< DIM > &dst_patch, const int dst_id, const hier::Patch< DIM > &src_patch, const int src_id, const hier::IntVector< DIM > &shift, const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier rotate) |
| | Fill patch data from src to dst using the shift and rotate arguments. More...
|
| |
| static void | rotateIndex (int *index, const typename MultiblockPatchHierarchy< DIM >::RotationIdentifier rotation) |
| | rotate an index from one index space to another More...
|
| |
template<int DIM>
class SAMRAI::hier::MBUtilities< DIM >
- See also
- hier::MultiblockPatchHierarchy
◆ MBUtilities()
◆ ~MBUtilities()
Virtual destructor does nothing
◆ translateAndCopyData()
- Parameters
-
| dst_patch | destination data |
| dst_id | destination id |
| src_patch | source data |
| src_id | source id |
| shift | the shift needed after rotation |
| rotate | identifier of the rotation between index spaces |
◆ translateAndFillData()
This is an empty virtual function that allows for a user-defined implementation of the filling of destination patch data.
- Parameters
-
| dst_patch | destination data |
| dst_id | destination id |
| src_patch | source data |
| src_id | source id |
| shift | the shift needed after rotation |
| rotate | identifier of the rotation between index spaces |
◆ rotateIndex()
The parameter index is an int pointer with points to an array of int data, length DIM. It signifies an ijk location in an index space. According to the rotation number, the location will be rotated around the origin, with the new values overwriting the original values in the array pointed to by index.
- Parameters
-
| index | array identifying a point in index space |
| rotation | identifier of the rotation that will be applied to index |
◆ rotateAboutAxis()
In 3D, rotation of an index about the origin is decomposed into a series of rotations about an axis. This function performs one such rotation.
- Parameters
-
| index | array identifying a point in index space |
| axis | axis around which index will be rotated |
| num_rotations | number of 90-degree rotations around the axis |
The documentation for this class was generated from the following file: