-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fixing bug that only applied last field in the list of external field… #5690
base: development
Are you sure you want to change the base?
Fixing bug that only applied last field in the list of external field… #5690
Conversation
…s. Changed to add all fields. Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
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.
Ah, yeah that makes sense how that one slipped in.
ablastr::fields::MultiLevelVectorField B_ext = | ||
warpx.m_fields.get_mr_levels_alldirs(FieldType::hybrid_B_fp_external, warpx.finestLevel()); | ||
ablastr::fields::MultiLevelVectorField E_ext = | ||
warpx.m_fields.get_mr_levels_alldirs(FieldType::hybrid_E_fp_external, warpx.finestLevel()); | ||
|
||
// Zero E and B external fields prior to accumulating external fields |
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.
Extra spaces in the comment
Can you add or update the CI test to check multiple applied fields? |
I can split the applied field to exercise the list functionality. |
…wo equal components that are invoked through file reading and the implcit analytical field loading to exercise both options as well as test functionality for multiple external fields. Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
CI tests updated related to PR to #5275 |
Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
…s. Changed to add all fields.
This bug cropped up during code review and refactoring. I have re-implemented the field accumulations for multiply defined external fields. This was not caught by CI since the cylinder compression test only has a single uniform compression field.