core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::amr::HostArr< T > Struct Template Reference

A uniform accessor over a raw host array, giving it the operator()(i) that Kokkos::View has, so the row kernels can be written once for both. More...

#include <face_csr.hpp>

Public Member Functions

 HostArr ()=default
 
 HostArr (const T *ptr)
 
MORTON_HD T operator() (Index i) const
 

Public Attributes

const Tp = nullptr
 

Detailed Description

template<class T>
struct peclet::core::amr::HostArr< T >

A uniform accessor over a raw host array, giving it the operator()(i) that Kokkos::View has, so the row kernels can be written once for both.

(Device passes a View<const T> directly.)

Definition at line 40 of file face_csr.hpp.

Constructor & Destructor Documentation

◆ HostArr() [1/2]

template<class T >
peclet::core::amr::HostArr< T >::HostArr ( )
default

◆ HostArr() [2/2]

template<class T >
peclet::core::amr::HostArr< T >::HostArr ( const T ptr)
inlineexplicit

Definition at line 43 of file face_csr.hpp.

Member Function Documentation

◆ operator()()

template<class T >
MORTON_HD T peclet::core::amr::HostArr< T >::operator() ( Index  i) const
inline

Definition at line 44 of file face_csr.hpp.

References peclet::core::amr::HostArr< T >::p.

Member Data Documentation

◆ p

Definition at line 41 of file face_csr.hpp.

Referenced by peclet::core::amr::HostArr< T >::operator()().


The documentation for this struct was generated from the following file: