@@ -1098,7 +1098,7 @@ PYBIND11_MODULE(pxr_qed, m) {
10981098 .def (" interp" ,
10991099 [&](bw_dndt_lookup_table &self, const pyArr& chi_phot){
11001100 const REAL* p_chi_phot = nullptr ;
1101- size_t how_many = 0 ;
1101+ int how_many = 0 ;
11021102 std::tie (how_many, p_chi_phot)=
11031103 check_and_get_pointers (chi_phot);
11041104
@@ -1152,7 +1152,7 @@ PYBIND11_MODULE(pxr_qed, m) {
11521152 },
11531153 py::arg (" file_name" ))
11541154 .def (" load_from" ,
1155- [&](bw_pair_prod_lookup_table &self, const std::string file_name){
1155+ [&](bw_pair_prod_lookup_table &self, const std::string& file_name){
11561156 auto input = std::ifstream (file_name,
11571157 std::ios::ate | std::ios::binary);
11581158 if ( !input ){
@@ -1173,7 +1173,7 @@ PYBIND11_MODULE(pxr_qed, m) {
11731173 const pyArr& chi_phot, const pyArr& unf_zero_one_minus_epsi){
11741174 const REAL
11751175 *p_chi_phot = nullptr , *p_unf_zero_one_minus_epsi = nullptr ;
1176- size_t how_many = 0 ;
1176+ int how_many = 0 ;
11771177 std::tie (how_many, p_chi_phot, p_unf_zero_one_minus_epsi)=
11781178 check_and_get_pointers (chi_phot, unf_zero_one_minus_epsi);
11791179
@@ -1307,7 +1307,7 @@ PYBIND11_MODULE(pxr_qed, m) {
13071307 },
13081308 py::arg (" file_name" ))
13091309 .def (" load_from" ,
1310- [&](qs_dndt_lookup_table &self, const std::string file_name){
1310+ [&](qs_dndt_lookup_table &self, const std::string& file_name){
13111311 auto input = std::ifstream (file_name,
13121312 std::ios::ate | std::ios::binary);
13131313 if ( !input ){
@@ -1326,7 +1326,7 @@ PYBIND11_MODULE(pxr_qed, m) {
13261326 .def (" interp" ,
13271327 [&](qs_dndt_lookup_table &self, const pyArr& chi_part){
13281328 const REAL* p_chi_part = nullptr ;
1329- size_t how_many = 0 ;
1329+ int how_many = 0 ;
13301330 std::tie (how_many, p_chi_part)=
13311331 check_and_get_pointers (chi_part);
13321332
@@ -1365,7 +1365,7 @@ PYBIND11_MODULE(pxr_qed, m) {
13651365 py::arg (" do_regular" ) = py::bool_ (true ),
13661366 py::arg (" verbose" ) = py::bool_ (true ))
13671367 .def (" save_as" ,
1368- [&](const qs_photon_emission_lookup_table &self, const std::string file_name){
1368+ [&](const qs_photon_emission_lookup_table &self, const std::string& file_name){
13691369 if (!self.is_init ()){
13701370 throw_error (" Table must be initialized!" );
13711371 }
@@ -1380,7 +1380,7 @@ PYBIND11_MODULE(pxr_qed, m) {
13801380 },
13811381 py::arg (" file_name" ))
13821382 .def (" load_from" ,
1383- [&](qs_photon_emission_lookup_table &self, const std::string file_name){
1383+ [&](qs_photon_emission_lookup_table &self, const std::string& file_name){
13841384 auto input = std::ifstream (file_name,
13851385 std::ios::ate | std::ios::binary);
13861386 if ( !input ){
@@ -1401,7 +1401,7 @@ PYBIND11_MODULE(pxr_qed, m) {
14011401 const pyArr& chi_part, const pyArr& unf_zero_one_minus_epsi){
14021402 const REAL
14031403 *p_chi_part = nullptr , *p_unf_zero_one_minus_epsi = nullptr ;
1404- size_t how_many = 0 ;
1404+ int how_many = 0 ;
14051405 std::tie (how_many, p_chi_part, p_unf_zero_one_minus_epsi)=
14061406 check_and_get_pointers (chi_part, unf_zero_one_minus_epsi);
14071407
0 commit comments