-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use default bounding box for FullGridCellList
#665
Comments
Well I would suggest rather modifying this:
So it defaults to FullGridCellList with the default bounding_box when data_type=CuArray is set. In case a non default bounding box needs to be set
or the option to use it like it is now. |
Good idea, but I don't like the fact that a different data type would silently change the underlying NHS implementation, which could be confusing, especially for performance comparisons. @LasNikas what do you think? Note that this is supposed to be more or less temporary, as we want to have a GPU-compatible NHS with unbounded domain in the future. But it will probably not happen soon. |
Also note that |
See our statement of need so we basically want competing things but in the end this means to me we want to have:
|
As suggested in #660 by @svchb, it would be more convenient if the minimum and maximum coordinates of the semidiscretization would automatically be used for the bounding box.
Here, we want to create a cell list template without a bounding box, and the semidiscretization should set the bounding box when copying the NHS.
Here, we want to use a larger bounding box, so the semidiscretization should not overwrite an existing bounding box of the cell list.
That would make the
copy_neighborhood_search
API awkward.would only use
min_corner
andmax_corner
to set the bounding box when there is none in the template.When the cell list already has a bounding box, these arguments would have to be ignored, or the second snippet above would not work. This sounds like a bad API to me.
The text was updated successfully, but these errors were encountered: