Removed unnecessary xyz coords in voxel binary dump

This commit is contained in:
nhorelik 2013-04-14 18:33:47 -04:00
parent 0be240d519
commit aebb81eb98
3 changed files with 3 additions and 5 deletions

View file

@ -258,7 +258,7 @@ contains
call position_rgb(pl, rgb, id)
! write to plot file
write(UNIT_PLOT) x, y, z, id
write(UNIT_PLOT) id
! advance particle in z direction
p % coord0 % xyz(3) = p % coord0 % xyz(3) + vox(3)

View file

@ -41,10 +41,8 @@ def main(file_, o):
sys.stdout.flush()
for y in range(1,ny+1):
for z in range(1,nz+1):
xm,ym,zm,id_ = get_int(fh, 4)
id_ = get_int(fh)[0]
silomesh.set_value(float(id_), x, y, z)
if not x == xm or not y == ym or not z == zm:
raise Exception("mesh mismatch!")
print
silomesh.finalize_var()
silomesh.finalize_mesh()