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

mesh_get_index returns a value of -1 when a particle lies on mesh minimum boundary #108

Open
goodman17c opened this issue Jun 26, 2023 · 1 comment

Comments

@goodman17c
Copy link
Contributor

The mesh_get_index returns a value of -1 when a particle is at the lower boundary of a mesh in any of space or time. This is problematic for having an initial condition or boundary source. Often, the effect is unnoticed as Python will treat the -1 index to reference the last element of the array without error or warning.

A workaround has been to modify the mesh in the input file with some small perturbation.

@ilhamv
Copy link
Collaborator

ilhamv commented Jun 26, 2023

That is true. The current solution is that users need to move the boundary/point source into the domain by manually specifying it in the mcdc.source.

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

2 participants