Skip to content

Commit

Permalink
fix miscellaneous issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Oct 29, 2024
1 parent 285cd75 commit dc5b557
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions multi_physics/QED/python_bindings/pxr_qed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ template <typename Real>
std::string float_to_string(const Real num)
{
std::stringstream ss;
constexpr auto precision = 8;
ss.precision(precision);
ss << num;
return ss.str();
}
Expand Down Expand Up @@ -411,7 +413,7 @@ chi_ele_pos_wrapper(
*p_ex = nullptr, *p_ey = nullptr, *p_ez = nullptr,
*p_bx = nullptr, *p_by = nullptr, *p_bz = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many,
Expand Down Expand Up @@ -475,7 +477,7 @@ bw_get_optical_depth_wrapper(
const REAL
*p_unf_zero_one_minus_epsi = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many, p_unf_zero_one_minus_epsi)=
Expand Down Expand Up @@ -511,7 +513,7 @@ bw_get_dn_dt_wrapper(
const REAL
*p_energy_phot = nullptr, *p_chi_phot = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many,
Expand Down Expand Up @@ -681,7 +683,7 @@ qs_get_optical_depth_wrapper(
const REAL
*p_unf_zero_one_minus_epsi = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many, p_unf_zero_one_minus_epsi)=
Expand Down Expand Up @@ -717,7 +719,7 @@ qs_get_dn_dt_wrapper(
const REAL
*p_energy_part = nullptr, *p_chi_part = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many,
Expand Down Expand Up @@ -871,7 +873,7 @@ sc_pair_production_rate_wrapper(
*p_ex = nullptr, *p_ey = nullptr, *p_ez = nullptr,
*p_bx = nullptr, *p_by = nullptr, *p_bz = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many,
Expand Down Expand Up @@ -920,7 +922,7 @@ sc_expected_pair_number_wrapper(
*p_ex = nullptr, *p_ey = nullptr, *p_ez = nullptr,
*p_bx = nullptr, *p_by = nullptr, *p_bz = nullptr;

size_t how_many = 0;
int how_many = 0;

std::tie(
how_many,
Expand Down

0 comments on commit dc5b557

Please sign in to comment.