Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to allow halo > 0 decomposition of the mesh #20

Merged
merged 16 commits into from
Sep 4, 2024
Merged
8 changes: 5 additions & 3 deletions src/atlas-orca/meshgenerator/OrcaMeshGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ void OrcaMeshGenerator::generate( const Grid& grid, const grid::Distribution& di

// grid ij coordinates
{
const auto ij_glb = local_orca.orca_haloed_global_grid_ij( ix, iy );
nodes.ij( inode, XX ) = ij_glb.i;
nodes.ij( inode, YY ) = ij_glb.j;
// const auto ij_glb = local_orca.orca_haloed_global_grid_ij( ix, iy );
// nodes.ij( inode, XX ) = ij_glb.i;
// nodes.ij( inode, YY ) = ij_glb.j;
nodes.ij( inode, XX ) = ix + local_orca.ix_min();
nodes.ij( inode, YY ) = iy + local_orca.iy_min();
}

const auto normalised_xy = local_orca.normalised_grid_xy( ix, iy );
Expand Down