Skip to content
Snippets Groups Projects
Commit c1e9b6c2 authored by Berenger Bramas's avatar Berenger Bramas
Browse files

Test if the move are not too big, and simple assert for now

parent 06ada1bf
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
......@@ -517,6 +517,19 @@ public:
return;
}
{// TODO remove
partsize_t partOffset = 0;
for(int idxPartition = 0 ; idxPartition < current_partition_size ; ++idxPartition){
for(partsize_t idx = 0 ; idx < current_my_nb_particles_per_partition[idxPartition] ; ++idx){
const int partition_level = in_computer.pbc_field_layer((*inout_positions_particles)[(idx+partOffset)*size_particle_positions+IDX_Z], IDX_Z);
assert(partition_level == current_partition_interval.first + idxPartition
|| partition_level == (current_partition_interval.first + idxPartition-1+int(field_grid_dim[IDX_Z]))%int(field_grid_dim[IDX_Z])
|| partition_level == (current_partition_interval.first + idxPartition+1)%int(field_grid_dim[IDX_Z]));
}
partOffset += current_my_nb_particles_per_partition[idxPartition];
}
}
current_offset_particles_for_partition[0] = 0;
partsize_t myTotalNbParticles = 0;
for(int idxPartition = 0 ; idxPartition < current_partition_size ; ++idxPartition){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment