core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::solver::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)
PECLET_HD T operator() (Index i) const

Public Attributes

const T * p = nullptr

Detailed Description

template<class T>
struct peclet::core::solver::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 35 of file face_csr.hpp.

Constructor & Destructor Documentation

◆ HostArr() [1/2]

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

◆ HostArr() [2/2]

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

Definition at line 38 of file face_csr.hpp.

References p.

Member Function Documentation

◆ operator()()

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

Definition at line 39 of file face_csr.hpp.

References p, and PECLET_HD.

Member Data Documentation

◆ p

template<class T>
const T* peclet::core::solver::HostArr< T >::p = nullptr

Definition at line 36 of file face_csr.hpp.

Referenced by HostArr(), and operator()().


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