|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for postprocessor orchestration and output paths. More...
#include "test_support.h"#include "postprocessor.h"#include "setup.h"#include <stdio.h>#include <string.h>Go to the source code of this file.
Functions | |
| static PetscErrorCode | PicurvAssertFileMissing (const char *path, const char *context) |
| Assert that a file path does not exist. | |
| static PetscErrorCode | CountLinesWithPrefix (const char *path, const char *prefix, PetscInt *count_out) |
| Count file lines that begin with a given prefix. | |
| static PetscErrorCode | TestSetupPostProcessSwarmRegistersPipelineFields (void) |
| Tests post-processing swarm setup and pipeline-field registration. | |
| static PetscErrorCode | TestEulerianDataProcessingPipelineRunsConfiguredKernels (void) |
| Tests Eulerian post-processing pipeline dispatch for configured kernels. | |
| static PetscErrorCode | TestParticleDataProcessingPipelineComputesSpecificKE (void) |
| Tests particle post-processing pipeline dispatch for specific-KE output. | |
| static PetscErrorCode | TestGlobalStatisticsPipelineWritesMSDCSV (void) |
| Tests global statistics pipeline generation of MSD CSV output. | |
| static PetscErrorCode | TestGlobalStatisticsPipelineRewritesExistingMSDStep (void) |
| Tests that reprocessing the same MSD step rewrites the CSV row instead of duplicating it. | |
| static PetscErrorCode | TestSetupSimulationEnvironmentCreatesStatisticsDirectoryWithoutClobbering (void) |
| Tests that postprocessor setup creates nested statistics directories without clobbering existing contents. | |
| static PetscErrorCode | TestWriteEulerianFileWritesVTS (void) |
| Tests VTS emission for Eulerian post-processing output. | |
| static PetscErrorCode | TestWriteParticleFileWritesVTP (void) |
| Tests VTP emission for particle post-processing output. | |
| static PetscErrorCode | TestWriteEulerianFileRewritesSameStepCleanly (void) |
| Tests repeated same-step VTS emission leaves only the final artifact. | |
| static PetscErrorCode | TestWriteParticleFileRewritesSameStepCleanly (void) |
| Tests repeated same-step VTP emission leaves only the final artifact. | |
| int | main (int argc, char **argv) |
| Runs the unit-postprocessor PETSc test binary. | |
C unit tests for postprocessor orchestration and output paths.
Definition in file test_postprocessor.c.
|
static |
Assert that a file path does not exist.
| [in] | path | File path to check. |
| [in] | context | Failure context message. |
Definition at line 20 of file test_postprocessor.c.
|
static |
Count file lines that begin with a given prefix.
| [in] | path | File path to scan. |
| [in] | prefix | Prefix to match at the beginning of each line. |
| [out] | count_out | Count of matching lines. |
Definition at line 40 of file test_postprocessor.c.
|
static |
Tests post-processing swarm setup and pipeline-field registration.
Definition at line 61 of file test_postprocessor.c.
|
static |
Tests Eulerian post-processing pipeline dispatch for configured kernels.
Definition at line 90 of file test_postprocessor.c.
|
static |
Tests particle post-processing pipeline dispatch for specific-KE output.
Definition at line 120 of file test_postprocessor.c.
|
static |
Tests global statistics pipeline generation of MSD CSV output.
Definition at line 158 of file test_postprocessor.c.
|
static |
Tests that reprocessing the same MSD step rewrites the CSV row instead of duplicating it.
Definition at line 207 of file test_postprocessor.c.
|
static |
Tests that postprocessor setup creates nested statistics directories without clobbering existing contents.
Definition at line 273 of file test_postprocessor.c.
|
static |
Tests VTS emission for Eulerian post-processing output.
Definition at line 338 of file test_postprocessor.c.
|
static |
Tests VTP emission for particle post-processing output.
Definition at line 367 of file test_postprocessor.c.
|
static |
Tests repeated same-step VTS emission leaves only the final artifact.
Definition at line 412 of file test_postprocessor.c.
|
static |
Tests repeated same-step VTP emission leaves only the final artifact.
Tests repeated same-step VTP emission leaves only the final artifact.
Definition at line 452 of file test_postprocessor.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-postprocessor PETSc test binary.
Definition at line 506 of file test_postprocessor.c.