-
Notifications
You must be signed in to change notification settings - Fork 196
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
Conversation
Get the timing correct in ThetaImplicitEM.cpp Update variable names to be more precise in the time notation
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.
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?
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.
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.
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.