From 8ea5b0e1c7be97bc3dd6b54398d96c29f42123c4 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Wed, 6 Dec 2023 14:19:26 -0800 Subject: [PATCH] remove printf statements --- Source/Particles/Pusher/PushSelector.H | 4 ++-- Source/Particles/Pusher/UpdateMomentumBoris.H | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Particles/Pusher/PushSelector.H b/Source/Particles/Pusher/PushSelector.H index cfd02c77029..fb7971d242c 100644 --- a/Source/Particles/Pusher/PushSelector.H +++ b/Source/Particles/Pusher/PushSelector.H @@ -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 @@ -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) { diff --git a/Source/Particles/Pusher/UpdateMomentumBoris.H b/Source/Particles/Pusher/UpdateMomentumBoris.H index 33e2bfbb3cd..3b704929a8e 100644 --- a/Source/Particles/Pusher/UpdateMomentumBoris.H +++ b/Source/Particles/Pusher/UpdateMomentumBoris.H @@ -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 ); } } }