mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
output vector and scalar data only if atom-array
is nonempty - for vtk integrity
This commit is contained in:
@ -332,6 +332,11 @@ def particleGran(file,atoms,names,n_values):
|
||||
print >>f,1,i
|
||||
print >>f,"POINT_DATA",len(atoms)
|
||||
|
||||
if len(atoms) == 0:
|
||||
print >> f
|
||||
f.close()
|
||||
return
|
||||
|
||||
# print VECTORS
|
||||
for key in vectors.keys():
|
||||
|
||||
@ -369,7 +374,6 @@ def particleGran(file,atoms,names,n_values):
|
||||
print >>f, atom[scalars[key]]
|
||||
|
||||
print >>f
|
||||
|
||||
f.close()
|
||||
|
||||
def findScalarsAndVectors(names):
|
||||
|
||||
Reference in New Issue
Block a user