|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Runtime parameters and integration state. More...
#include <sim_runtime_state.h>

Runtime parameters and integration state.
| size_t SimRuntimeState::caller_step_streak |
Consecutive caller-owned steps observed with the same primitive.
| size_t SimRuntimeState::continuity_capacity |
Allocated length for continuity counter arrays.
| uint32_t SimRuntimeState::current_step_warp_mask |
Warp levels observed during the active step.
| size_t* SimRuntimeState::drift_field_snapshot_capacity |
Per-field allocated element capacity.
| size_t* SimRuntimeState::drift_field_snapshot_count |
Per-field element count stored.
| bool* SimRuntimeState::drift_field_snapshot_requested |
Per-field snapshot request flags.
| size_t* SimRuntimeState::drift_field_snapshot_step_index |
Per-field step index for snapshot.
| bool* SimRuntimeState::drift_field_snapshot_valid |
Per-field snapshot validity.
| SimComplexDouble** SimRuntimeState::drift_field_snapshots |
Per-field snapshots captured during drift.
| SimFieldStats* SimRuntimeState::drift_field_stats |
Per-field stats cached from drift evaluation.
| bool* SimRuntimeState::drift_field_stats_requested |
Per-field request flags for drift stats capture.
| size_t SimRuntimeState::drift_field_stats_step_index |
Step index associated with cached drift stats.
| bool* SimRuntimeState::drift_field_stats_valid |
Per-field validity bits for cached drift stats.
| uint32_t SimRuntimeState::drift_mode_depth |
>0 when executing drift-only evaluations (no side effects).
| double SimRuntimeState::drift_time_override |
Optional stage time override while in drift.
| bool SimRuntimeState::drift_time_override_active |
True when sim_context_time should return the drift override.
| double SimRuntimeState::dt |
Integration timestep.
| uint32_t SimRuntimeState::external_driver_depth |
Nested caller-owned external-driver claims.
| uint64_t* SimRuntimeState::field_dirty_counts |
Per-field continuity counters (dirty).
| size_t* SimRuntimeState::field_health_cache_step_index |
Step index associated with cached health counts.
| size_t* SimRuntimeState::field_health_inf_counts |
Per-field Inf counts (cached).
| size_t* SimRuntimeState::field_health_nan_counts |
Per-field NaN counts (cached).
| double* SimRuntimeState::field_phase_ema |
Per-field phase coherence EMA.
| uint8_t* SimRuntimeState::field_phase_initialized |
Per-field EMA init marker.
| double* SimRuntimeState::field_phase_last_time |
Per-field last timestamp used for EMA (seconds).
| uint8_t* SimRuntimeState::field_phase_lock_state |
Per-field hysteresis lock flag.
| uint64_t* SimRuntimeState::field_stable_counts |
Per-field continuity counters (stable).
| SimFieldStats* SimRuntimeState::field_stats_cache |
Per-field stats cache (current step).
| size_t* SimRuntimeState::field_stats_cache_step_index |
Step index associated with cached stats.
| SimFieldStatsComputeConfig SimRuntimeState::field_stats_config |
Feature mask for optional field stats work.
| SimFieldStatsRuntimeProfile SimRuntimeState::field_stats_profile |
Rolling field stats timing/cache profile.
| SimFieldTopologyRuntimeState* SimRuntimeState::field_topology_cache |
Per-field topology cache/state.
| FluxLensState SimRuntimeState::flux_lens |
Flux lens state (single lens per context).
| FluxLensWorkspace SimRuntimeState::flux_workspace |
Scratch workspace for flux computations.
| SimRuntimeCallerStepMode SimRuntimeState::last_caller_step_mode |
Most recent caller-owned stepping primitive observed.
| SimRuntimeLoopError SimRuntimeState::last_loop_error |
Most recent runtime/loop error.
| SimRuntimeLoopProgress SimRuntimeState::last_loop_progress |
Most recent completed caller-owned bounded-loop snapshot.
| bool SimRuntimeState::last_loop_progress_valid |
True when last_loop_progress contains a retained final snapshot.
| SimRuntimeLoopStopReason SimRuntimeState::last_stop_reason |
Most recent terminal/non-running reason.
| SimRuntimeLoopProgress SimRuntimeState::loop_progress |
Current caller-owned bounded-loop progress snapshot.
| size_t SimRuntimeState::measurement_cache_step_index |
Step index associated with cached measurement taps.
| bool SimRuntimeState::measurement_cache_valid |
True when cached measurement taps are current.
| double SimRuntimeState::measurement_dissipation |
Cached global dissipation measurement.
| bool SimRuntimeState::measurement_dissipation_valid |
Cached dissipation tap validity.
| double SimRuntimeState::measurement_energy |
Cached global energy measurement.
| bool SimRuntimeState::measurement_energy_valid |
Cached energy tap validity.
| double SimRuntimeState::measurement_remainder |
Cached remainder norm measurement.
| size_t SimRuntimeState::measurement_remainder_sources |
Cached remainder source count.
| bool SimRuntimeState::measurement_remainder_valid |
Cached remainder tap validity.
| bool SimRuntimeState::pending_cancel |
True while a cancel request is being applied.
| SimRuntimePhasePortraitMetrics* SimRuntimeState::phase_portrait_metrics_cache |
Per-field phase-portrait metrics cache.
| size_t* SimRuntimeState::phase_portrait_metrics_cache_sample_count |
Downsampled sample count used for cached phase-portrait metrics.
| size_t* SimRuntimeState::phase_portrait_metrics_cache_step_index |
Step index associated with cached phase-portrait metrics.
| bool* SimRuntimeState::phase_portrait_metrics_cache_valid |
Per-field validity marker for cached phase-portrait metrics.
| size_t SimRuntimeState::step_index |
Monotonic step counter for diagnostics.
| SimStepMetrics SimRuntimeState::step_metrics[SIM_STEP_METRIC_HISTORY] |
Circular buffer of recent step metrics.
| size_t SimRuntimeState::step_metrics_count |
Number of populated entries (<= history).
| size_t SimRuntimeState::step_metrics_head |
Next write index inside the metrics buffer.
| SimStepMetrics SimRuntimeState::step_metrics_latest |
Most recent metrics sample.
| bool SimRuntimeState::step_metrics_valid |
True once at least one metrics sample has been recorded.
| double SimRuntimeState::time_accumulated |
Simulation time accumulated from accepted steps (seconds).
| SimTimeModel SimRuntimeState::time_model |
Time evolution semantics (continuous vs map).
| SimRuntimeComplexSample** SimRuntimeState::visual_sample_cache |
Per-field downsampled sample cache.
| size_t* SimRuntimeState::visual_sample_cache_capacity |
Per-field allocated sample capacity.
| size_t* SimRuntimeState::visual_sample_cache_count |
Per-field cached sample count.
| size_t* SimRuntimeState::visual_sample_cache_source_count |
Source element count used for cached samples.
| size_t* SimRuntimeState::visual_sample_cache_step_index |
Step index associated with cached samples.
| size_t* SimRuntimeState::visual_sample_cache_stride |
Stride used while producing cached samples.
| bool* SimRuntimeState::visual_sample_cache_valid |
Per-field validity marker for cached samples.
| size_t SimRuntimeState::visual_sample_max_samples |
Upper bound for canonical target sample count.
| size_t SimRuntimeState::visual_sample_target_samples |
Canonical target sample count for visual downsample.
| SimRuntimeWaveformSampleStats* SimRuntimeState::waveform_sample_stats_cache |
Per-field waveform sample stats cache.
| size_t* SimRuntimeState::waveform_sample_stats_cache_sample_count |
Sample count used for cached waveform sample stats.
| size_t* SimRuntimeState::waveform_sample_stats_cache_step_index |
Step index associated with cached waveform sample stats.
| bool* SimRuntimeState::waveform_sample_stats_cache_valid |
Per-field validity marker for cached waveform sample stats.