celeritas-project / celeritas

Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
https://celeritas-project.github.io/celeritas/user/index.html
Other
58 stars 32 forks source link

Add test for assertion messages #1198

Closed sethrj closed 3 months ago

sethrj commented 3 months ago

This follow-on to #1197 adds some testing of the various combinations of debug and runtime assertion messages. There was an unclosed color change in the last one that caused not-configured messages to make everything bold.

New messages (from unit test):

325307403-d9b485bd-ea8b-4117-aab8-f5b70b6e70f5

Failure message sent into CELER_LOG(error) during raytrace (before):

Screenshot 2024-04-24 at 13 11 35

After:

Screenshot 2024-04-24 at 13 10 01
pcanal commented 3 months ago

Can you add to the PR introduction a sample of the (new) error message?