Skip to content

Commit c7dd907

Browse files
committed
Fix formatting
1 parent 998d17b commit c7dd907

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

growing-mesh/solver-python/solver.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ def main():
5555
print(f"Rank {rank}/{size} has partition ({px}, {py})/({xr}, {yr})")
5656
if rank == 0:
5757
print(
58-
f"Each of {size} partitions has node size {pnx}x{pny} = {pnx*pny} for a total of {nx*ny} nodes on the base"
58+
f"Each of {size} partitions has node size {pnx}x{pny} = {
59+
pnx *
60+
pny} for a total of {
61+
nx *
62+
ny} nodes on the base"
5963
)
6064

6165
def getMesh(nz):
62-
basex = np.linspace(0, 1, nx)[px * pnx : (px + 1) * pnx]
63-
basey = np.linspace(0, 1, ny)[py * pny : (py + 1) * pny]
66+
basex = np.linspace(0, 1, nx)[px * pnx: (px + 1) * pnx]
67+
basey = np.linspace(0, 1, ny)[py * pny: (py + 1) * pny]
6468
z = np.array(range(nz)) * dz
6569
return np.stack(np.meshgrid(basex, basey, z, indexing="ij"), axis=-1).reshape(
6670
-1, 3

0 commit comments

Comments
 (0)