|
12 | 12 |
|
13 | 13 | _HERE = pathlib.Path(__file__).resolve().parent |
14 | 14 |
|
| 15 | +_ROOT = _HERE.parent |
| 16 | + |
| 17 | +_APPS_ROOT = pathlib.Path(os.environ.get('TEST_APPS_ROOT', _ROOT.parent)).resolve() |
| 18 | + |
15 | 19 | _APPS_ROOT_PATHS = { |
16 | 20 | 'miranda_io': pathlib.Path('..', 'miranda_io'), |
17 | 21 | 'FLASH-4.5': pathlib.Path('..', 'flash-4.5'), |
18 | 22 | 'FLASH-SUBSET': pathlib.Path('..', 'flash-subset', 'FLASH4.4'), |
19 | | - 'FFB-MINI': pathlib.Path('..', 'ffb-mini')} |
| 23 | + 'FFB-MINI': pathlib.Path('..', 'ffb-mini'), |
| 24 | + 'flash5': _APPS_ROOT.joinpath('flash5')} |
20 | 25 |
|
21 | 26 | _APPS_OPTIONAL = {'FLASH-4.5', 'FLASH-SUBSET'} |
22 | 27 |
|
|
53 | 58 | ] + _FLASH_COMMON_PATHS] if 'FLASH-SUBSET' in _APPS_ROOT_PATHS else [], |
54 | 59 | 'FFB-MINI': [path for path in all_fortran_paths(_APPS_ROOT_PATHS['FFB-MINI'].joinpath('src')) |
55 | 60 | if path.name not in ('gfc.h', 'gfrd_c.h', 'gfutil_c.h', 'gfutil_f.h', 'gfwrt_c.h', |
56 | | - 'maprof.h', 'maprof_proc.h', 'maprof_yaml.h')]} |
| 61 | + 'maprof.h', 'maprof_proc.h', 'maprof_yaml.h')], |
| 62 | + 'flash5': [_APPS_ROOT_PATHS['flash5'].joinpath('source', _) for _ in { |
| 63 | + pathlib.Path('physics', 'Hydro', 'HydroMain', 'unsplit', 'hy_getFaceFlux.F90'), |
| 64 | + pathlib.Path('physics', 'Hydro', 'HydroMain', 'unsplit', 'hy_getRiemannState.F90'), |
| 65 | + pathlib.Path('physics', 'Hydro', 'HydroMain', 'unsplit', 'hy_TVDslope.F90'), |
| 66 | + pathlib.Path('physics', 'Hydro', 'HydroMain', 'unsplit', 'hy_upwindTransverseFlux.F90'), |
| 67 | + pathlib.Path('physics', 'Hydro', 'HydroMain', 'unsplit', 'MHD', 'hy_eigenVector.F90'), |
| 68 | + pathlib.Path('physics', 'Eos', 'EosMain', 'Helmholtz_starkiller', 'SpeciesBased', |
| 69 | + 'actual_eos.F90'), |
| 70 | + pathlib.Path('physics', 'sourceTerms', 'Burn', 'BurnMain', 'nuclearBurn', 'Aprox13', |
| 71 | + 'bn_mapNetworkToSpecies.F90'), |
| 72 | + pathlib.Path('physics', 'sourceTerms', 'Burn', 'BurnMain', 'nuclearBurn', 'bn_burner.F90'), |
| 73 | + pathlib.Path('physics', 'sourceTerms', 'Burn', 'BurnMain', 'nuclearBurn', 'Burn.F90'), |
| 74 | + pathlib.Path('Simulation', 'Simulation_init.F90')}]} |
57 | 75 |
|
58 | 76 |
|
59 | 77 | class Tests(TestsBase): |
@@ -97,3 +115,6 @@ def test_ffb_mini(self): |
97 | 115 | @unittest.skipIf(platform.system() == 'Windows', 'OFC not available on Windows') |
98 | 116 | def test_ffb_mini_with_ofc(self): |
99 | 117 | self._run_app_test('FFB-MINI', None, 35, True) |
| 118 | + |
| 119 | + def test_flash5(self): |
| 120 | + self._run_app_test('flash5', None, 9) |
0 commit comments