mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Removing data set line.
This commit is contained in:
parent
3175a3be1d
commit
16fac7cc07
1 changed files with 1 additions and 3 deletions
|
|
@ -38,10 +38,8 @@ def main():
|
|||
|
||||
data = vtk.vtkIntArray()
|
||||
data.SetName("id")
|
||||
# pass h5data as a "hint" that no copy/allocation is necessary
|
||||
# set the array using the h5data array
|
||||
data.SetArray(h5data, h5data.size, True)
|
||||
# set the data array
|
||||
data.array = h5data
|
||||
# add data to image grid
|
||||
grid.GetCellData().AddArray(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue