-
Notifications
You must be signed in to change notification settings - Fork 19
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
Far Away Grid Points #102
Comments
It was noticed that aim_weights computed for Hirshfeld are not within [0, 1] range (there was large negative and positive values for points far away from the nucleus). So, instead of interpolating density, 1. The log of pro-atom density was interpolated. 2. The value of log-interpolation for points that are far away (as reported in theochem#102) are set to -np.inf (i.e., density at far away points are assumed to be zero).
I think that the correct way to treat this may be to
|
Add |
@FarnazH @PaulWAyers @tovrstra I think I need a little bit clearer implementation idea. So I am thinking add a This argument can be default to |
I see this would produce a lot of repetition in the |
That makes a lot of sense by putting at
|
Todo: check whether this problem exits in preset atomic grid (commented by Derrick, Farnaz, Paul) |
Add documentation. Warn users that there are (very) far away points and points with zero weights in some cases. This isn't easy to fix for molecular grids because the indexing refers to the number of points for each atom. So it isn't easy to fix in general. We should give some examples of how this is dealt with in examples. |
The following example computes the maximum distance between grid points, and it looks unusually large to me! I noticed it when testing Hirshfeld weights (instead of Becke weights) for integration. They go unnoticed when using Becke weights for integration. I haven't checked whether that is the case for HORTON2, but we need to add tests for grid points coordinates and weights against HORTON2.
The output is:
min & max of pdist = 0.0002980577 4377.9871590172
The text was updated successfully, but these errors were encountered: