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

Adding option to swap Neumann and Dirichlet BCs for Schwarz non-overlapping coupling and contact #39

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

ikalash
Copy link
Collaborator

@ikalash ikalash commented Jan 23, 2025

Description in title. The swapping hurts in terms of # of Schwarz iterations for both contact and coupling. I did not add a test that executes the new option, as it is not competitive, though examples/nonoverlap/static-same-time-step shows the syntax. I can add a test if this is desired.

non-overlapping Schwarz iteration with Dirichlet or Neumann BC.  Also
adding option to swap the BCs on the fly.

Please see examples/nonoverlap/static-same-time-step for an example
of the syntax.  Also switched this problem to start from Neumann BC
instead of Dirichlet.
@ikalash ikalash requested a review from lxmota January 23, 2025 01:38
Copy link
Collaborator

@lxmota lxmota left a comment

Choose a reason for hiding this comment

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

Looks good to me and request minor changes: ics_bcs.jl:189 change "sting" to "string" and delete lines 364 and 367. Thanks for checking that this swapping also affects contact negatively. Not sure why Daria reported that there was no change, but she used a much earlier version of the code.

@ikalash
Copy link
Collaborator Author

ikalash commented Jan 23, 2025

Looks good to me and request minor changes: ics_bcs.jl:189 change "sting" to "string" and delete lines 364 and 367. Thanks for checking that this swapping also affects contact negatively. Not sure why Daria reported that there was no change, but she used a much earlier version of the code.

I just addressed these. Thanks for catching the typo.

Not sure about why the behavior was different before. Now the method maxes out at 16 iterations, the max specified in the input file. It is a bit disconcerting but I suppose the swapping is not really a standard thing with a known result on how it will affect performance.

Copy link
Collaborator

@lxmota lxmota left a comment

Choose a reason for hiding this comment

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

Thank you!

@ikalash
Copy link
Collaborator Author

ikalash commented Jan 23, 2025

Sure! Merging now.

@ikalash ikalash merged commit 342211e into main Jan 23, 2025
6 checks passed
@lxmota lxmota deleted the swap_bc_types branch January 23, 2025 04:10
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