Commit graph

12 commits

Author SHA1 Message Date
Andrew Davis
8684506269
This fixes compile isuees found with GCC 16.1.1 and FMT version (#4000)
Some checks are pending
Tests and Coverage / filter-changes (push) Waiting to run
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / coverage (push) Blocked by required conditions
Tests and Coverage / Check CI status (push) Blocked by required conditions
dockerhub-publish-develop / main (push) Waiting to run
dockerhub-publish-develop-dagmc-libmesh / main (push) Waiting to run
dockerhub-publish-develop-dagmc / main (push) Waiting to run
dockerhub-publish-develop-libmesh / main (push) Waiting to run
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-07 14:58:19 +00:00
Paul Romano
1bc2bd8460 Apply clang-format on entire source 2021-08-11 11:41:49 -05:00
Paul Romano
bbb510a9ba Avoid warning about TriggerMetric not_active 2021-03-17 07:34:01 -05:00
Andrew Johnson
cf763e2477
Add templated write_message for formatting messages
This new function lives inside include/openmc/error.h and
checks if a message will be written by checking the current
verbosity level prior to formatting the message. This works very
similar to python logging modules and the spdlog project, where
the call to the logging function accepts a formattable message
string and the format arguments separately, e.g.

write_message(1, "Writing data for statepoint {}", point)

The function accepts any number and type of argument after the
format message and passes directly to fmt::format and in-turn to
the non-templated write_message. While this later function does
similar checking with the level and MPI rank, the real goal is the
output function in src/error.cpp which is not currently exposed
through the error header file

Thanks to @paulromano for feedback and suggestions
2020-08-06 07:04:59 -04:00
jingang
970aa6ea9a fixed compiling errors with visual studio, mostly VLAs 2019-06-05 15:18:31 -04:00
Paul Romano
cca544292a Isolate __builtin_unreachable to macro 2019-03-26 16:16:06 -05:00
Paul Romano
1d5242ede1 Fix a whole bunch of -Wall warnings 2019-03-26 14:11:47 -05:00
Paul Romano
f8925b25be Convert transport() and cross_surface() to C++ 2019-02-15 10:59:23 -06:00
Paul Romano
102aa934ae Add implementation of write_message and fatal_error in error.cpp 2019-02-06 07:11:44 -06:00
Paul Romano
b178a66e7f Add implementation of warning() in C++ 2019-02-06 07:11:44 -06:00
Paul Romano
6ba4d68cb9 Move call to MPI_Abort to C++ side 2018-10-15 11:52:33 -05:00
Paul Romano
9f0ea52d1a Move headers to include/openmc directory and openmc.h -> openmc/capi.h 2018-08-20 14:40:32 -05:00
Renamed from src/error.h (Browse further)