Skip to content

Commit ca99dd4

Browse files
committed
Clean up debug prints in pgen/stochastic_B_field.cpp
1 parent 45aa6ee commit ca99dd4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/pgen/stochastic_B_field.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
6363
PARTHENON_REQUIRE_THROWS(pmesh->adaptive == false,
6464
"stochastic_B_field problem generator does not support AMR.");
6565

66-
std::cout << "Initializing stochastic B-field..." << std::endl;
67-
6866
// Get global number of cells
6967
auto Nx = pin->GetInteger("parthenon/mesh", "nx1");
7068
auto Ny = pin->GetInteger("parthenon/mesh", "nx2");
@@ -87,7 +85,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
8785

8886
assert(Lx == Ly && Ly == Lz);
8987
Real L = Lx;
90-
std::cout << "Box size L = " << L << std::endl;
9188

9289
// Read problem parameters
9390
const auto vx = pin->GetOrAddReal("problem/stochastic_B_field", "vx", 0.0);
@@ -152,10 +149,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
152149
auto fftManager = pmesh->GetFFTManager();
153150
auto outbox = fftManager->fourier_space_box();
154151

155-
std::cout<<"size_fourier_space_box: "
156-
<<fftManager->size_fourier_space_box()
157-
<<std::endl;
158-
159152
parthenon::ParArray1D<std::complex<double>> Bx_hat("Bx_hat", fftManager->size_fourier_space_box());
160153
parthenon::ParArray1D<std::complex<double>> By_hat("By_hat", fftManager->size_fourier_space_box());
161154
parthenon::ParArray1D<std::complex<double>> Bz_hat("Bz_hat", fftManager->size_fourier_space_box());
@@ -301,9 +294,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
301294
double current_B_rms = std::sqrt(global_B2_sum / denom_i);
302295
double norm_factor = B_rms / current_B_rms;
303296

304-
std::cout << "norm factor: " << norm_factor
305-
<< ", current B_rms: " << current_B_rms << std::endl;
306-
307297
Kokkos::parallel_for(
308298
"NormalizeB",
309299
Kokkos::RangePolicy<std::int64_t>(0, local_num_cells),
@@ -314,8 +304,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
314304
}
315305
);
316306

317-
std::cout<<"did the normalization"<<std::endl;
318-
319307
// Copy back to host for meshblock distribution
320308
auto Bx_h = Bx.GetHostMirrorAndCopy();
321309
auto By_h = By.GetHostMirrorAndCopy();
@@ -380,7 +368,6 @@ void ProblemGenerator(Mesh *pmesh, ParameterInput *pin, MeshData<Real> *md) {
380368
u(IB2, k, j, i) = By_h[idx];
381369
u(IB3, k, j, i) = Bz_h[idx];
382370

383-
if (idx < 10) std::cout<<"idx "<<idx<<" Bx "<<Bx_h[idx]<<std::endl;
384371
// Total energy (thermal + kinetic + magnetic); thermal energy calculated from ideal gas EOS
385372
u(IEN, k, j, i) = p0 / gm1 + 0.5*(mx*mx + my*my + mz*mz)/rho + 0.5*(Bx_h[idx]*Bx_h[idx] + By_h[idx]*By_h[idx] + Bz_h[idx]*Bz_h[idx]);
386373

0 commit comments

Comments
 (0)