Script clean-up. Bernhard Gscheider
This commit is contained in:
parent
e1a40f0423
commit
1fb9cc89eb
1 changed files with 2 additions and 4 deletions
|
@ -58,8 +58,6 @@ for line in lines:
|
||||||
|
|
||||||
outfile=open('residual.dat','w')
|
outfile=open('residual.dat','w')
|
||||||
|
|
||||||
print 'hits = ', ikomega
|
|
||||||
|
|
||||||
#HJ need better way of combining lists
|
#HJ need better way of combining lists
|
||||||
if ikomega > 0:
|
if ikomega > 0:
|
||||||
for data in zip(tUp,Ux,Uy,Uz,p,k,omega):
|
for data in zip(tUp,Ux,Uy,Uz,p,k,omega):
|
||||||
|
@ -68,8 +66,8 @@ elif ikepsilon > 0:
|
||||||
for data in zip(tUp,Ux,Uy,Uz,p,k,epsilon):
|
for data in zip(tUp,Ux,Uy,Uz,p,k,epsilon):
|
||||||
outfile.write(' '.join([str(d) for d in data])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
elif iUp > 0:
|
elif iUp > 0:
|
||||||
for index in range(0,iUp):
|
for data in zip(tUp,Ux,Uy,Uz,p):
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
|
|
||||||
outfile.close()
|
outfile.close()
|
||||||
|
|
||||||
|
|
Reference in a new issue