PolarHasSource Concept Reference

adc_cpp: pops::detail::PolarHasSource Concept 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::PolarHasSource Concept Reference

PolarHasSource<M>: internal concept – true if M exposes source(U, aux) -> State. More...

#include <polar_operator.hpp>

Concept definition

template<class M>
concept pops::detail::PolarHasSource = requires(const M m, const typename M::State u, const Aux a) {
{ m.source(u, a) } -> std::convertible_to<typename M::State>;
}
PolarHasSource<M>: internal concept – true if M exposes source(U, aux) -> State.
Definition polar_operator.hpp:61

Detailed Description

PolarHasSource<M>: internal concept – true if M exposes source(U, aux) -> State.

Used to route polar_source: falls back to the zero state if the pure brick (ExBVelocityPolar) does not expose source(), without requiring the contract from all hyperbolic bricks.