Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 committed Feb 24, 2021
1 parent 5789e21 commit da07111
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cgnsutilities/cgnsutilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ def extractSurface(self, fileName):

f.write("%d %d 1\n" % (patches[i].shape[0], patches[i].shape[1]))
for i in range(len(patches)):
patches[i][:, :, 0].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 0].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
patches[i][:, :, 1].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 1].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
patches[i][:, :, 2].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 2].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
f.close()
else:
Expand All @@ -239,11 +239,11 @@ def extractSpecifiedSurface(self, fileName, blkid, imin, imax, jmin, jmax, kmin,

f.write("%d %d 1\n" % (patches[i].shape[0], patches[i].shape[1]))
for i in range(len(patches)):
patches[i][:, :, 0].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 0].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
patches[i][:, :, 1].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 1].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
patches[i][:, :, 2].flatten('F').tofile(f, sep="\n", format="%20.15g")
patches[i][:, :, 2].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")
f.close()
else:
Expand Down Expand Up @@ -1527,7 +1527,7 @@ def writeDimsPlot3d(self, f):
def writeCoordsPlot3d(self, f):
"""Write coordinates to plot3d file"""
for iDim in range(3):
self.coords[:, :, :, iDim].flatten('F').tofile(f, sep="\n", format="%20.15g")
self.coords[:, :, :, iDim].flatten("F").tofile(f, sep="\n", format="%20.15g")
f.write("\n")

def scale(self, scaleFact):
Expand Down

0 comments on commit da07111

Please sign in to comment.