|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Control ingress for the field-statistics pipeline. More...
#include "statistics_config.h"#include "statistics_window.h"#include "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, 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 (PetscInt window, PicurvWindowDefinition *definition) |
| Internal helper: reads one window's field list into its definition. | |
| static PetscErrorCode | ParseStatisticsCovariances (PetscInt window, 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 | 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 16 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 19 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 26 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 44 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 70 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 132 of file statistics_config.c.
|
static |
Internal helper: reads one window's scheduling and weighting properties.
Local to this translation unit.
Definition at line 191 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 246 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 289 of file statistics_config.c.
| PetscErrorCode DestroyFieldStatisticsConfig | ( | SimCtx * | simCtx | ) |
Implementation of DestroyFieldStatisticsConfig().
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.