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

Dem renamed restart application tests + parameter file generator #1402

Merged
merged 12 commits into from
Jan 2, 2025

Conversation

OGaboriault
Copy link
Collaborator

@OGaboriault OGaboriault commented Jan 2, 2025

Description

While refactoring the DEM, I realized that many tests were using the prefix restart_ and other were using the suffix _restart, which is not coherent. Also, some test using restarts didn't have a parameter file generator and some generator weren't working correctly since the implementation of the double restart feature.

Solution

  • Some application tests were renamed following the restart_ prefix
  • All generator file were tested. Because of this, some file were renamed/modified and some results changed.
  • Missing generator files were created.

Testing

N/A ...

Documentation

N/A

Miscellaneous (will be removed when merged)

When using the generator files, the user should "git clean -f" afterwards so that the other version of the restart files are removed automatically.

Checklist (will be removed when merged)

See this page for more information about the pull request process.

Code related list:

  • All in-code documentation related to this PR is up to date (Doxygen format)
  • Copyright headers are present and up to date
  • Lethe documentation is up to date
  • Fix has unit test(s) (preferred) or application test(s), and restart files are in the generator folder
  • The branch is rebased onto master
  • Changelog (CHANGELOG.md) is up to date
  • Code is indented with indent-all and .prm files (examples and tests) with prm-indent

Pull request related list:

  • [X ] Labels are applied
  • [X ] There are at least 2 reviewers (or 1 if small feature) excluding the responsible for the merge
  • [X ] If this PR closes an issue or is related to a project, it is linked in the "Projects" or "Development" section
  • [X ] If the fix is temporary, an issue is opened
  • [X ] The PR description is cleaned and ready for merge

@blaisb
Copy link
Contributor

blaisb commented Jan 2, 2025

@OGaboriault I think you messed up the file path for the moving_receptacle mesh

Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

Very nice. It's good that we did this in a separate PR. I think you have issues in the CMakeList still. Once this is fixed (and changelog added) this will be ready for merge.

@@ -1,2 +1,2 @@
version nproc n_attached_fixed_size_objs n_attached_variable_size_objs n_coarse_cells
5 16 0 1 5
5 1 0 1 5
Copy link
Contributor

Choose a reason for hiding this comment

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

Funny it means the previous restart was made with 16 procs, why? I don't know...
This could explain the results change. Anyway it's good the way you did it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's not a lot of us with a 16 procs computer who are working on the DEM. I wonder who did this. (Probably me, hehe)

Copy link
Contributor

Choose a reason for hiding this comment

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

or me

Comment on lines +7 to +8
Time 0.5
Iter 10000
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not a big deal that you changed it. Glad we are making this in another PR though otherwise would be confusing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't changed it intentionally. The checkpoint frequency of the generator was already set so that the last checkpoint occurs at 0.5

@OGaboriault OGaboriault force-pushed the dem_renamed_restart_app_tests branch from 16c5a1f to 34292d0 Compare January 2, 2025 16:36
@blaisb blaisb merged commit a31a90c into master Jan 2, 2025
11 checks passed
@blaisb blaisb deleted the dem_renamed_restart_app_tests branch January 2, 2025 20:23
OresteMarquis pushed a commit that referenced this pull request Jan 8, 2025
Description
While refactoring the DEM, I realized that many tests were using the prefix restart_ and other were using the suffix _restart, which is not coherent. Also, some test using restarts didn't have a parameter file generator and some generator weren't working correctly since the implementation of the double restart feature.

Solution
Some application tests were renamed following the restart_ prefix
All generator file were tested. Because of this, some file were renamed/modified and some results changed.
Missing generator files were created.

Co-authored-by: Bruno Blais <blais.bruno@gmail.com>
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.

2 participants