Skip to content

New Test Metric for Warnings and Improved Real Number Comparison

Daniel Lindblad requested to merge dlindbla/nektar:feature/NoWarningTest into master

Two main features are provided by this merge request:

  1. A new derived class from Metric class used for tests. The new class is called TestNoWarning, and will check the output and error stream for any warning messages. By default, it catches all lines containing the string WARNING, but this can be modified by the user to catch other/more specific warning messages generated by Nektar++. The logic is as follows: If any of the warning messages specified by the user appears in the output or the error stream, the test fails.

  2. The routine called IsRealEqual has been updated to use the boost implementation for real comparisons. The new implementation provides the same functionality as the old one, but also catches more pitfalls. A similar routine, called IsRealClose, has also been added. This routine does an absolute comparison between floats. The peralign process in NekMesh has been updated so it can use both the aforementioned real comparison routines.

Quite extensive explanations of all features that were added in this merge request are available in the commit messages.

Merge request reports