-
Notifications
You must be signed in to change notification settings - Fork 30
WIP 3d #1100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
WIP 3d #1100
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 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
| ) | ||
|
|
||
| def append(ref_pd, cmp_pd, refPatch, cmpPatch, overlap, offset_tuple): | ||
| def append(name, ref_pd, cmp_pd, refPatch, cmpPatch, overlap, offset_tuple): |
Check notice
Code scanning / CodeQL
Unused local variable
pyphare/pyphare/pharesee/geometry.py
Outdated
| gbox = boxm.grow(patch.box, [1]*dim) | ||
| return gbox * domain_box != gbox | ||
|
|
||
| border_patches = [patch for patch in patches if is_border_patch(patch)] |
Check notice
Code scanning / CodeQL
Unused local variable
pyphare/pyphare/pharesee/geometry.py
Outdated
| # def borders_per(patch): | ||
| # return "".join( |
Check notice
Code scanning / CodeQL
Commented-out code
pyphare/pyphare/pharesee/geometry.py
Outdated
| # if dim == 1 and len(patches) > 0: | ||
| # patches = [patches[0], patches[-1]] | ||
|
|
||
| # # filter out patches not near a border |
Check notice
Code scanning / CodeQL
Commented-out code
pyphare/pyphare/pharesee/geometry.py
Outdated
| # for patch_i, ref_patch in enumerate(border_patches): | ||
| # in_sides = "".join(borders_per_patch[ref_patch]) | ||
| # assert in_sides in shifts, f"{in_sides} not found" | ||
|
|
||
| # for ref_pdname, ref_pd in ref_patch.patch_datas.items(): | ||
| # for shift in shifts[in_sides]: | ||
| # for cmp_patch in border_patches[ | ||
| # patch_i: |
Check notice
Code scanning / CodeQL
Commented-out code
pyphare/pyphare/pharesee/geometry.py
Outdated
| # for cmp_pdname, cmp_pd in cmp_patch.patch_datas.items(): | ||
| # if cmp_pdname == ref_pdname: | ||
| # gb1 = ref_pd.ghost_box | ||
| # gb2 = cmp_pd.ghost_box | ||
|
|
||
| # offset = np.asarray(shift) | ||
| # overlap = gb1 * boxm.shift(gb2, -offset) | ||
|
|
||
| # if overlap is not None: | ||
| # other_ovrlp = boxm.shift(gb1, offset) * gb2 | ||
| # assert other_ovrlp is not None | ||
|
|
||
| # if ref_pd.quantity == "field": | ||
| # overlap = toFieldBox(overlap, ref_pd) | ||
| # other_ovrlp = toFieldBox(other_ovrlp, ref_pd) | ||
|
|
||
| # append( | ||
| # ref_pdname, | ||
| # ref_pd, | ||
| # cmp_pd, | ||
| # ref_patch, | ||
| # cmp_patch, | ||
| # overlap, | ||
| # (zero_offset, (-offset).tolist()), |
Check notice
Code scanning / CodeQL
Commented-out code
b7a0411 to
018c485
Compare
ce74608 to
211e0e4
Compare
| # | ||
|
|
||
|
|
||
| from .base import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace
| # | ||
| # | ||
|
|
||
| from .base import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace
| # | ||
|
|
||
|
|
||
| from .base import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace Note
pyphare.pharesee.phare_vtk.base
| # | ||
| # | ||
|
|
||
| from .base import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace Note
not ready, just here for TC tests