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

Remove theta() function from ImplicitSolver base class. #5441

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

JustinRayAngus
Copy link
Contributor

This PR provides some minor cleanup to the implicit solvers.

  1. Added the simulation time step (potentially adaptive) as a member to the ImplicitSolver base class. This removes the need to circularly pass a_dt from the implicit solver to the nonlinear solver and back to functions in the implicit solver class (e.g., ComputeRHS()).

  2. The time step passed to m_nlsolver->Solve() inside OneStep() from the Implicit solvers is now the appropriate fractional time step. This removes the need for the theta() function called by the preconditioner. The theta() function is removed from the ImplicitSolver base class.

@JustinRayAngus JustinRayAngus added cleaning Clean code, improve readability component: implicit solvers Anything related to implicit solvers labels Nov 4, 2024
@JustinRayAngus JustinRayAngus requested a review from debog November 4, 2024 21:45
@JustinRayAngus JustinRayAngus force-pushed the implicit_mod branch 3 times, most recently from d48ff80 to d1439af Compare November 11, 2024 16:43
@@ -83,12 +83,9 @@ public:
virtual void ComputeRHS ( WarpXSolverVec& a_RHS,
Copy link
Member

Choose a reason for hiding this comment

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

I notice that the comments do not have the list of input parameters for the routines. This is not for this PR, but can be added in the future.

Copy link
Member

@dpgrote dpgrote left a comment

Choose a reason for hiding this comment

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

Looks good!

@JustinRayAngus JustinRayAngus merged commit ad6879d into ECP-WarpX:development Nov 15, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability component: implicit solvers Anything related to implicit solvers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants