Skip to content

Commit

Permalink
Update the rust voxel coarsen crate to match how ExaCA currently orde…
Browse files Browse the repository at this point in the history
…rs its voxels xyz rather than yxz
  • Loading branch information
rcarson3 committed Dec 10, 2024
1 parent 0fcf6a5 commit 88e7884
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ fn rearrange_data(
orig_data.iter().enumerate().for_each(|(index, val)| {
// CA results are indexed as y being fastest axis indexed on,
// then x axis, and finally the z axis.
let j = index % box_size.0;
let i = (index / (box_size.0)) % box_size.1;
let i = index % box_size.0;
let j = (index / (box_size.0)) % box_size.1;
let k = index / (box_size.0 * box_size.1);
// We want our outputted data to be re-ordered such that
// x is the fastest indexed item, then y axis, and finally the z axis.
Expand Down

0 comments on commit 88e7884

Please sign in to comment.