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

[BUG] invalid indexing of tetrahedron when area is outside of tetrahedral mesh. #45

Open
lachlangrose opened this issue Nov 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@lachlangrose
Copy link
Member

Describe the bug
Using PLI if you try and evaluate the mesh outside of the model area it has an indexing problem.
Seems to occur when modelling faults.

packages/LoopStructural/interpolators/structured_tetra.py", line 109, in evaluate_value
values[inside] = np.sum(c[inside,:]*self.properties[prop][tetras[inside,:]],axis=1)
IndexError: index 29086 is out of bounds for axis 0 with size 26880

Need to make sure that inside is working correctly and maybe add a unit test for this.

Minimal working example
The minimal code required to reproduce the bug:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Python environment [anaconda, python3.6]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@lachlangrose lachlangrose added the bug Something isn't working label Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant