From ecae03e2cea0552f3c9c094470d35c9a6f8bde8e Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Mon, 18 Dec 2023 10:37:52 -0800 Subject: [PATCH] remove debugging printf statements --- Source/Particles/Pusher/PushSelector.H | 12 ------------ Source/Particles/Pusher/UpdateMomentumBoris.H | 4 ---- 2 files changed, 16 deletions(-) diff --git a/Source/Particles/Pusher/PushSelector.H b/Source/Particles/Pusher/PushSelector.H index cfd02c77029..0d24a6dde37 100644 --- a/Source/Particles/Pusher/PushSelector.H +++ b/Source/Particles/Pusher/PushSelector.H @@ -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 { @@ -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, diff --git a/Source/Particles/Pusher/UpdateMomentumBoris.H b/Source/Particles/Pusher/UpdateMomentumBoris.H index 33e2bfbb3cd..50238fbda72 100644 --- a/Source/Particles/Pusher/UpdateMomentumBoris.H +++ b/Source/Particles/Pusher/UpdateMomentumBoris.H @@ -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 ); - } } } }