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

Speedup eri #127

Merged
merged 26 commits into from
Jul 28, 2016
Merged

Speedup eri #127

merged 26 commits into from
Jul 28, 2016

Conversation

tovrstra
Copy link
Member

Fixes #48 and part of #46

@matt-chan
Copy link
Member

Fails py code style. I'll fix it tomorrow.
On Tue, Jun 28, 2016 at 3:23 PM Toon Verstraelen notifications@github.com
wrote:

Assigned #127 #127 to @matt-chan
https://github.com/matt-chan.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#127 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AA_-NRrhKwRyqff0l-WO2Eae10jkQCFwks5qQSBRgaJpZM4JAF-t
.

@crisely09
Copy link
Contributor

what is the problem? do you need some help?

@matt-chan
Copy link
Member

Actually that would be nice. Do you mind rebasing the code on theochem
master? There are some changes in stijn's branch which conflict and I'm not
sure which functions are necessary or not.

There's also a lot of documentation that got added
On Mon, Jul 11, 2016 at 5:30 AM Cristina Gonzalez notifications@github.com
wrote:

what is the problem? do you need some help?


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#127 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AA_-NTkh2_xiSpZFwv_0L18b6uxGuabfks5qUbjSgaJpZM4JAF-t
.

@tovrstra
Copy link
Member Author

I can help with that as well if needed. (I've reviewed Stijn's changes.)

@tovrstra
Copy link
Member Author

I'll fix this. Hang on...

@tovrstra
Copy link
Member Author

Just rebased and cleaned up most issues. @crisely09 : can you double check the documentation of the python and c++ code? Thanks.

@matt-chan
Copy link
Member

Looks good to me. If @crisely09 approves, it can be merged in.

@tovrstra
Copy link
Member Author

P.S. Once this is merged, I'll also rebase Cristina's other branch. It overlaps some with this and similar cleanups are needed. I know the drill now. :)

@crisely09
Copy link
Contributor

I wonder why we didn't merge the other branch instead, the latest PR I made, it has almost the same changes, the only improvement in this one is the documentation... which I checked and it is good. What about the unit tests? Did you make different test by yourself Toon? For mine, the reference numbers were computed with the script in Mathematica I got from Julien Toulouse and Andreas Savin.

@crisely09
Copy link
Contributor

Well, also we could just close the latest PR and I can make a new one with the integrals and tests that are missing, starting from the merged code... that might be easier and cleaner. What do you think?

@tovrstra
Copy link
Member Author

The unit tests were from you. I'll correct their origin in a extra commit.

I wanted to merge this PR first because it had a more detailed commit history. Another motivation is that this PR seemed to contain older code. Merging your more recent code afterwards seemed the better option.

@tovrstra
Copy link
Member Author

There are still quite a bit of cleanups that need to be done. I'll take care later.

@tovrstra
Copy link
Member Author

One thing that remains to be done is to support Cholesky decomposition for the new types of four-center integrals. This is already documented as such but it does not work yet, nor are there tests for it.

@crisely09
Copy link
Contributor

@tovrstra Yes, I can provide the reference for the Gaussian integrals. About the trivial variations, do you mean the values of the parameters used, for example, for the erfgau (Toulouse and Savin) potential?. For the ralpha-repulsion, I think I can get reference numbers for integer values of k like 0, 1 and 2, I guess, but I don't know where or how to get some for real values of k, only "by hand" for the very simple cases.

@tovrstra
Copy link
Member Author

@crisely09 Regarding the trivial variations: it is not completely unambiguous now what c and alpha mean. Sometimes there is a factor 1/2 in the exponent or a normalization for the Gaussian etc. A literature reference with the equations would take away any doubt.

I just noticed that you had already added some tests with different powers, so don't worry about it. That is good enough.

@tovrstra
Copy link
Member Author

@crisely09 : Can you provide the reference please?

@crisely09
Copy link
Contributor

Yes, I am sorry, I will do it tonight, I don't have my laptop with me right now.

/** @brief
Gaussian electron repulsion four-center integrals.

The potential is ??? TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The potential is c exp(-alpha r^2).

@tovrstra
Copy link
Member Author

The oldest reference with the Gaussian potential (combined with others) seems to be that of P.M.W. Gill et al. (http://dx.doi.org/10.1016/0009-2614(96)00931-1) I'll cite that one as well.

@tovrstra
Copy link
Member Author

@crisely09 Can you take a look? All should be good now.

e^(-t)/rho^3/2 - This term helps the Taylor series to converge when t is a large
number, the factor 1/2*sqrt(rho^alpha) was "replaced" and multiplied outside, at
the end, in the laplace_of_potential function.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it was here, cool.

@crisely09
Copy link
Contributor

Yes, it looks good to me.

@tovrstra
Copy link
Member Author

Thank you for carefully reviewing! I'll fix the final things and merge after the tests have passed (unless something new comes up in the meantime obviously.)

@crisely09
Copy link
Contributor

Cool, thank you Toon :)

@tovrstra tovrstra merged commit f70d327 into theochem:master Jul 28, 2016
@tovrstra tovrstra deleted the speedup_eri branch July 28, 2016 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants