From 69ffbb797f5a1ea6f5e49d34253f3332a3b7f6f2 Mon Sep 17 00:00:00 2001 From: Xiangyu Hu Date: Sat, 20 Jul 2024 08:06:22 +0000 Subject: [PATCH] small change --- src/shared/meshes/cell_linked_list.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/meshes/cell_linked_list.cpp b/src/shared/meshes/cell_linked_list.cpp index 5a26208a04..e85d16f166 100644 --- a/src/shared/meshes/cell_linked_list.cpp +++ b/src/shared/meshes/cell_linked_list.cpp @@ -70,7 +70,7 @@ void CellLinkedList::clearCellLists() //=================================================================================================// void CellLinkedList::UpdateCellListData(BaseParticles &base_particles) { - StdLargeVec &pos = base_particles.ParticlePositions(); + Vecd *pos = base_particles.ParticlePositions(); mesh_parallel_for( MeshRange(Arrayi::Zero(), all_cells_), [&](const Arrayi &cell_index) @@ -188,10 +188,10 @@ void CellLinkedList:: }); } //=================================================================================================// -StdLargeVec &CellLinkedList::computingSequence(BaseParticles &base_particles) +size_t *CellLinkedList::computingSequence(BaseParticles &base_particles) { - StdLargeVec &pos = base_particles.ParticlePositions(); - StdLargeVec &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])); });