mesh = dolfin.UnitSquareMesh(10,10)
this is a 2D mesh. However, the exception listed below by the fenics_interface
Traceback (most recent call last):
File "FEniCs_BEMpp_Helmholtz.py", line 17, in <module>
trace_space, trace_matrix = fenics_interface.coupling.fenics_to_bempp_trace_data(fenics_space)
File "/usr/lib/python2.7/dist-packages/bempp/api/fenics_interface/coupling.py", line 25, in fenics_to_bempp_trace_data
return p1_coupling.p1_trace(fenics_space)
File "/usr/lib/python2.7/dist-packages/bempp/api/fenics_interface/p1_coupling.py", line 38, in p1_trace
bempp_boundary_grid = grid_from_element_data(bm_coords.transpose(), bm_cells.transpose())
File "/usr/lib/python2.7/dist-packages/bempp/api/grid/grid.py", line 164, in grid_from_element_data
return Grid(grid_fun(vertices, elements, domain_indices))
File "bempp/core/grid/grid.pyx", line 302, in bempp.core.grid.grid.grid_from_element_data (/bempp_build/bempp/build/cython/bempp/core/grid/cython_grid.cc:5890)
File "bempp/core/grid/grid.pyx", line 298, in bempp.core.grid.grid.grid_from_element_data (/bempp_build/bempp/build/cython/bempp/core/grid/cython_grid.cc:5840)
ValueError: createGridFromConnectivityArrays(): invalid vertex index in element #26
Does the interface only work for 3D FEM meshes?
Best
Sebastian