Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace > Class Template Reference

#include <SharedComponent.hpp>

Inheritance diagram for mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >:
[legend]

Public Types

using our_t = NgpSharedScalarComponent<ScalarType, NgpMemSpace>
using base_t = NgpSharedComponent<ScalarType, NgpMemSpace>
using canonical_access = access::scalar<ScalarType>
using view_t
using shared_type

Public Member Functions

 NgpSharedScalarComponent ()=default
 NgpSharedScalarComponent (base_t base_component)
decltype(auto) operator() (stk::mesh::FastMeshIndex) const
auto & ngp_view ()
void sync_to_device ()
void sync_to_host ()
void modify_on_device ()
void modify_on_host ()
void clear_host_sync_state ()
void clear_device_sync_state ()

Member Typedef Documentation

◆ our_t

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
using mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::our_t = NgpSharedScalarComponent<ScalarType, NgpMemSpace>

◆ base_t

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
using mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::base_t = NgpSharedComponent<ScalarType, NgpMemSpace>

◆ canonical_access

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
using mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::canonical_access = access::scalar<ScalarType>

◆ view_t

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
using mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::view_t
Initial value:
decltype(get_scalar_view<ScalarType>(std::declval<decltype(std::declval<base_t&>().ngp_view().data())>()))
auto & ngp_view()
Definition SharedComponent.hpp:337
constexpr auto get_scalar_view(Accessor &&data)
Create a non-owning AScalar view over an existing accessor.
Definition Scalar.hpp:795

◆ shared_type

using mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::shared_type
inherited

Constructor & Destructor Documentation

◆ NgpSharedScalarComponent() [1/2]

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::NgpSharedScalarComponent ( )
default

◆ NgpSharedScalarComponent() [2/2]

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::NgpSharedScalarComponent ( base_t base_component)
inlineexplicit

Member Function Documentation

◆ operator()()

template<typename ScalarType, typename NgpMemSpace = stk::ngp::MemSpace>
decltype(auto) mundy::mesh::NgpSharedScalarComponent< ScalarType, NgpMemSpace >::operator() ( stk::mesh::FastMeshIndex ) const
inline

◆ ngp_view()

auto & mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::ngp_view ( )
inlineinherited

◆ sync_to_device()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::sync_to_device ( )
inlineinherited

◆ sync_to_host()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::sync_to_host ( )
inlineinherited

◆ modify_on_device()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::modify_on_device ( )
inlineinherited

◆ modify_on_host()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::modify_on_host ( )
inlineinherited

◆ clear_host_sync_state()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::clear_host_sync_state ( )
inlineinherited

◆ clear_device_sync_state()

void mundy::mesh::NgpSharedComponent< ScalarType, stk::ngp::MemSpace >::clear_device_sync_state ( )
inlineinherited