GridContext Struct ReferenceΒΆ

adc_cpp: pops::GridContext 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::GridContext Struct Reference

Mesh + transport BC + aux shared by a block closures. More...

#include <grid_context.hpp>

+ Collaboration diagram for pops::GridContext:

Public Attributes

Box2D dom
 domain (without ghost)
 
BCRec bc
 transport BC
 
Geometry geom
 geometry (dx, dy, bounds)
 
MultiFabaux = nullptr
 System aux (phi, grad phi); NOT owned.
 
const MultiFabdomain_mask = nullptr
 0/1 domain mask (Impl::domain_mask_); NOT owned
 
const detail::DiscDomaineb_domain
 level-set domain descriptor (Impl::eb_domain_); NOT owned
 

Detailed Description

Mesh + transport BC + aux shared by a block closures.

aux is NOT owned: it points to the System aux (lifetime longer than the block, stable address).

EMBEDDED BOUNDARY / LEVEL-SET DOMAIN (T5-PR3 effort): domain_mask and eb_domain point (NOT owned) to the 0/1 mask and the level-set domain descriptor of the System (members with STABLE address). They are used ONLY to build the optional embedded-boundary transport advances (build_block); read BY POINTER at the step, the order add_block / set_disc_domain does not matter. nullptr -> no embedded-boundary advance (stepper on advance, bit-identical). The mask is materialized / the descriptor is set by set_disc_domain (the disc is one instance of the contract, cf. numerics/embedded_boundary.hpp).

Member Data Documentation

◆ aux

MultiFab* pops::GridContext::aux = nullptr

System aux (phi, grad phi); NOT owned.

◆ bc

BCRec pops::GridContext::bc

transport BC

◆ dom

Box2D pops::GridContext::dom

domain (without ghost)

◆ domain_mask

const MultiFab* pops::GridContext::domain_mask = nullptr

0/1 domain mask (Impl::domain_mask_); NOT owned

◆ eb_domain

const detail::DiscDomain* pops::GridContext::eb_domain
Initial value:
=
nullptr

level-set domain descriptor (Impl::eb_domain_); NOT owned

◆ geom

Geometry pops::GridContext::geom

geometry (dx, dy, bounds)


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