Skip to content
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

Fix position check after propagating #1094

Merged
merged 5 commits into from
Feb 1, 2024

Conversation

amandalund
Copy link
Contributor

Sorry, missed this in the review of #1090.

@amandalund amandalund added bug Something isn't working field Magnetic field and propagation labels Jan 31, 2024
Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I guess the testing wouldn't "fail" but we'd just get a billion error messages 😂 sorry.

Do you think you (or I) could add a test for the error message? We could add one to the along-step test, use the scoped logger, and make a giant (km) cube of lead and start the particle far enough away and low enough energy that x + step == x.

@amandalund
Copy link
Contributor Author

That sounds good, I can try to put together a test.

@sethrj
Copy link
Member

sethrj commented Feb 1, 2024

@amandalund I reproduced locally the CI failure you're seeing:

122: C++ exception with description "/Users/seth/Code/celeritas-temp/src/celeritas/ext/GeantGeoParams.cc:250:
122: celeritas: internal assertion failed: lv" thrown in the test body.

Pretty easy fix; this is just to geant4 not doing cleanup correctly. We just have to add the correct FILTER arguments in the testing framework so geant4 internals are all reset.

Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks and nice test!

@sethrj sethrj enabled auto-merge (squash) February 1, 2024 21:59
@amandalund
Copy link
Contributor Author

Ahh, thanks for reproducing and fixing that failure @sethrj!

@sethrj sethrj merged commit c472eea into celeritas-project:develop Feb 1, 2024
18 of 21 checks passed
@amandalund
Copy link
Contributor Author

Oops I think I needed to update the test to work with other unit systems...

@sethrj
Copy link
Member

sethrj commented Feb 1, 2024

WTF, why did it merge with the checks unpassed...

EDIT: grrr... https://emmer.dev/blog/skippable-github-status-checks-aren-t-really-required/

@sethrj
Copy link
Member

sethrj commented Feb 1, 2024

Also can you add

else
{
    EXPECT_TRUE(scoped_log_.empty()) << scoped_log_;
}

to the if CELERITAS_DEBUG? And should we also have a similar "scoped long" on a simpler case that's known to be correct? 😬

@amandalund
Copy link
Contributor Author

Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working field Magnetic field and propagation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants