core 1.5.0
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.

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 peclet::core::solver::HostArr< T >::p.

Member Data Documentation

◆ p

Definition at line 36 of file face_csr.hpp.

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


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