|
Intrepid2
|
This class defines the coordinates of the barycenter of the supported reference cells. The barycenter coordinates are stored in static views. The class is templated on the Kokkos::Device Type which is used to determine layout and memory space of the views. More...
#include <Intrepid2_CellData.hpp>
Classes | |
| struct | ReferenceCenterDataStatic |
Public Types | |
| using | ConstViewType = Kokkos::DynRankView< const double, DeviceType > |
Public Member Functions | |
| RefCellCenter ()=default | |
| Default constructor. | |
| ~RefCellCenter ()=default | |
| Destructor. | |
Static Public Member Functions | |
| static ConstViewType | get (const unsigned cellTopoKey) |
| Retrieves the Cartesian coordinates of a reference cell barycenter. | |
Private Types | |
| using | ViewType = Kokkos::DynRankView< double, DeviceType > |
| static views containing the center coordinates allocated on DeviceType::memory_space | |
Static Private Member Functions | |
| static void | set () |
| Set center coordinates of reference cell for supported topologies. | |
Static Private Attributes | |
| static ViewType | lineCenter |
| static ViewType | triangleCenter |
| static ViewType | quadrilateralCenter |
| static ViewType | tetrahedronCenter |
| static ViewType | hexahedronCenter |
| static ViewType | pyramidCenter |
| static ViewType | wedgeCenter |
| static const ReferenceCenterDataStatic | refCenterDataStatic_ |
| static struct containing the nodes coordinates on host | |
| static bool | isReferenceCellCenterDataSet_ = false |
| whether the center coordinates have been already set using the method set() | |
This class defines the coordinates of the barycenter of the supported reference cells. The barycenter coordinates are stored in static views. The class is templated on the Kokkos::Device Type which is used to determine layout and memory space of the views.
Definition at line 254 of file Intrepid2_CellData.hpp.
| using Intrepid2::RefCellCenter< DeviceType >::ConstViewType = Kokkos::DynRankView<const double,DeviceType> |
Definition at line 256 of file Intrepid2_CellData.hpp.
|
private |
static views containing the center coordinates allocated on DeviceType::memory_space
Definition at line 290 of file Intrepid2_CellData.hpp.
|
inlinestatic |
Retrieves the Cartesian coordinates of a reference cell barycenter.
Returns Cartesian coordinates of a reference cell barycenter. Requires cell topology with a reference cell. Barycenter coordinates are always returned as an (x,y,z)-triple regardless of the actual topological cell dimension. The unused coordinates are set to zero, e.g., center of Line<2> is returned as {0,0,0}.
| cell | [in] - key of the cell topology |
Definition at line 734 of file Intrepid2_CellDataDef.hpp.
References INTREPID2_TEST_FOR_EXCEPTION_DEVICE_SAFE.
Referenced by Intrepid2::CellTools< DeviceType >::getReferenceCellCenter().
|
staticprivate |
Set center coordinates of reference cell for supported topologies.
Definition at line 681 of file Intrepid2_CellDataDef.hpp.
|
staticprivate |
Definition at line 295 of file Intrepid2_CellData.hpp.
|
staticprivate |
whether the center coordinates have been already set using the method set()
Definition at line 316 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 291 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 296 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 293 of file Intrepid2_CellData.hpp.
|
staticprivate |
static struct containing the nodes coordinates on host
Definition at line 313 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 294 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 292 of file Intrepid2_CellData.hpp.
|
staticprivate |
Definition at line 297 of file Intrepid2_CellData.hpp.