Skip to content

Commit

Permalink
fix compile errors for example and benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
kwitaechong committed Oct 3, 2024
1 parent da0e056 commit 9eec1ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmark/core/Cabana_LinkedCellPerformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void performanceTest( std::ostream& stream, const std::string& test_prefix,
double sort_delta[3] = { cutoff, cutoff, cutoff };
double grid_min[3] = { x_min[p], x_min[p], x_min[p] };
double grid_max[3] = { x_max[p], x_max[p], x_max[p] };
auto linked_cell_list = Cabana::createLinkedCellList(
auto linked_cell_list = Cabana::createLinkedCellList<3>(
x, sort_delta, grid_min, grid_max );

// Setup for neighbor iteration.
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/Cabana_NeighborVerletPerformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void performanceTest( std::ostream& stream, const std::string& test_prefix,
// in cells the size of the smallest cutoff distance.
double cutoff = cutoff_ratios.front();
double sort_delta[3] = { cutoff, cutoff, cutoff };
auto linked_cell_list = Cabana::createLinkedCellList<memory_space>(
auto linked_cell_list = Cabana::createLinkedCellList<3>(
x, sort_delta, grid_min, grid_max );
Cabana::permute( linked_cell_list, aosoas[p] );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ void linkedCellListExample()
auto cell_list = Cabana::createLinkedCellList(
positions, start, end, grid_delta, grid_min, grid_max );
*/
auto cell_list = Cabana::createLinkedCellList( positions, grid_delta,
grid_min, grid_max );
auto cell_list = Cabana::createLinkedCellList<3>( positions, grid_delta,
grid_min, grid_max );

/*
Now permute the AoSoA (i.e. reorder the data) using the linked cell list.
Expand Down

0 comments on commit 9eec1ff

Please sign in to comment.