Skip to content

Commit

Permalink
remove printf statements
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Dec 6, 2023
1 parent ee910ae commit 8ea5b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Particles/Pusher/PushSelector.H
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void doParticlePush(const GetParticlePosition& GetPosition,
#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 );
// 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
Expand Down Expand Up @@ -162,7 +162,7 @@ void doParticlePush(const GetParticlePosition& GetPosition,
#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 );
// 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) {
Expand Down
2 changes: 1 addition & 1 deletion Source/Particles/Pusher/UpdateMomentumBoris.H
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void UpdateMomentumBoris(
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 );
// 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 8ea5b0e

Please sign in to comment.