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

Change default compression_level of vtu output #14983

Merged

Conversation

c-p-schmidt
Copy link
Contributor

As discussed in #14958 (see e.g. here for on overview of output performance based on the compression_level or here for the suggestion that probably best_speed should also be set as default for the vtu output) I'm proposing to change the default compression_level for the vtu output from best_compression to best_speed.

Tagging @tjhei and @drwells as you might be interested.

Copy link
Member

@tjhei tjhei 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.

@bangerth
Copy link
Member

/rebuild

@c-p-schmidt
Copy link
Contributor Author

Some tests, in which the output files are compared to reference files from the repo are failing now. This is clear since the compression_level has changed.
From my perspective there are two possible ways to address this:

  1. Change the compression_level for those tests to best_compression to retain the original behavior
  2. Update the reference files to keep testing the default compression settings

What way would be the preferred one?

@tjhei
Copy link
Member

tjhei commented Mar 29, 2023

I would simply adjust the compression level of the tests.

@bangerth
Copy link
Member

My personal preference would be (i) to adjust the tests, and (ii) clone one of the tests that continues to check the "default" case. In practice, you want to do step (ii) before step (i) because you want to use how the existing tests use the default branch.

@tamiko
Copy link
Member

tamiko commented Mar 30, 2023

Shall I run the full regression tester on this one?

@tjhei
Copy link
Member

tjhei commented Mar 30, 2023

Tests still need to be adjusted and I am not too worried, because Jenkins should cover all of the tests (minus ones that require uncommon dependencies).

from best_compression to best_speed, as discussed in pull request dealii#14958.
The compression flags of the tests is set to best_compression to conserve
the current output behavior of the tests.
@c-p-schmidt c-p-schmidt force-pushed the change-default-compression-level-of-vtu branch from bfb0ce5 to 87c98d2 Compare April 1, 2023 10:02
Copy link
Contributor Author

@c-p-schmidt c-p-schmidt left a comment

Choose a reason for hiding this comment

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

I now changed the compression_level of the failing tests to best_compression.

@bangerth: I did not copy a test to test it with best_speed and best_compression, since I realized that there is already the test data_out/data_out_base_compression_levels.cc that is outputting data with all available compression_levels.

DataOutBase::write_vtu(patches, data_names, vector_data_ranges, flags, out);
vector_data_ranges;
DataOutBase::write_vtu(
patches, data_names, vector_data_ranges, vtu_flags, out);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While working on adapting the compression_level for the failing tests, I guess I found a bug in the code. Despite being able to set a compression_level using the GridOutFlags::Vtu, those were ignored here and instead Vtkflags with default settings have been passed to the write_vtu method

Copy link
Member

Choose a reason for hiding this comment

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

This is too funny. Wait, what day is today?😃

Copy link
Member

Choose a reason for hiding this comment

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

Ha, that's wild. I guess this comes from a time when we did not actually have separate VtuFlags.

I'll accept this patch as is, but would you mind adding an entry to doc/news/changes/minor that describes this particular problem and fix?

@bangerth bangerth merged commit 491599f into dealii:master Apr 5, 2023
11 checks passed
bangerth added a commit that referenced this pull request Apr 6, 2023
…ompression-level-vtu

Document minor change that has been introduced in pull request #14983.
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

5 participants