File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ Validation tests for `fv2d`. The aim of these tests is to assess the quality of results provided by `fv2d`.
3+ Solutions are compared to reference data generated with known working codes and setups.
4+
5+ Lucas Barbier-Goy - 28/12/2025.
6+ """
7+
8+ from math import e
9+ import subprocess
10+ import numpy as np
11+ from pathlib import Path
12+ from .ioutils import h5_to_numpy
13+
14+ REF_DIR = Path (__file__ ).parent / "validation_data"
15+ FV2D_EXE = Path (__file__ ).parent .parent / "build" / "fv2d"
16+ FV2D_TMP_DIR = Path (__file__ ).parent / "tmp_test_dir"
17+ FV2D_TMP_DIR .mkdir (exist_ok = True )
18+ TOLERANCE = 1e-8
19+
20+ def test_test ():
21+ assert 0
22+
23+ def teardown_module () -> None :
24+ """Clean up temporary files after tests."""
25+ for file in FV2D_TMP_DIR .glob ("*" ):
26+ file .unlink ()
27+ if FV2D_TMP_DIR .exists ():
28+ FV2D_TMP_DIR .rmdir ()
You can’t perform that action at this time.
0 commit comments