RuntimeParams 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::RuntimeParams Struct Reference
FLAT carrier (fixed size, by value) of the runtime parameter values of a block. More...
#include <runtime_params.hpp>
Collaboration diagram for pops::RuntimeParams:Public Member Functions | |
| POPS_HD Real | get (int k) const |
Value of the runtime parameter at index k. | |
Public Attributes | |
| int | count = 0 |
| Real | values [kMaxRuntimeParams] = {} |
Detailed Description
FLAT carrier (fixed size, by value) of the runtime parameter values of a block.
count = number of parameters actually declared by the model; values[k] = current value of the parameter at index k (index assigned by the codegen, sorted order of names). Indices >= count are zero and never read by the generated blocks. Trivial aggregate: copyable on device at no cost.
Member Function Documentation
◆ get()
Value of the runtime parameter at index k.
No dynamic bound (the index is emitted by the codegen, thus statically < count): direct read, device-callable.
Here is the call graph for this function:
Here is the caller graph for this function:Member Data Documentation
◆ count
| int pops::RuntimeParams::count = 0 |
◆ values
| Real pops::RuntimeParams::values[kMaxRuntimeParams] = {} |
The documentation for this struct was generated from the following file:
- include/pops/runtime/config/runtime_params.hpp
Generated by