Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map_to_points for segments #219

Open
pescap opened this issue Oct 13, 2024 · 2 comments
Open

map_to_points for segments #219

pescap opened this issue Oct 13, 2024 · 2 comments

Comments

@pescap
Copy link
Contributor

pescap commented Oct 13, 2024

While working on #218, I noticed that map_to_points exhibits an issue with restrictions on segments (multishape):

import bempp.api
grid = bempp.api.shapes.multitrace_cube(h=1)
segments = [1, 2, 3, 4, 5, 6]

P1 = bempp.api.function_space(grid, "P", 1, segments=segments)
P1.map_to_points()

This script gives: ValueError: cannot assign slice from input of different size

The same error occurs for example for (DP,0), (RWG,0).

@pescap
Copy link
Contributor Author

pescap commented Oct 13, 2024

Sounds to be related to:

for elem in support_elements:

When using segments, elem is no longer equal to 0,1,2,3 ....

@pescap
Copy link
Contributor Author

pescap commented Oct 13, 2024

I started working on it: #221. It resolves the error, but it doesn’t seem sufficient to have the FMM work properly for spaces with segments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant