Skip to content

Commit

Permalink
remove debugging printf statements
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Dec 18, 2023
1 parent a17c62e commit ecae03e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions Source/Particles/Pusher/PushSelector.H
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ void doParticlePush(const GetParticlePosition& GetPosition,
#endif
UpdatePosition(x, y, z, ux, uy, uz, dt );
SetPosition(i, x, y, z);
#ifdef PULSAR
if ( std::sqrt(x*x + y*y + z*z) > 125200 )
{
printf(" ux_pre = %e uy_pre = %e uz_pre = %e ux_post = %e uy_post = %e uz_post= %e x_pre = %f y_pre=%f z_pre=%f x=%f y=%f z=%f \n", ux_pre, uy_pre, uz_pre, ux, uy, uz, x_pre, y_pre, z_pre, x, y, z );
}
#endif
} else
#endif
{
Expand Down Expand Up @@ -159,12 +153,6 @@ void doParticlePush(const GetParticlePosition& GetPosition,
#endif
UpdatePosition(x, y, z, ux, uy, uz, dt );
SetPosition(i, x, y, z);
#ifdef PULSAR
if ( std::sqrt(x*x + y*y + z*z) > 125200 )
{
printf(" ux_pre = %e uy_pre = %e uz_pre = %e ux_post = %e uy_post = %e uz_post= %e x_pre = %f y_pre=%f z_pre=%f x=%f y=%f z=%f \n", ux_pre, uy_pre, uz_pre, ux, uy, uz, x_pre, y_pre, z_pre, x, y, z );
}
#endif
} else if (pusher_algo == ParticlePusherAlgo::Vay) {
UpdateMomentumVay( ux, uy, uz,
Ex, Ey, Ez, Bx,
Expand Down
4 changes: 0 additions & 4 deletions Source/Particles/Pusher/UpdateMomentumBoris.H
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ void UpdateMomentumBoris(

// debugging
amrex::Real abs_u_post = std::sqrt(ux*ux + uy*uy + uz*uz);
if ( abs_u_post > abs_u_pre || (drift_mag > 0.99999999*PhysConst::c))
{
printf(" premom = %e postmom = %e gammadrift = %e gammanewprime = %e B_sq = %e Eprime_sq = %e drift_mag = %e \n", abs_u_pre, abs_u_post, gamma_drift, gamma_new_prime, B_sq, Eprime_sq, drift_mag );
}
}
}
}
Expand Down

0 comments on commit ecae03e

Please sign in to comment.