Commit Graph

8 Commits

Author SHA1 Message Date
4a5c858ae7 src/gray_errors.f90: use macros for error message padding 2024-11-20 11:12:06 +00:00
6693fdf9b9 src/gray_errors.f90: avoid reshape in parameter initialization
The unused elements of the array are now initialized explicitly
with empty strings to add compatibility with ifort 2020, that
otherwise fails with internal error.
2024-11-20 10:12:41 +00:00
Michele Guerini Rocco
5c78af975a
add support for intel compilers 2024-11-04 12:00:19 +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
10f783ca37
src/gray_errors.f90: avoid strange macro
Some compilers are not happy with this.
2024-11-03 09:19:22 +01:00
2b8ec53d70 Improve compatibility with some compilers 2024-05-30 17:40:05 +02:00
Michele Guerini Rocco
73bd010458
remove unnecessary implicit statements
Only a single `implicit none` at the start of each module is required.
2024-02-09 11:16:18 +01:00
Michele Guerini Rocco
9bcad028b1
improve error handling in the gray_main routine
- rename errocodes → gray_errors

- restructure the errors into a `error_spec` type

- make the list of errors easily extensible

- rewrite the `print_errn`, `print_errhcd` (now `print_err_raytracing`,
  `print_err_ecrh_cd`) subroutine to handle arbitrary errors

- add functions to easily manipulate errors
  (`raise_error`, `has_error`, `is_critical`)

- remove print statements from quadpack

- log all errors to stderr using the logger module
2023-05-11 17:47:13 +02:00