Skip to content

Conversation

@PhilipDeegan
Copy link
Member

not ready, just here for TC tests

@PhilipDeegan PhilipDeegan marked this pull request as draft November 5, 2025 12:13
@coderabbitai
Copy link

coderabbitai bot commented Nov 5, 2025

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • WIP

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

electromag_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, allFromPython)

Check notice

Code scanning / CodeQL

Unused static variable

Static variable gtest_Simulator3dTest_allFromPython_registered_ is never read.
particles_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, electromag)

Check notice

Code scanning / CodeQL

Unused static variable

Static variable gtest_Simulator3dTest_electromag_registered_ is never read.
fluid_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, particles)

Check notice

Code scanning / CodeQL

Unused static variable

Static variable gtest_Simulator3dTest_particles_registered_ is never read.
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

Static variable gtest_Simulator3dTest_fluid_registered_ is never read.

#include "core/def/phare_mpi.hpp"

#include "test_diagnostics.ipp"

Check notice

Code scanning / CodeQL

Include header files only

The #include pre-processor directive should only be used to include header files.
{
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

Variable (unnamed local variable) is not used.
}
if constexpr (dimension == 3)
{
auto const& [start_y, __]

Check notice

Code scanning / CodeQL

Unused local variable

Variable __ is not used.
}
if constexpr (dimension == 3)
{
auto const& [start_y, __]

Check notice

Code scanning / CodeQL

Unused local variable

Variable (unnamed local variable) is not used.
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

Variable E is not used.
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

Variable weight is not used.
electromag_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, allFromPython)

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_Simulator3dTest_allFromPython_registered_ is never read.
particles_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, electromag)

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_Simulator3dTest_electromag_registered_ is never read.
fluid_test(TypeParam{job_file}, out_dir);
}

TYPED_TEST(Simulator3dTest, particles)

Check notice

Code scanning / CodeQL

Unused static variable Note test

Static variable gtest_Simulator3dTest_particles_registered_ is never read.
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

Static variable gtest_Simulator3dTest_fluid_registered_ is never read.
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

Variable (unnamed local variable) is not used.
{
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

Variable ___ is not used.
{
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

Variable (unnamed local variable) is not used.
}
if constexpr (dimension == 3)
{
auto const& [start_y, __]

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable __ is not used.
}
if constexpr (dimension == 3)
{
auto const& [start_y, __]

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable (unnamed local variable) is not used.
@PhilipDeegan PhilipDeegan force-pushed the 3d_new branch 2 times, most recently from e1b7238 to 4de43d2 Compare November 7, 2025 15:11
Comment on lines 9 to 10
// #include "core/utilities/range/range.hpp"
// #include "core/data/particles/particle.hpp"

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.

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

Variable (unnamed local variable) is not used.
};

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

Variable (unnamed local variable) is not used.

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

Variable (unnamed local variable) is not used.
};

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

Variable (unnamed local variable) is not used.
@PhilipDeegan PhilipDeegan force-pushed the 3d_new branch 14 times, most recently from 76f6bfb to be02045 Compare November 11, 2025 16:42

def diff_hierarchy(hier):
import pyphare.core.box as boxm
from pyphare.pharesee.geometry import hierarchy_overlaps

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
pyphare.pharesee.geometry
begins an import cycle.
)

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

Variable append is not used.
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

Variable border_patches is not used.
Comment on lines 303 to 304
# def borders_per(patch):
# return "".join(

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
Comment on lines 312 to 315
# 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

This comment appears to contain commented-out code.
Comment on lines 321 to 328
# 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

This comment appears to contain commented-out code.
Comment on lines 330 to 353
# 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

This comment appears to contain commented-out code.
@PhilipDeegan PhilipDeegan force-pushed the 3d_new branch 3 times, most recently from b7a0411 to 018c485 Compare December 10, 2025 12:43
@PhilipDeegan PhilipDeegan force-pushed the 3d_new branch 4 times, most recently from ce74608 to 211e0e4 Compare December 15, 2025 23:34
#


from .base import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pyphare.pharesee.phare_vtk.base](1) does not define '__all__'.
#
#

from .base import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace

Import pollutes the enclosing namespace, as the imported module [pyphare.pharesee.phare_vtk.base](1) does not define '__all__'.
#


from .base import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace Note

Import pollutes the enclosing namespace, as the imported module
pyphare.pharesee.phare_vtk.base
does not define '__all__'.
#
#

from .base import *

Check notice

Code scanning / CodeQL

'import *' may pollute namespace Note

Import pollutes the enclosing namespace, as the imported module
pyphare.pharesee.phare_vtk.base
does not define '__all__'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant