Control ingress for the field-statistics pipeline. More...
#include "statistics_config.h"#include "statistics_window.h"#include "field_catalog.h"#include "particle_field_catalog.h"#include "logging.h"#include "io.h"Go to the source code of this file.
Macros | |
| #define | STATISTICS_OPTION_NAME_LENGTH 128 |
| Longest constructed option name this module builds. | |
| #define | STATISTICS_OPTION_VALUE_LENGTH 256 |
| Longest option value this module reads, sized for a moment or pair list. | |
Functions | |
| static PetscErrorCode | ResolveStatisticsField (const char *window_name, const char *field_name, PetscBool particle_source, PetscInt *field_id) |
| Internal helper: resolves one field name against the typed catalog. | |
| static PetscErrorCode | SplitStatisticsList (char *value, char **tokens, PetscInt capacity, PetscInt *count) |
| Internal helper: splits a comma-separated value into trimmed tokens. | |
| static PetscErrorCode | ParseStatisticsFields (const char *kind, PetscInt window, PetscBool particle_source, PicurvWindowDefinition *definition) |
| Internal helper: reads one window's field list into its definition. | |
| static PetscErrorCode | ParseStatisticsCovariances (const char *kind, PetscInt window, PetscBool particle_source, PicurvWindowDefinition *definition) |
| Internal helper: reads one window's covariance list into its definition. | |
| static PetscErrorCode | ParseStatisticsWindowSchedule (PetscInt window, PicurvWindowDefinition *definition) |
| Internal helper: reads one window's scheduling and weighting properties. | |
| static PetscErrorCode | LogResolvedWindow (const PicurvWindowDefinition *definition) |
| Internal helper: reports one resolved window definition to the log. | |
| PetscErrorCode | ParsePostStatisticsEnsembles (SimCtx *simCtx) |
| Implementation of ParsePostStatisticsEnsembles(). | |
| PetscErrorCode | ParseFieldStatisticsConfig (SimCtx *simCtx) |
| Implementation of ParseFieldStatisticsConfig(). | |
| PetscErrorCode | DestroyFieldStatisticsConfig (SimCtx *simCtx) |
| Implementation of DestroyFieldStatisticsConfig(). | |
Control ingress for the field-statistics pipeline.
Full API contract is documented with the declarations in include/statistics_config.h.
Definition in file statistics_config.c.
| #define STATISTICS_OPTION_NAME_LENGTH 128 |
Longest constructed option name this module builds.
Definition at line 17 of file statistics_config.c.
| #define STATISTICS_OPTION_VALUE_LENGTH 256 |
Longest option value this module reads, sized for a moment or pair list.
Definition at line 20 of file statistics_config.c.
|
static |
Internal helper: resolves one field name against the typed catalog.
Local to this translation unit. The error names the window so a hand-written control file reports the same context Python would.
Definition at line 27 of file statistics_config.c.
|
static |
Internal helper: splits a comma-separated value into trimmed tokens.
Local to this translation unit. Rewrites value in place, so callers pass a mutable buffer they own.
Definition at line 62 of file statistics_config.c.
|
static |
Internal helper: reads one window's field list into its definition.
Local to this translation unit.
Definition at line 90 of file statistics_config.c.
|
static |
Internal helper: reads one window's covariance list into its definition.
Local to this translation unit.
Definition at line 155 of file statistics_config.c.
|
static |
Internal helper: reads one window's scheduling and weighting properties.
Local to this translation unit.
Definition at line 217 of file statistics_config.c.
|
static |
Internal helper: reports one resolved window definition to the log.
Local to this translation unit. Runs once per window at startup, so a run's log records exactly what it accumulated without having to be cross-referenced against the configuration that produced it.
Definition at line 274 of file statistics_config.c.
| PetscErrorCode ParsePostStatisticsEnsembles | ( | SimCtx * | simCtx | ) |
Implementation of ParsePostStatisticsEnsembles().
Resolves the statistics ensembles a post-processing recipe defines.
Definition at line 317 of file statistics_config.c.
| PetscErrorCode ParseFieldStatisticsConfig | ( | SimCtx * | simCtx | ) |
Implementation of ParseFieldStatisticsConfig().
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 393 of file statistics_config.c.
| PetscErrorCode DestroyFieldStatisticsConfig | ( | SimCtx * | simCtx | ) |
Implementation of DestroyFieldStatisticsConfig().
Releases the window definitions resolved by ParseFieldStatisticsConfig() and the ensembles resolved by ParsePostStatisticsEnsembles().
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/statistics_config.h.
Definition at line 460 of file statistics_config.c.