Skip to content

Commit

Permalink
add sqrt(4pi) to cgs B-field units
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Nov 4, 2024
1 parent c7273f9 commit b7394c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Units {
return code_energy_cgs() / kev_cgs * code_length_cgs() * code_length_cgs();
}
parthenon::Real code_magnetic_cgs() const {
return sqrt(code_mass_cgs()) / sqrt(code_length_cgs()) / code_time_cgs();
return std::sqrt(4.0 * M_PI) * sqrt(code_mass_cgs()) / sqrt(code_length_cgs()) / code_time_cgs();
}

// Physical Constants in code units
Expand Down

0 comments on commit b7394c0

Please sign in to comment.