|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for field-statistics control ingress. More...
#include "test_support.h"#include "statistics_config.h"#include "statistics_window.h"#include "field_catalog.h"Go to the source code of this file.
Functions | |
| static PetscErrorCode | ClearStatisticsOptions (void) |
| Clears any statistics options left by a previous case. | |
| static PetscErrorCode | SetOption (const char *name, const char *value) |
| Installs one option as the control file would. | |
| static PetscErrorCode | SetValidWindow (void) |
| Installs a complete, valid single-window configuration. | |
| static PetscErrorCode | ParseIntoFreshContext (SimCtx *simCtx, PetscErrorCode *result) |
| Runs the parse site against a zeroed context and reports the error code. | |
| static PetscErrorCode | TestResolvesCompleteWindow (void) |
| A complete configuration resolves into the definition the pipeline consumes. | |
| static PetscErrorCode | TestOmittedEndTimeLeavesWindowOpen (void) |
| An omitted end time leaves the window open rather than defaulting one. | |
| static PetscErrorCode | TestDisabledResolvesNothing (void) |
| A disabled subsystem resolves nothing and allocates nothing. | |
| static PetscErrorCode | TestConsoleCadenceIsIndependent (void) |
| The console cadence rides the same chain and is independent of the windows. | |
| static PetscErrorCode | TestMalformedConfigurationRejected (void) |
| Malformed configuration is rejected rather than silently partially applied. | |
| int | main (int argc, char **argv) |
| Entry point for the statistics configuration suite. | |
C unit tests for field-statistics control ingress.
These exercise the parse site directly against the PETSc options database, which is the same path a generated control file takes. Python rejects malformed configuration earlier and with better messages, so the cases here are the ones a hand-written or hand-edited control file can still reach.
Definition in file test_statistics_config.c.
|
static |
Clears any statistics options left by a previous case.
Definition at line 18 of file test_statistics_config.c.
|
static |
Installs one option as the control file would.
Definition at line 26 of file test_statistics_config.c.
|
static |
Installs a complete, valid single-window configuration.
Definition at line 34 of file test_statistics_config.c.
|
static |
Runs the parse site against a zeroed context and reports the error code.
Definition at line 56 of file test_statistics_config.c.
|
static |
A complete configuration resolves into the definition the pipeline consumes.
Definition at line 67 of file test_statistics_config.c.
|
static |
An omitted end time leaves the window open rather than defaulting one.
Definition at line 114 of file test_statistics_config.c.
|
static |
A disabled subsystem resolves nothing and allocates nothing.
Definition at line 132 of file test_statistics_config.c.
|
static |
The console cadence rides the same chain and is independent of the windows.
Definition at line 158 of file test_statistics_config.c.
|
static |
Malformed configuration is rejected rather than silently partially applied.
Definition at line 176 of file test_statistics_config.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Entry point for the statistics configuration suite.
Definition at line 253 of file test_statistics_config.c.