Skip to content
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

test_refine_field shape mismatch #853

Open
PhilipDeegan opened this issue Jun 7, 2024 · 2 comments
Open

test_refine_field shape mismatch #853

PhilipDeegan opened this issue Jun 7, 2024 · 2 comments
Labels
bug 🔥 Something isn't working test
Milestone

Comments

@PhilipDeegan
Copy link
Member

when running tests/simulator/refinement/test_2d_10_core.py with mpirun -n 10

  File "/path/to/git/phare/master/tests/simulator/refinement/test_2d_10_core.py", line 206, in <module>
    main()
  File "/path/to/git/phare/master/tests/simulator/refinement/test_2d_10_core.py", line 202, in main
    Simulator(sim, post_advance=post_advance).run()
  File "/path/to/git/phare/master/pyphare/pyphare/simulator/simulator.py", line 164, in run
    self.advance()
  File "/path/to/git/phare/master/pyphare/pyphare/simulator/simulator.py", line 142, in advance
    self.post_advance(self.cpp_sim.currentTime())
  File "/path/to/git/phare/master/tests/simulator/refinement/test_2d_10_core.py", line 179, in post_advance
    test.base_test_field_level_ghosts_via_subcycles_and_coarser_interpolation(
  File "/path/to/git/phare/master/tests/simulator/test_advance.py", line 582, in base_test_field_level_ghosts_via_subcycles_and_coarser_interpolation
    interpolated_fields = refine_time_interpolate(
                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/git/phare/master/tests/amr/data/field/refine/test_refine_field.py", line 399, in refine_time_interpolate
    refine_algo(
  File "/path/to/git/phare/master/tests/amr/data/field/refine/test_refine_field.py", line 98, in refine_electric
    fine_data[1::2, ::2] = coarse_data[:, :]
@nicolasaunai
Copy link
Member

Note: that test is not run currently on nightly builds as it is MPI and we run only serial tests.
To investigate...

@nicolasaunai nicolasaunai added bug 🔥 Something isn't working test labels Jun 7, 2024
@nicolasaunai nicolasaunai moved this to Fix me 🔥 in PHARE Roadmap Jun 7, 2024
@nicolasaunai nicolasaunai added this to the 1.1 milestone Jul 23, 2024
@PhilipDeegan
Copy link
Member Author

having tried the nightly build with mpi tests, we are seeing this again

20:43:29   Traceback (most recent call last):
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/simulator/refinement/test_2d_10_core.py", line 198, in <module>
20:43:29       main()
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/simulator/refinement/test_2d_10_core.py", line 194, in main
20:43:29       Simulator(sim, post_advance=post_advance).run()
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/simulator/simulator.py", line 185, in run
20:43:29       self.advance()
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/simulator/simulator.py", line 163, in advance
20:43:29       self.post_advance(self.cpp_sim.currentTime())
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/simulator/refinement/test_2d_10_core.py", line 171, in post_advance
20:43:29       test.base_test_field_level_ghosts_via_subcycles_and_coarser_interpolation(
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/simulator/test_advance.py", line 577, in base_test_field_level_ghosts_via_subcycles_and_coarser_interpolation
20:43:29       interpolated_fields = refine_time_interpolate(
20:43:29                             ^^^^^^^^^^^^^^^^^^^^^^^^
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/amr/data/field/refine/test_refine_field.py", line 399, in refine_time_interpolate
20:43:29       refine_algo(
20:43:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/amr/data/field/refine/test_refine_field.py", line 98, in refine_electric
20:43:29       fine_data[1::2, ::2] = coarse_data[:, :]
20:43:29       ~~~~~~~~~^^^^^^^^^^^
20:43:29   ValueError: could not broadcast input array from shape (18,24) into shape (17,24)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working test
Projects
Status: Fix me 🔥
Development

No branches or pull requests

2 participants