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

Testsuite: mpi/hp_cell_weights_* do not compare output for metis variants #15394

Merged
merged 4 commits into from Jun 21, 2023

Conversation

tamiko
Copy link
Member

@tamiko tamiko commented Jun 20, 2023

  • partitioning with metis is not stable, so simply suppress output

  • As we no longer compare output files for these metis based tests we have to signal all error conditions with a nonzero exit status. Which we do now.

In reference to #15383

As we no longer compare output files for this (metis based) test we have
to signal an error condition (in this case we expect an exception to be
thrown!) with a nonzero exit status.
As we no longer compare output files for this (metis based) test we have
to signal an error condition (in this case we expect an exception to be
thrown!) with a nonzero exit status.
Comment on lines +116 to +118
deallog << "Error: we did not throw an exception when we should have"
<< std::endl;
std::abort();
Copy link
Member

Choose a reason for hiding this comment

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

Can't you just remove the try-catch block and only execute

tria.execute_coarsening_and_refinement();

?

Copy link
Member Author

Choose a reason for hiding this comment

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

The logic is reversed. I have to catch the exception thrown in tria.execute_coarsening_and_refinement() and instead signal an error if it doesn't throw.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, that makes sense.

@masterleinad masterleinad merged commit 504c59a into dealii:master Jun 21, 2023
14 checks passed
@tamiko tamiko deleted the fix_metis_tests_2 branch July 7, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants