Skip to content

Commit

Permalink
Comment print statements used for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 authored Sep 13, 2024
1 parent 2297ae5 commit db26dde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/particles/diagnostics/CovarianceMatrixMath.H
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ namespace impactx::diagnostics

}

std::cout << "Discriminant, Q, R " << discriminant << " " << Q << " " << R << "\n";
std::cout << "Return x1, x2, x3 " << x1 << " " << x2 << " " << x3 << "\n";
//std::cout << "Discriminant, Q, R " << discriminant << " " << Q << " " << R << "\n";
//std::cout << "Return x1, x2, x3 " << x1 << " " << x2 << " " << x3 << "\n";

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

roots = std::make_tuple(x1,x2,x3);
return roots;
Expand Down
4 changes: 2 additions & 2 deletions src/particles/diagnostics/EmittanceInvariants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace impactx::diagnostics
I4 = +impactx::diagnostics::TraceMat(S4)/2.0_prt;
I6 = -impactx::diagnostics::TraceMat(S6)/2.0_prt;

std::cout << "Return I2, I4, I6 " << I2 << " " << I4 << " " << I6 << "\n";
//std::cout << "Return I2, I4, I6 " << I2 << " " << I4 << " " << I6 << "\n";

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

invariants = std::make_tuple(I2,I4,I6);
return invariants;
Expand Down Expand Up @@ -119,7 +119,7 @@ namespace impactx::diagnostics
amrex::ParticleReal d = -pow(I2,3)/6.0_prt + I2*I4/2.0_prt - I6/3.0_prt;

// Return the cubic coefficients
std::cout << "Return a,b,c,d " << a << " " << b << " " << c << " " << d << "\n";
//std::cout << "Return a,b,c,d " << a << " " << b << " " << c << " " << d << "\n";

// Solve for the roots to obtain the eigenemittances.
roots = CubicRoots(a,b,c,d);
Expand Down
2 changes: 1 addition & 1 deletion src/particles/diagnostics/ReducedBeamCharacteristics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ namespace impactx::diagnostics
Sigma(6,1) = 1.0;

std::tuple <amrex::ParticleReal,amrex::ParticleReal,amrex::ParticleReal> emittances = Eigenemittances(Sigma);
std::cout << "Emittances = " << std::get<0>(emittances) << " " << std::get<1>(emittances) << " " << std::get<2>(emittances);
//std::cout << "Emittances = " << std::get<0>(emittances) << " " << std::get<1>(emittances) << " " << std::get<2>(emittances);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

return data;
}
Expand Down

0 comments on commit db26dde

Please sign in to comment.