Skip to content
Snippets Groups Projects
Commit 4de7b916 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

add ravel

parent 5c8163fc
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ ncoords = len(args.coords)
grid = UnstructuredGrid("pamtra-grid", [3]*ncoords,
[*coords[:,0], *(coords[:,0]+0.1), *coords[:,0]],
[*coords[:,1], *coords[:,1], *(coords[:,1]+0.1)],
np.array(list(zip(range(ncoords), range(ncoords, 2*ncoords), range(2*ncoords, 3*ncoords)))))
np.array(list(zip(range(ncoords), range(ncoords, 2*ncoords), range(2*ncoords, 3*ncoords)))).ravel())
points = grid.def_points(Location.CELL,
coords[:,0], coords[:,1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment