SchurRhsAssembleKernelC Struct ReferenceΒΆ

adc_cpp: pops::runtime::program::detail::SchurRhsAssembleKernelC 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::runtime::program::detail::SchurRhsAssembleKernelC Struct Reference

rhs = -Lap phi^n - g*div(F), the centered FV divergence of the explicit flux F packed in ONE 2-component buffer (Fx in comp 0, Fy in comp 1 – the layout schur_explicit_flux writes), fused with the already-negated -Lap phi^n. More...

#include <program_context.hpp>

+ Collaboration diagram for pops::runtime::program::detail::SchurRhsAssembleKernelC:

Public Member Functions

POPS_HD void operator() (int i, int j) const
 

Public Attributes

ConstArray4 neg_lap
 -Lap phi^n (already negated)
 
ConstArray4 f
 explicit flux F at the center (Fx comp 0, Fy comp 1; ghosts filled)
 
Array4 rhs
 output: condensed right-hand side
 
Real g
 theta dt alpha
 
Real half_idx
 
Real half_idy
 1/(2 dx), 1/(2 dy)
 

Detailed Description

rhs = -Lap phi^n - g*div(F), the centered FV divergence of the explicit flux F packed in ONE 2-component buffer (Fx in comp 0, Fy in comp 1 – the layout schur_explicit_flux writes), fused with the already-negated -Lap phi^n.

Mirrors detail::SchurRhsAssembleKernel verbatim except it reads both flux components from the single buffer f instead of two separate fx/fy MultiFabs.

Member Function Documentation

◆ operator()()

POPS_HD void pops::runtime::program::detail::SchurRhsAssembleKernelC::operator() ( int  i,
int  j 
) const
inline

Member Data Documentation

◆ f

ConstArray4 pops::runtime::program::detail::SchurRhsAssembleKernelC::f

explicit flux F at the center (Fx comp 0, Fy comp 1; ghosts filled)

◆ g

Real pops::runtime::program::detail::SchurRhsAssembleKernelC::g

theta dt alpha

◆ half_idx

Real pops::runtime::program::detail::SchurRhsAssembleKernelC::half_idx

◆ half_idy

Real pops::runtime::program::detail::SchurRhsAssembleKernelC::half_idy

1/(2 dx), 1/(2 dy)

◆ neg_lap

ConstArray4 pops::runtime::program::detail::SchurRhsAssembleKernelC::neg_lap

-Lap phi^n (already negated)

◆ rhs

Array4 pops::runtime::program::detail::SchurRhsAssembleKernelC::rhs

output: condensed right-hand side


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