project-asgard / asgard

MIT License
27 stars 20 forks source link

Modified poisson solver to handle only one element in x #659

Closed stefan-schnake closed 7 months ago

stefan-schnake commented 8 months ago

Please review the developer documentation on the wiki of this project that contains help and requirements.

Proposed changes

Currently, if we coarsen to level 0, the poisson solver crashes due to assuming x_lev >= 1. This fixes the issue by bypassing the solve and generating the solution based on the given boundary conditions.

What type(s) of changes does this code introduce?

Put an x in the boxes that apply.

Does this introduce a breaking change?

What systems has this change been tested on?

andremarie

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. This is simply a reminder of what we are going to look for before merging your code.