Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Nov 1, 2024
1 parent d4719ce commit 7baa3bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/core/data/particles/arrays/particle_array_pc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,12 +866,13 @@ struct PerCellParticles : public Super_
{
using Op = Operators<typename Super::SIZE_T, true>;

auto const nc = Super::local_cell(newcell);

// printf("L:%d i %llu ic %u,%u change \n", __LINE__, idx, cell[0], cell[1]);

Op{Super::add_into_(nc)}.increment_return_old();
Super::gaps_(cell)[Op{Super::gap_idx_(cell)}.increment_return_old()] = idx;
if (isIn(newcell, Super::ghost_box()))
{
auto const nc = Super::local_cell(newcell);
Op{Super::add_into_(nc)}.increment_return_old();
Super::gaps_(cell)[Op{Super::gap_idx_(cell)}.increment_return_old()] = idx;
}
}
else
throw std::runtime_error("no");
Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/ion_updater/test_multi_updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "core/numerics/ion_updater/ion_updater_def.hpp"

// #define PHARE_UNDEF_ASSERT
#define PHARE_UNDEF_ASSERT
#define PHARE_SKIP_MPI_IN_CORE

#include <cstddef>
Expand Down

0 comments on commit 7baa3bd

Please sign in to comment.