Skip to content

Commit

Permalink
Merge pull request #396 from Xiangyu-Hu/FabienPean-Virtonomy-patch-1
Browse files Browse the repository at this point in the history
Remove preallocation of memory in cell linked list
  • Loading branch information
Xiangyu-Hu authored Aug 1, 2023
2 parents daaa8b2 + 6a7e9c5 commit f44c31b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/for_3D_build/meshes/cell_linked_list_supplementary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ void CellLinkedList ::allocateMeshDataMatrix()
{
Allocate3dArray(cell_index_lists_, all_cells_);
Allocate3dArray(cell_data_lists_, all_cells_);

mesh_parallel_for(MeshRange(Array3i::Zero(), all_cells_),
[&](int i, int j, int k)
{
cell_index_lists_[i][j][k].reserve(36);
cell_data_lists_[i][j][k].reserve(36);
});
}
//=================================================================================================//
void CellLinkedList ::deleteMeshDataMatrix()
Expand Down

0 comments on commit f44c31b

Please sign in to comment.