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 the time for the insulator boundary field evaluation #5488

Merged
merged 12 commits into from
Dec 7, 2024

Conversation

dpgrote
Copy link
Member

@dpgrote dpgrote commented Nov 26, 2024

In the application of the insulator boundary conditions, the field in the insulator is specified using an expression that can be a function of time. This PR updates the calls to that routine to pass in the correct time, for example the time at the half step or the end of the step. This requires passing the time down the call chain to the routines that apply the insulator boundaries which makes this a fairly sizable set of changes.

Note that in some places the variable names were changed to be more precise about which time is passed in. For example, using start_time whenever the time at the start of the step is expected.

@dpgrote dpgrote added the component: boundary PML, embedded boundaries, et al. label Nov 26, 2024
Get the timing correct in ThetaImplicitEM.cpp
Update variable names to be more precise in the time notation
Copy link
Member

Choose a reason for hiding this comment

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

Could you confirm that these changes in the checksums are expected? In particular, do you know which call(s) specifically were using the wrong time value and were thus fixed in this PR, leading to these changes in the checksums?

Copy link
Member Author

Choose a reason for hiding this comment

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

These changes were expected. Previously, in each call to EvolveB the time used when setting the boundary conditions was the start of the time step. With this PR, the time is the correct time, at the half time step and end time step for the split calls to EvolveB in the explicit solver.

@EZoni EZoni enabled auto-merge (squash) December 7, 2024 01:48
@EZoni EZoni merged commit 3f3c91d into ECP-WarpX:development Dec 7, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: boundary PML, embedded boundaries, et al.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants