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

Local ISDF module (with k-sampling) for PBC mean-field calculation. #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NingZhang1
Copy link

1.Local Interpolative separable density fitting module for PBC mean-field calculation.
2.Supporting robust fitting, k-point, MPI.
3.L-ISDF supports ao2mo but ao2mo_7d has not been implemented yet.

@sunqm sunqm requested a review from fishjojo August 16, 2024 05:56
@sunqm
Copy link
Contributor

sunqm commented Aug 16, 2024

The code in python seems only using the np.fft and the fft/ifft code from pyscf.lib. Is the fftw wrapper fft.c still needed?

@NingZhang1
Copy link
Author

The code in python seems only using the np.fft and the fft/ifft code from pyscf.lib. Is the fftw wrapper fft.c still needed?

The calculation of V matrix (which is the counterpart of auxiliary Coulomb matrix in DF) heavily depends on fft/ifft (please see pbc_isdf_V.c) and is computationally demanding. It fftw3.h is not allowed to be included in pyscf-forge, I can rewrite all the involved code using np.fft/np.ifft or other python wrapper for fftw3 to see whether this will influence the performance.

@gkc1000
Copy link
Contributor

gkc1000 commented Aug 16, 2024 via email

@NingZhang1
Copy link
Author

NingZhang1 commented Aug 16, 2024 via email

@sunqm
Copy link
Contributor

sunqm commented Aug 16, 2024

Please also clean up the style issues. You can run the flake8 locally flake8 --config /path/to/pyscf-forge/.flake8 /path/to/pyscf-forge


del mf
del pbc_isdf_info
exit(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why you exit(1) in all of the examples? This signifies an error has occurred which should not be the case if it reaches the end of the code.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for pointing out this issue. It is added just because I do not want run all the for-loops when I am testing the code. It should not appear here and I will comment this out.

@@ -0,0 +1,19 @@
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update the copyright to 2014-2024 here and for the rest of the files.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I will change all of them.

@matthew-hennefarth
Copy link
Contributor

Will you be providing any tests for this module?

@NingZhang1
Copy link
Author

Will you be providing any tests for this module?

I have some test files within my local branch of ISDF module, I can add them back if needed.

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

Successfully merging this pull request may close these issues.

4 participants