AverageDownKernel Struct ReferenceΒΆ

adc_cpp: pops::detail::AverageDownKernel Struct Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
pops::detail::AverageDownKernel Struct Reference

CONSERVATIVE average of an r x r block: C(I, J, c) = (sum of the r^2 fine cells) * inv. More...

#include <refinement.hpp>

+ Collaboration diagram for pops::detail::AverageDownKernel:

Public Member Functions

POPS_HD void operator() (int I, int J) const
 

Public Attributes

ConstArray4 F
 
Array4 C
 
Real inv
 
int r
 
int c
 

Detailed Description

CONSERVATIVE average of an r x r block: C(I, J, c) = (sum of the r^2 fine cells) * inv.

Member Function Documentation

◆ operator()()

POPS_HD void pops::detail::AverageDownKernel::operator() ( int  I,
int  J 
) const
inline

Member Data Documentation

◆ C

Array4 pops::detail::AverageDownKernel::C

◆ c

int pops::detail::AverageDownKernel::c

◆ F

ConstArray4 pops::detail::AverageDownKernel::F

◆ inv

Real pops::detail::AverageDownKernel::inv

◆ r

int pops::detail::AverageDownKernel::r

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