Skip to content

Sweepers require level during instantiation #577

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

Merged
merged 3 commits into from
Aug 5, 2025

Conversation

brownbaerchen
Copy link
Contributor

As @danielru has correctly noted 10 years ago in #46, the sweepers can be instantiated, but not used without a level.
Since I now have some capacity for tending the garden, I thought I'd change that.
I also think it makes it easier get started with developing a new sweeper since its now more obvious that sweeper and level interact.

Note that it is possible to pass None as the level in the SDC sweepers. The sweepers have setters for the level that make sure you pass a proper level, but they are not used during instantiation. In some tests, sweepers are instantiated to check the attached collocation problem, so we should keep this.

Closes #46

@pancetta
Copy link
Member

pancetta commented Aug 5, 2025

So, are we going to keep it, merge it, or throw it away?

@tlunet
Copy link
Member

tlunet commented Aug 5, 2025

It's fine enough for now, let's merge it

@pancetta pancetta merged commit 525f6a1 into Parallel-in-Time:master Aug 5, 2025
47 checks passed
brownbaerchen added a commit to brownbaerchen/pySDC that referenced this pull request Aug 5, 2025
@brownbaerchen brownbaerchen deleted the fix_46 branch August 5, 2025 14:38
pancetta pushed a commit that referenced this pull request Aug 5, 2025
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.

Can instantiate sweeper without problem or level attached
3 participants