Skip to content

Add QBMAX expansions - #233

Open
ShawnL00 wants to merge 5 commits into
inducer:mainfrom
ShawnL00:feature/asymline
Open

Add QBMAX expansions#233
ShawnL00 wants to merge 5 commits into
inducer:mainfrom
ShawnL00:feature/asymline

Conversation

@ShawnL00

Copy link
Copy Markdown
Collaborator

I also set CACHING_ENABLED = False in sumpy/tools.py. For different $\tau$ values, do we need to create separate cache files for the kernels?

@inducer

inducer commented Jun 18, 2025

Copy link
Copy Markdown
Owner

This and #232 look just about identical. I think only one of them is needed?

@inducer

inducer commented Jun 18, 2025

Copy link
Copy Markdown
Owner

I also set CACHING_ENABLED = False in sumpy/tools.py. For different τ values, do we need to create separate cache files for the kernels?

Just include $\tau$ in the cache key.

@ShawnL00

ShawnL00 commented Jun 18, 2025

Copy link
Copy Markdown
Collaborator Author

This and #232 look just about identical. I think only one of them is needed?

#232 is a subset of the current pull request, I’ve closed it.

Comment thread sumpy/expansion/local.py Outdated
Comment thread sumpy/expansion/local.py Outdated


# {{{ Asymline taylor
class AsymLineTaylorLocalExpansion(LocalExpansionBase):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Add documentation describing what this does.

Comment thread sumpy/expansion/local.py Outdated
Comment thread sumpy/expansion/local.py Outdated
Comment thread sumpy/expansion/local.py
Comment thread sumpy/qbx.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Parts of this look like it interferes with/duplicates/undoes #229. Could you clarify the relationship? We should have one PR per change; it's not great to gobble multiple changes into one.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You’re right — the changes in qbx.py overlap with those in #229. I’ve removed them from this PR to avoid duplication.

Comment thread sumpy/qbx.py Outdated
@ShawnL00

ShawnL00 commented May 27, 2026

Copy link
Copy Markdown
Collaborator Author

@inducer , I made some changes for the LineTaylorExpansion. Let me know if any changes are needed. Thank you!

Comment thread sumpy/qbx.py
Comment on lines +344 to +347
if self._uses_expansion_vec and expansion_vec is None:
raise ValueError(
"expansion_vec is required when using "
"LineTaylorLocalExpansion")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Pytential tests failed due to the mandatory requirement of expansion_vec. One possible fix is:

  if self._uses_expansion_vec and expansion_vec is None:
      expansion_vec = targets - centers

I wonder if it is okay.

@ShawnL00
ShawnL00 marked this pull request as draft June 2, 2026 16:16
@ShawnL00
ShawnL00 force-pushed the feature/asymline branch from 914e587 to eda2030 Compare June 2, 2026 16:36
@ShawnL00
ShawnL00 force-pushed the feature/asymline branch from eda2030 to a24d6fa Compare June 2, 2026 17:13
@ShawnL00
ShawnL00 marked this pull request as ready for review June 2, 2026 19:53
@ShawnL00

ShawnL00 commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

@inducer, this is ready for review now. The pytential API changes are in inducer/pytential#318. I wonder if any modifications are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants