Skip to content

Commit 635fef2

Browse files
authored
Update init.c
correct formatting
1 parent 1af213c commit 635fef2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

openmp/init.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -544,15 +544,15 @@ void init(void)
544544
}
545545
if (j2 == (init_block_y - 1))
546546
if (j == (npy - 1)) { /* 1 boundary */
547-
bp->nei_level[3] = -2;
548-
bp->nei[3][0][0] = 0;
549-
} else { /* boundary with neighbor core */
550-
bp->nei_level[3] = 0;
551-
bp->nei[3][0][0] = -1 - pos1[i][j+1][k];
552-
add_comm_list(1, o, pos1[i][j+1][k], 10+f,
553-
bp->cen[2]*mesh_size[0]+bp->cen[0],
554-
bp->cen[1] + size/2);
555-
}
547+
bp->nei_level[3] = -2;
548+
bp->nei[3][0][0] = 0;
549+
} else { /* boundary with neighbor core */
550+
bp->nei_level[3] = 0;
551+
bp->nei[3][0][0] = -1 - pos1[i][j+1][k];
552+
add_comm_list(1, o, pos1[i][j+1][k], 10+f,
553+
bp->cen[2]*mesh_size[0]+bp->cen[0],
554+
bp->cen[1] + size/2);
555+
}
556556
else { /* neighbor on core */
557557
bp->nei_level[3] = 0;
558558
bp->nei[3][0][0] = o + init_block_x;

0 commit comments

Comments
 (0)