michaelprichardson / mom_python

Method of Moments for 2D electromagnetic problems.
MIT License
4 stars 3 forks source link

Update create_mesh.py #2

Open yanbinc opened 2 years ago

yanbinc commented 2 years ago
xm = (node_coords[elem_nodes[m][0]][0] + node_coords[elem_nodes[m][1]][0])/2

IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices