mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Removed unnecessary xyz coords in voxel binary dump
This commit is contained in:
parent
0be240d519
commit
aebb81eb98
3 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue