Skip to content

Commit

Permalink
additional comment updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinRayAngus committed Aug 26, 2024
1 parent 88ed376 commit 226473e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Source/FieldSolver/ImplicitSolvers/SemiImplicitEM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ void SemiImplicitEM::OneStep ( amrex::Real a_time,
// Fields have Eg^{n}, Bg^{n-1/2}
// Particles have up^{n} and xp^{n}.

// Save the values at the start of the time step,
// Save up and xp at the start of the time step
m_WarpX->SaveParticlesAtImplicitStepStart ( );

// Save the fields at the start of the step
// Save Eg at the start of the time step
m_Eold.Copy( m_WarpX->getMultiLevelField(FieldType::Efield_fp) );

// Advance WarpX owned Bfield_fp to t_{n+1/2}
Expand Down Expand Up @@ -104,12 +104,12 @@ void SemiImplicitEM::ComputeRHS ( WarpXSolverVec& a_RHS,
int a_nl_iter,
bool a_from_jacobian )
{
// update WarpX-owned Efield_fp using current state of E from
// Update WarpX-owned Efield_fp using current state of Eg from
// the nonlinear solver at time n+theta
m_WarpX->SetElectricFieldAndApplyBCs( a_E );

// Self consistently update particle positions and velocities using the
// current state of the fields E and B. Deposit current density at time n+1/2.
// Update particle positions and velocities using the current state
// of Eg and Bg. Deposit current density at time n+1/2
m_WarpX->ImplicitPreRHSOp( a_time, a_dt, a_nl_iter, a_from_jacobian );

// RHS = cvac^2*0.5*dt*( curl(Bg^{n+1/2}) - mu0*Jg^{n+1/2} )
Expand Down
12 changes: 6 additions & 6 deletions Source/FieldSolver/ImplicitSolvers/ThetaImplicitEM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ void ThetaImplicitEM::OneStep ( const amrex::Real a_time,
// Fields have Eg^{n} and Bg^{n}
// Particles have up^{n} and xp^{n}.

// Save the values at the start of the time step,
// Save up and xp at the start of the time step
m_WarpX->SaveParticlesAtImplicitStepStart ( );

// Save the fields at the start of the step
// Save Eg at the start of the time step
m_Eold.Copy( m_WarpX->getMultiLevelField(FieldType::Efield_fp) );

const int num_levels = static_cast<int>(m_Bold.size());
Expand Down Expand Up @@ -129,12 +129,12 @@ void ThetaImplicitEM::ComputeRHS ( WarpXSolverVec& a_RHS,
int a_nl_iter,
bool a_from_jacobian )
{
// update WarpX-owned Efield_fp and Bfield_fp using current state of E from
// the nonlinear solver at time n+theta
// Update WarpX-owned Efield_fp and Bfield_fp using current state of
// Eg from the nonlinear solver at time n+theta
UpdateWarpXFields( a_E, a_time, a_dt );

// Self consistently update particle positions and velocities using the
// current state of the fields E and B. Deposit current density at time n+1/2.
// Update particle positions and velocities using the current state
// of Eg and Bg. Deposit current density at time n+1/2
m_WarpX->ImplicitPreRHSOp( a_time, a_dt, a_nl_iter, a_from_jacobian );

// RHS = cvac^2*m_theta*dt*( curl(Bg^{n+theta}) - mu0*Jg^{n+1/2} )
Expand Down

0 comments on commit 226473e

Please sign in to comment.