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

fix cutoff in LODE TabulatedRadialIntegral #250

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

PicoCentauri
Copy link
Contributor

@PicoCentauri PicoCentauri commented Oct 25, 2023

Fixes #249

The cutoff for the LODE TabulatedRadialIntegral was set to real space environment cutoff. This is wrong since for LODE we spline in k-space from 0 until the k_cutoff.


📚 Documentation preview 📚: https://rascaline--250.org.readthedocs.build/en/250/

@github-actions
Copy link

github-actions bot commented Oct 25, 2023

Here is a pre-built version of the code in this pull request: wheels.zip, you can install it locally by unzipping wheels.zip and using pip to install the file matching your system

@@ -24,7 +24,7 @@ pub struct LodeRadialIntegralSplineParameters {
pub max_radial: usize,
/// Number of angular components
pub max_angular: usize,
/// cutoff radius, this is also the maximal value that can be interpolated
/// k-space cutoff radius, this is also the maximal value that can be interpolated
pub cutoff: f64,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we should call this also this k_cutoff to avoid confusion with the real space version?

Copy link
Member

Choose a reason for hiding this comment

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

yes, that sounds like a good idea!

@PicoCentauri PicoCentauri requested a review from Luthaf October 26, 2023 07:16
};

let gto = LodeRadialIntegralGto::new(LodeRadialIntegralGtoParameters {
max_radial: parameters.max_radial,
max_angular: parameters.max_angular,
cutoff: parameters.cutoff,
cutoff: 5.0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed this value here to a different one as k_cutoff. Otherwise one might be confused why the real and the k-space cutoff has to be same.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@PicoCentauri PicoCentauri merged commit b8bb5cc into master Oct 26, 2023
24 checks passed
@PicoCentauri PicoCentauri deleted the fix_spline_kspace branch October 26, 2023 13:59
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.

Spline tests fail in debug mode
2 participants