|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Control ingress for the field-statistics pipeline. More...
#include "variables.h"Go to the source code of this file.
Functions | |
| PetscErrorCode | ParseFieldStatisticsConfig (SimCtx *simCtx) |
| Resolves field-statistics configuration from the control file. | |
| PetscErrorCode | DestroyFieldStatisticsConfig (SimCtx *simCtx) |
| Releases the window definitions resolved by ParseFieldStatisticsConfig(). | |
Control ingress for the field-statistics pipeline.
Resolves the generated master control into the window definitions the rest of the pipeline consumes, per Field Statistics Phase 2 Implementation Specification section 8.
A window list is variable arity, so its option names are constructed rather than literal. Every constructed name belongs to a family declared in the ingress audit manifest, which is what keeps the audit's guarantee intact rather than opening a hole in it.
This module owns only configuration. It creates no PETSc vectors: the accumulator factory runs later and sizes itself from the definitions resolved here.
Definition in file statistics_config.h.
| PetscErrorCode ParseFieldStatisticsConfig | ( | SimCtx * | simCtx | ) |
Resolves field-statistics configuration from the control file.
Reads the option families, resolves every field name through the typed catalog, validates each definition through PicurvWindowInit, and stores the resulting windows on the context. Reports every resolved definition at LOG_INFO so a run's log records exactly what was accumulated.
Leaves the context untouched when statistics are disabled or no window is configured, so a run that does not ask for statistics allocates nothing.
Must run before CreateAndInitializeAllVectors, which sizes the per-window accumulators from the window count resolved here.
| [in,out] | simCtx | Simulation context to populate. |
Resolves field-statistics configuration from the control file.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/statistics_config.h.
Definition at line 289 of file statistics_config.c.
| PetscErrorCode DestroyFieldStatisticsConfig | ( | SimCtx * | simCtx | ) |
Releases the window definitions resolved by ParseFieldStatisticsConfig().
| [in,out] | simCtx | Simulation context to clear; safe when nothing was resolved. |
Releases the window definitions resolved by ParseFieldStatisticsConfig().
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/statistics_config.h.
Definition at line 353 of file statistics_config.c.