STORMM Source Documentation
|
A collection of coordinate vectors describing each axis of a mesh. If the mesh axes track Cartesian axes, then all member variables but a_line_x, b_line_y, and c_line_z plus their overflow arrays will be zero. More...
#include <mesh_rulers.h>
Public Member Functions | |
MeshRulers (const MeshParameters &mps=MeshParameters()) | |
The constructor takes a full collection of mesh parameters. | |
double3 | getMeshOrigin () const |
Get the origin from the rulers themselves. | |
double3 | getRealLocation (const double3 mesh_loc) const |
Get the location of a point in Cartesian space based on its coordinates on the mesh. This function is not intended for high-volume computations, merely to provide unit tests of the object's validity in a given context. | |
double3 | getMeshLocation (const double3 real_loc) const |
Get the location of a point on the mesh based on its coordinates in Cartesian space. This function is not intended for high-volume computations, merely to provide unit tests of the object's validity in a given context. | |
const MeshRulerKit | data (HybridTargetLevel tier=HybridTargetLevel::HOST) const |
Get a collection of all relevant pointers for memory on either the CPU host or the GPU device. The data will be read-only. | |
MeshRulers (const MeshRulers &original) | |
The copy and move constructors must be explicitly written to repair POINTER-kind Hybrid objects. | |
MeshRulers (MeshRulers &&original) | |
MeshRulers & | operator= (const MeshRulers &original) |
MeshRulers & | operator= (MeshRulers &&original) |
A collection of coordinate vectors describing each axis of a mesh. If the mesh axes track Cartesian axes, then all member variables but a_line_x, b_line_y, and c_line_z plus their overflow arrays will be zero.
stormm::structure::MeshRulers::MeshRulers | ( | const MeshRulers & | original | ) |
The copy and move constructors must be explicitly written to repair POINTER-kind Hybrid objects.
original | An existing object to copy or move |
other | An existing object placed on the right hand side of an assignment statement |
const MeshRulerKit stormm::structure::MeshRulers::data | ( | HybridTargetLevel | tier = HybridTargetLevel::HOST | ) | const |
Get a collection of all relevant pointers for memory on either the CPU host or the GPU device. The data will be read-only.
tier | Specify wheter to obtain pointers on the CPU host or GPU device |
Get the location of a point on the mesh based on its coordinates in Cartesian space. This function is not intended for high-volume computations, merely to provide unit tests of the object's validity in a given context.
real_loc | The location cast in units of mesh elements |
Get the location of a point in Cartesian space based on its coordinates on the mesh. This function is not intended for high-volume computations, merely to provide unit tests of the object's validity in a given context.
mesh_loc | The location cast in units of mesh elements |