amuse
amuse copied to clipboard
writing subsets of grids in code not working w/o copy
the following works:
from amuse.io import write_set_to_file
from amuse.datamodel import Grid
g=Grid(10,10,10)
g.z=1
sg=g[1:5,2:5,:]
write_set_to_file(sg,"subgrid","amuse")
but the write_set_to_file seems to break when sg is a subgrid of an in-code grid, you need sg.copy() first...
needs to be checked
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.