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 M2L with preprocessing but no FFT #190

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isuruf
Copy link
Collaborator

@isuruf isuruf commented Oct 8, 2023

No description provided.

Comment on lines +335 to +340
m2l_translation = self.tgt_expansion.m2l_translation
if m2l_translation.use_preprocessing:
ncoeff_src = m2l_translation.preprocess_multipole_nexprs(
self.tgt_expansion, self.src_expansion)
else:
ncoeff_src = len(self.src_expansion)
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe ncoeff_src should be renamed to clarify that we're talking about "padded" coeffiicents. (Though I'm not sure "padded" is a good adjective.)

Comment on lines +335 to +340
m2l_translation = self.tgt_expansion.m2l_translation
if m2l_translation.use_preprocessing:
ncoeff_src = m2l_translation.preprocess_multipole_nexprs(
self.tgt_expansion, self.src_expansion)
else:
ncoeff_src = len(self.src_expansion)
Copy link
Owner

Choose a reason for hiding this comment

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

You mentioned an additional untested code path here.

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.

2 participants