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

Turning on target-specific seemingly makes Stokes results worse #11

Closed
inducer opened this issue Mar 12, 2020 · 7 comments
Closed

Turning on target-specific seemingly makes Stokes results worse #11

inducer opened this issue Mar 12, 2020 · 7 comments

Comments

@inducer
Copy link
Owner

inducer commented Mar 12, 2020

@alexfikl said.

@alexfikl
Copy link
Collaborator

I'm playing with the Stokes tests in test_stokes.py and will add a PR for this soon-ish!

@inducer inducer changed the title Turning on target-specific seemingly makes Stokes results Turning on target-specific seemingly makes Stokes results worse Mar 12, 2020
@alexfikl
Copy link
Collaborator

Turns out this was the expected false flag.

I changed upsampling + qbx order + target specific acceleration and got the expected convergence. Just re-ran the tests more carefully and, unsurprisingly, it wasn't turning off the target specific that did the trick!

I still have a PR with some simple Stokes test cases with numbers that seem to work well, so I say we should keep this open until those are in.

@inducer
Copy link
Owner Author

inducer commented Mar 17, 2020

The main puzzle (to me) is that target-specific should not affect Stokes at all. So even the fact that it did make a difference could be indicative of a bug.

@alexfikl
Copy link
Collaborator

Just to be clear, it didn't make any difference at all when I re-ran the tests today.

Not quite sure what I did the first time around, but it was probably just confusion on my part from changing more than one parameter at a time..

@mattwala
Copy link
Collaborator

Were you using an extremely high QBX order (64-ish)? There's some fixed-size buffers in the TS implementation that would overflow if you did. That might explain a difference in the answer. There's currently no runtime checks to limit the order. It's my fault (and there's a TODO in the code to fix it).

@alexfikl
Copy link
Collaborator

No, no, I was using smallish orders around 4-6.

@inducer
Copy link
Owner Author

inducer commented Dec 13, 2020

Closing as recommended by @alexfikl in #45 (comment).

@inducer inducer closed this as completed Dec 13, 2020
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

No branches or pull requests

3 participants