Fixes to assertions and overrides#106
Merged
Merged
Conversation
This reverts commit 840ffcc.
pelesh
approved these changes
May 13, 2025
Collaborator
pelesh
left a comment
There was a problem hiding this comment.
Tests pass when built with GCC and Clang. Good to merge.
pelesh
reviewed
May 13, 2025
Comment on lines
42
to
43
| assert((t - other.t) < Example2::reference_tol); | ||
| gen2speed -= other.gen2speed; |
Collaborator
There was a problem hiding this comment.
I suggest using GridKit's comparison for floating point numbers:
#include <Utilities/Testing.hpp>
...
assert(isEqual(t, other.t));
WiktoriaZielinskaORNL
pushed a commit
that referenced
this pull request
Jul 23, 2025
* size_quad() --> sizeQuadrature(). * Add missing overrides in IdaTests. * Fix time assert with tolerance within a namespace. * Use GridKit's isEqual in example2 time stamp assertion. --------- Co-authored-by: nkoukpaizan <nkoukpaizan@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Building in
debugmode revealed a fewasserts that were failingOne failing assertion was due to a member function name change:
Another failing assertion was due to a comparison between two floating point numbers:
Additionally, LLVM tends to issue more warnings, such as overrides
Proposed changes
size_quad()-->sizeQuadrature()Checklist
-Wall -Wpedantic -Wconversion -Wextra.Further comments
I suggest ignoring whitespaces for the diff for the
example*hppfiles.