Skip to content

Commit

Permalink
Fix bad iteration over z
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed May 20, 2020
1 parent 74bb48d commit f95d006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesh/coordinates.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ interpolateAndNeumann(MAYBE_UNUSED(const Coordinates::metric_field_type& f), MAY
// Set corner guard cells
for (int i = 0; i < localmesh->xstart; i++) {
for (int j = 0; j < localmesh->ystart; j++) {
for (int z=0;z<result.getNx();++z) {
for (int z=0;z<result.getNz();++z) {
result(i, j, z) = BoutNaN;
result(i, localmesh->LocalNy - 1 - j, z) = BoutNaN;
result(localmesh->LocalNx - 1 - i, j, z) = BoutNaN;
Expand Down

0 comments on commit f95d006

Please sign in to comment.