SchurReconstructKernelC Struct ReferenceΒΆ

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

Reconstruct v^{n+theta} = B^{-1}(v^n - theta*dt*grad phi) and write mom = rho^n*v (rho frozen). More...

#include <program_context.hpp>

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

Public Member Functions

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

Public Attributes

ConstArray4 phi
 phi^{n+theta} (ghosts filled: centered grad reads i+-1, j+-1)
 
ConstArray4 aux
 System aux (B_z at c_bz)
 
Array4 st
 fluid state (READ rho, mx, my; WRITE mx, my)
 
Real th_dt
 
Real half_idx
 
Real half_idy
 1/(2 dx), 1/(2 dy) (centered gradient)
 
int c_rho
 
int c_mx
 
int c_my
 
int c_bz
 

Detailed Description

Reconstruct v^{n+theta} = B^{-1}(v^n - theta*dt*grad phi) and write mom = rho^n*v (rho frozen).

Mirrors detail::SchurReconstructKernel but reads B_z from the aux at c_bz (no separate vx/vy buffers: v^n = (mx, my)/rho read inline from the state).

Member Function Documentation

◆ operator()()

POPS_HD void pops::runtime::program::detail::SchurReconstructKernelC::operator() ( int  i,
int  j 
) const
inline
+ Here is the call graph for this function:

Member Data Documentation

◆ aux

ConstArray4 pops::runtime::program::detail::SchurReconstructKernelC::aux

System aux (B_z at c_bz)

◆ c_bz

int pops::runtime::program::detail::SchurReconstructKernelC::c_bz

◆ c_mx

int pops::runtime::program::detail::SchurReconstructKernelC::c_mx

◆ c_my

int pops::runtime::program::detail::SchurReconstructKernelC::c_my

◆ c_rho

int pops::runtime::program::detail::SchurReconstructKernelC::c_rho

◆ half_idx

Real pops::runtime::program::detail::SchurReconstructKernelC::half_idx

◆ half_idy

Real pops::runtime::program::detail::SchurReconstructKernelC::half_idy

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

◆ phi

ConstArray4 pops::runtime::program::detail::SchurReconstructKernelC::phi

phi^{n+theta} (ghosts filled: centered grad reads i+-1, j+-1)

◆ st

Array4 pops::runtime::program::detail::SchurReconstructKernelC::st

fluid state (READ rho, mx, my; WRITE mx, my)

◆ th_dt

Real pops::runtime::program::detail::SchurReconstructKernelC::th_dt

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