Commit Graph

18 Commits

Author SHA1 Message Date
12f15239df
tests: check flux averages 2024-11-04 12:00:21 +01:00
Michele Guerini Rocco
bd6e1521b0
tests: check EC profiles 2024-11-04 12:00:20 +01:00
Michele Guerini Rocco
2e2ab16273
tests/01-ITER: fix G-EQDSK format 2024-11-04 12:00:19 +01:00
Michele Guerini Rocco
10d65c1b8e
tests: remove workaround for empty files
Inactive tables no longer produce an empty file, even if requested
2024-11-04 12:00:19 +01:00
Michele Guerini Rocco
e5e471725c
tests: avoid scipy dependency
The χ² in test_error_biased can be easily minimised analytically
2024-11-04 12:00:19 +01:00
Michele Guerini Rocco
ee4183faa7
tests: update references with new tables format 2024-11-04 12:00:18 +01:00
Michele Guerini Rocco
3e853dd60f
tests/02-ITER-half-field: update reference
This was supposed to test an X mode polarisation, but due to the
issue in `read_beam2`, it was actually O mode.
2024-11-04 12:00:17 +01:00
Michele Guerini Rocco
d52e125d9c
src/gray_core: improve error reporting
- Avoid logging the same error over and over

- Make all the gray_errors actually warnings

- Replace `large_npl` error with `unstable_beam`, which is actually
  the root cause of the former

- Use the gray_main error as exit code
2024-11-04 12:00:16 +01:00
Michele Guerini Rocco
52693be83e
tests/11-vacuum: use exp notation on colorbar 2024-11-03 09:19:21 +01:00
Michele Guerini Rocco
281f32f221
tests: add test for gray -s 2024-10-07 16:19:31 +02:00
Michele Guerini Rocco
bfd675d505
tests: use new file and column names 2024-10-07 16:19:31 +02:00
Michele Guerini Rocco
097fa42329
Makefile: run tests in parallel 2024-04-12 17:31:53 +02:00
Michele Guerini Rocco
babca8bdc4
tests: update references after f82f91bc
The following test cases:

  - 04-JT60SA
  - 05-JT60SA-startup
  - 06-ITER-startup.Mixed

were affected by the bug fixed in f82f91bc, so their reference outputs
had to be updated.
2024-04-11 22:16:45 +02:00
Michele Guerini Rocco
79d67c8128
tests: replace all gray_params.data with gray.ini 2024-02-09 11:16:21 +01:00
Michele Guerini Rocco
b0674c2d9b
tests: handle missing ECCD results 2024-02-09 11:16:19 +01:00
Michele Guerini Rocco
7c5b443847
src/equilibrium.f90: use enums 2024-02-09 11:16:19 +01:00
Michele Guerini Rocco
c5a4b180bc
src/gray_params.f90: replace magic numbers with enums
1. Introduces enumerations (and some booleans) intended to replace all
   the magic numbers used throughout the code to represent multiple
   choices.

2. Replace the gray_params.sh script a new one that automatically
   generates code for all the GRAY parameters by parsing
   gray_params.f90.

3. Also generate extra code to accept the enum identifiers as valid
   values in the configuration files and command line arguments.

4. Set sensible default values for parameters that are rarely changes.
2024-02-09 11:16:18 +01:00
Michele Guerini Rocco
6fad08ed7c
add tests 2024-02-09 11:16:17 +01:00