Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangyu-Hu committed Jul 20, 2024
1 parent f2a0785 commit 69ffbb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shared/meshes/cell_linked_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void CellLinkedList::clearCellLists()
//=================================================================================================//
void CellLinkedList::UpdateCellListData(BaseParticles &base_particles)
{
StdLargeVec<Vecd> &pos = base_particles.ParticlePositions();
Vecd *pos = base_particles.ParticlePositions();
mesh_parallel_for(
MeshRange(Arrayi::Zero(), all_cells_),
[&](const Arrayi &cell_index)
Expand Down Expand Up @@ -188,10 +188,10 @@ void CellLinkedList::
});
}
//=================================================================================================//
StdLargeVec<size_t> &CellLinkedList::computingSequence(BaseParticles &base_particles)
size_t *CellLinkedList::computingSequence(BaseParticles &base_particles)
{
StdLargeVec<Vecd> &pos = base_particles.ParticlePositions();
StdLargeVec<size_t> &sequence = base_particles.ParticleSequences();
Vecd *pos = base_particles.ParticlePositions();
size_t *sequence = base_particles.ParticleSequences();
size_t total_real_particles = base_particles.TotalRealParticles();
particle_for(execution::ParallelPolicy(), IndexRange(0, total_real_particles), [&](size_t i)
{ sequence[i] = transferMeshIndexToMortonOrder(CellIndexFromPosition(pos[i])); });
Expand Down

0 comments on commit 69ffbb7

Please sign in to comment.