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

fix coords dimensions

parent ff01cbb4
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,11 @@ comp = yac.def_comp("pamtra")
coords = np.array(args.coords)
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)],
[*coords[:,0], *(coords[:,0]+0.1), *coords[:,0]],
[*coords[:,1], *coords[:,1], *(coords[:,1]+0.1)],
zip(range(ncoords), range(ncoords, 2*ncoords), range(2*ncoords, 3*ncoords)))
points = grid.def_points(Location.CELL,
coords[0,:], coords[1,:])
coords[:,0], coords[:,1])
yac.sync_def()
......
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