Conversation
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| electromag_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, allFromPython) |
Check notice
Code scanning / CodeQL
Unused static variable
| particles_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, electromag) |
Check notice
Code scanning / CodeQL
Unused static variable
| fluid_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, particles) |
Check notice
Code scanning / CodeQL
Unused static variable
| static std::string const job_file = "job_3d"; | ||
| static std::string const out_dir = "phare_outputs/diags_3d/"; | ||
|
|
||
| TYPED_TEST(Simulator3dTest, fluid) |
Check notice
Code scanning / CodeQL
Unused static variable
|
|
||
| #include "core/def/phare_mpi.hpp" | ||
|
|
||
| #include "test_diagnostics.ipp" |
Check notice
Code scanning / CodeQL
Include header files only
| { | ||
| auto const& [start_y, __] | ||
| = layout.physicalStartToEnd(PHARE::core::QtyCentering::dual, PHARE::core::Direction::Y); | ||
| auto const& [start_z, ___] |
Check notice
Code scanning / CodeQL
Unused local variable
| } | ||
| if constexpr (dimension == 3) | ||
| { | ||
| auto const& [start_y, __] |
Check notice
Code scanning / CodeQL
Unused local variable
| } | ||
| if constexpr (dimension == 3) | ||
| { | ||
| auto const& [start_y, __] |
Check notice
Code scanning / CodeQL
Unused local variable
| auto& J = hybridModel.state.J; | ||
| auto& Vi = hybridModel.state.ions.velocity(); | ||
| auto& Ni = hybridModel.state.ions.chargeDensity(); | ||
| auto& E = hybridModel.state.electromag.E; |
Check notice
Code scanning / CodeQL
Unused local variable
| using FineParticle = decltype(particles[0]); // may be a reference | ||
|
|
||
| core::apply(patterns, [&](auto const& pattern) { | ||
| auto weight = static_cast<Weight_t>(pattern.weight_); |
Check notice
Code scanning / CodeQL
Unused local variable
| electromag_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, allFromPython) |
Check notice
Code scanning / CodeQL
Unused static variable Note test
| particles_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, electromag) |
Check notice
Code scanning / CodeQL
Unused static variable Note test
| fluid_test(TypeParam{job_file}, out_dir); | ||
| } | ||
|
|
||
| TYPED_TEST(Simulator3dTest, particles) |
Check notice
Code scanning / CodeQL
Unused static variable Note test
| static std::string const job_file = "job_3d"; | ||
| static std::string const out_dir = "phare_outputs/diags_3d/"; | ||
|
|
||
| TYPED_TEST(Simulator3dTest, fluid) |
Check notice
Code scanning / CodeQL
Unused static variable Note test
| return std::make_tuple(criter_x, criter_y, criter_z); | ||
| }; | ||
|
|
||
| auto const& [Bx_x, Bx_y, Bx_z] = field_diff(Bx); |
Check notice
Code scanning / CodeQL
Unused local variable Note
| { | ||
| auto const& [start_y, __] | ||
| = layout.physicalStartToEnd(PHARE::core::QtyCentering::dual, PHARE::core::Direction::Y); | ||
| auto const& [start_z, ___] |
Check notice
Code scanning / CodeQL
Unused local variable Note
| { | ||
| auto const& [start_y, __] | ||
| = layout.physicalStartToEnd(PHARE::core::QtyCentering::dual, PHARE::core::Direction::Y); | ||
| auto const& [start_z, ___] |
Check notice
Code scanning / CodeQL
Unused local variable Note
| } | ||
| if constexpr (dimension == 3) | ||
| { | ||
| auto const& [start_y, __] |
Check notice
Code scanning / CodeQL
Unused local variable Note
| } | ||
| if constexpr (dimension == 3) | ||
| { | ||
| auto const& [start_y, __] |
Check notice
Code scanning / CodeQL
Unused local variable Note
e1b7238 to
4de43d2
Compare
src/core/numerics/pusher/fusher.hpp
Outdated
| // #include "core/utilities/range/range.hpp" | ||
| // #include "core/data/particles/particle.hpp" |
Check notice
Code scanning / CodeQL
Commented-out code
08883a9 to
d04e167
Compare
|
|
||
| auto const& [Bx_x, Bx_y, Bx_z] = field_diff(Bx); | ||
| auto const& [By_x, By_y, By_z] = field_diff(By); | ||
| auto const& [Bz_x, Bz_y, Bz_z] = field_diff(Bz); |
Check notice
Code scanning / CodeQL
Unused local variable
| }; | ||
|
|
||
| auto const& [Bx_x, Bx_y, Bx_z] = field_diff(Bx); | ||
| auto const& [By_x, By_y, By_z] = field_diff(By); |
Check notice
Code scanning / CodeQL
Unused local variable
|
|
||
| auto const& [Bx_x, Bx_y, Bx_z] = field_diff(Bx); | ||
| auto const& [By_x, By_y, By_z] = field_diff(By); | ||
| auto const& [Bz_x, Bz_y, Bz_z] = field_diff(Bz); |
Check notice
Code scanning / CodeQL
Unused local variable Note
| }; | ||
|
|
||
| auto const& [Bx_x, Bx_y, Bx_z] = field_diff(Bx); | ||
| auto const& [By_x, By_y, By_z] = field_diff(By); |
Check notice
Code scanning / CodeQL
Unused local variable Note
76f6bfb to
be02045
Compare
3ac1981 to
a1184f5
Compare
a6e1ae8 to
0b2224d
Compare
f3011d7 to
36d30b9
Compare
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable
| #include "core/utilities/box/box_span.hpp" | ||
|
|
||
| #include "field_linear_refine.hpp" | ||
| // #include "field_linear_refine.hpp" |
Check notice
Code scanning / CodeQL
Commented-out code
| auto s_b_rows = s_b_slabs.begin(); | ||
| for (; s_f_rows != s_f_slabs.end(); ++s_f_rows, ++d_f_rows, ++s_b_rows, ++d_b_rows) | ||
| { | ||
| auto const& [d_amr_point, _] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| auto s_b_rows = s_b_slabs.begin(); | ||
| for (; s_f_rows != s_f_slabs.end(); ++s_f_rows, ++d_f_rows, ++s_b_rows, ++d_b_rows) | ||
| { | ||
| auto const& [d_amr_point, _] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| for (; s_f_rows != s_f_slabs.end(); ++s_f_rows, ++d_f_rows, ++s_b_rows, ++d_b_rows) | ||
| { | ||
| auto const& [d_amr_point, _] = *d_b_rows; | ||
| auto const& [s_amr_point, __] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| for (; s_f_rows != s_f_slabs.end(); ++s_f_rows, ++d_f_rows, ++s_b_rows, ++d_b_rows) | ||
| { | ||
| auto const& [d_amr_point, _] = *d_b_rows; | ||
| auto const& [s_amr_point, __] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| { | ||
| auto const& [d_amr_point, _] = *d_b_rows; | ||
| auto const& [s_amr_point, __] = *s_b_rows; | ||
| auto&& [d_row, d_lcl_point] = *d_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| auto const& [d_amr_point, _] = *d_b_rows; | ||
| auto const& [s_amr_point, __] = *s_b_rows; | ||
| auto&& [d_row, d_lcl_point] = *d_f_rows; | ||
| auto&& [s_row, s_lcl_point] = *s_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
4fb4ce8 to
df46bec
Compare
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
|
||
| for (auto rowit = slab.begin(); rowit != slab.end(); ++rowit) | ||
| { | ||
| auto const& [start, size] = *rowit; |
Check notice
Code scanning / CodeQL
Unused local variable Note test
|
|
||
| #include "field_linear_refine.hpp" | ||
|
|
||
| // #include "field_linear_refine.hpp" |
Check notice
Code scanning / CodeQL
Commented-out code Note
| std::size_t row_idx = 0; | ||
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| std::size_t row_idx = 0; | ||
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; | ||
|
|
||
| auto&& [d_row, d_lcl_point] = *d_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| auto const& [s_amr_point, s_size] = *s_b_rows; | ||
|
|
||
| auto&& [d_row, d_lcl_point] = *d_f_rows; | ||
| auto&& [s_row, s_lcl_point] = *s_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable Note
| std::size_t row_idx = 0; | ||
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| std::size_t row_idx = 0; | ||
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| for (; d_f_rows != d_f_slabs.end(); ++d_f_rows, ++d_b_rows, ++row_idx) | ||
| { | ||
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| auto const& [d_amr_point, d_size] = *d_b_rows; | ||
| auto const& [s_amr_point, s_size] = *s_b_rows; | ||
|
|
||
| auto&& [d_row, d_lcl_point] = *d_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
| auto const& [s_amr_point, s_size] = *s_b_rows; | ||
|
|
||
| auto&& [d_row, d_lcl_point] = *d_f_rows; | ||
| auto&& [s_row, s_lcl_point] = *s_f_rows; |
Check notice
Code scanning / CodeQL
Unused local variable
b777a75 to
34bcf85
Compare
|
|
||
| void deallocate(T* const p) noexcept | ||
| { | ||
| if (p) |
Check notice
Code scanning / CodeQL
Guarded Free
| restart_db->putVector("field_" + grids[c].name(), grids[c].vector()); | ||
| restart_db->putDoubleArray("field_" + grids[c].name(), grids[c].data(), | ||
| grids[c].size()); | ||
| // restart_db->putVector("field_" + grids[c].name(), grids[c].vector()); |
Check notice
Code scanning / CodeQL
Commented-out code
e4f162d to
428cf99
Compare
|
|
||
| void deallocate(T* const p) noexcept | ||
| { | ||
| if (p) |
Check notice
Code scanning / CodeQL
Guarded Free Note
| restart_db->putVector("field_" + grids[c].name(), grids[c].vector()); | ||
| restart_db->putDoubleArray("field_" + grids[c].name(), grids[c].data(), | ||
| grids[c].size()); | ||
| // restart_db->putVector("field_" + grids[c].name(), grids[c].vector()); |
Check notice
Code scanning / CodeQL
Commented-out code Note
not ready, just here for TC tests