-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add introspection to get_sg_eos
interface
#382
Conversation
@Yurlungur @dholladay00 is going to be a bit unavailable for the next few days so I might need your review here. Also please check me on whether you agree with what I'm requiring to be non-negative or strictly positive. |
FYI - I did some reading on |
I strongly prefer |
Apparently it's a holdover from the ancient times when some keyboards had limited symbols believe it or not. Again, I just liked it because coming from a non-C++ background it seems more readable. I'll change it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve, with comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is a nice (and necessary) improvement. I have some nitpicks below, though.
…cutoff for PTE participation
@jonahm-LANL or @mauneyc-LANL any ideas on what I'm doing wrong here?
I added the |
@dholladay00 with the fix. I forgot that the |
@@ -39,6 +39,6 @@ for f in $(git grep --untracked -ail res -- :/*.hpp :/*.cpp); do | |||
if [ ${VERBOSE} -ge 1 ]; then | |||
echo ${f} | |||
fi | |||
${CFM} -i ${REPO}/${f} | |||
${CFM} -style=file -i ${REPO}/${f} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI - this change just brings the format script in line with what the CI is doing. I don't think its omission was really messing anything up, but I just made the change as part of trying to figure out why my clang format wasn't working.
@mauneyc-LANL and @Yurlungur let me know if the most recent changes have addressed your comments. I think the new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy now. Just one question below, but it is non-blocking.
I'm having trouble with one machine on our gitlab CI (network cloning issues... possibly proxy problems). Can one of you run the CI for me there? I think this is good to go otherwise. |
Looks like it's passing on gitlab. Going to pull the trigger. |
PR Summary
When the library is built with debug flags, this adds introspection functions to the
init
andfinal
functors in theget_sg_eos
interface.These functions check to make sure the values being passed are either zero or normal. I'm using slightly more complicated logic than just
is_finite
so that I can detect underflow values as well. For some quantities, I'm also including checks to make sure the returned value is strictly positive or non-negative where appropriate.PR Checklist
make format
command after configuring withcmake
.If preparing for a new release, in addition please check the following: