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

Fixing bug that only applied last field in the list of external field… #5690

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

clarkse
Copy link
Member

@clarkse clarkse commented Feb 20, 2025

…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.

…s. Changed to add all fields.

Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
@clarkse clarkse added bug Something isn't working bug: affects latest release Bug also exists in latest release version component: fluid-ohm Related to the Ohm's law solver (with fluid electrons) labels Feb 20, 2025
Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
Copy link
Member

@roelof-groenewald roelof-groenewald left a 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
Copy link
Member

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

@dpgrote
Copy link
Member

dpgrote commented Feb 20, 2025

Can you add or update the CI test to check multiple applied fields?

@clarkse
Copy link
Member Author

clarkse commented Feb 20, 2025

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>
@clarkse
Copy link
Member Author

clarkse commented Feb 20, 2025

CI tests updated related to PR to #5275

RZ compression tests yield:
Et_rz
rho_rz
Bz_rz

Signed-off-by: S. Eric Clark <25495882+clarkse@users.noreply.github.com>
@clarkse
Copy link
Member Author

clarkse commented Feb 21, 2025

3D cylinder compression results test run to completion.

Ey_3d
rho_3d
Bz_3d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version bug Something isn't working component: fluid-ohm Related to the Ohm's law solver (with fluid electrons)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants