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

Add infill density benchmark #4716

Merged
merged 17 commits into from May 23, 2022
Merged

Conversation

danieldouglas92
Copy link
Contributor

@danieldouglas92 danieldouglas92 commented May 20, 2022

Pull Request Checklist. Please read and check each box with an X. Delete any part not applicable. Ask on the forum if you need help with any step.

Describe what you did in this PR and why you did it.

Before your first pull request:

For all pull requests:

For new features/models or changes of existing features:

  • I have tested my new feature locally to ensure it is correct.
  • I have created a testcase for the new feature/benchmark in the tests/ directory.
  • I have added a changelog entry in the doc/modules/changes directory that will inform other users of my change.

@danieldouglas92 danieldouglas92 changed the title Add infill density cookbook Add infill density benchmark May 21, 2022
Copy link
Contributor

@jdannberg jdannberg left a comment

Choose a reason for hiding this comment

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

These are the comments I made last night (so they are for an older version). I am submitting that review for now and then I'll have a look at the new version.

cookbooks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
cookbooks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
Copy link
Contributor

@jdannberg jdannberg left a comment

Choose a reason for hiding this comment

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

This is great, thank you for contributing this! If you have time, it would also be great if you could add a short description in the manual, but if not, that's fine as well. I mostly have a few suggestions for documentation, but otherwise this looks great!

benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@naliboff naliboff left a comment

Choose a reason for hiding this comment

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

@danieldouglas92 - Nice work, this is a really nice contribution! I only have minor questions and comments, and overall the PR is in great shape.

benchmarks/infill_density/CMakeLists.txt Outdated Show resolved Hide resolved
benchmarks/infill_density/doc/infill_density.md Outdated Show resolved Hide resolved
benchmarks/infill_density/doc/infill_density.md Outdated Show resolved Hide resolved
benchmarks/infill_density/doc/infill_density.md Outdated Show resolved Hide resolved
benchmarks/infill_density/doc/infill_density.md Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@jdannberg jdannberg left a comment

Choose a reason for hiding this comment

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

I think there were some comments from my first review you did not address (maybe because they were listed as outdated), I copied them here again. Otherwise this looks good!

I haven't looked at the manual text yet (since it does not build yet) and I can do this next after you rebase.

The only other point I remembered: We usually have a test case for each benchmark. You don't need to copy the .prm file, but you can instead include your benchmark prm file in a test and then set the end time to zero (you can see an example of that in sol_kz_2_project_q1_only_visc.prm). The point is to make sure that even if we make future changes in ASPECT, the tester will still execute the files you added and we will notice if it breaks.

benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii_data.cc Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Outdated Show resolved Hide resolved
benchmarks/infill_density/infill_ascii.prm Show resolved Hide resolved
@gassmoeller
Copy link
Member

/rebuild

Copy link
Contributor

@jdannberg jdannberg left a comment

Choose a reason for hiding this comment

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

Great, looks good! Thank you for contributing this!
This is ready to merge once the tester is finished.

@jdannberg
Copy link
Contributor

@naliboff You still have to approve before we can merge this.

Copy link
Contributor

@naliboff naliboff left a comment

Choose a reason for hiding this comment

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

@danieldouglas92 - Nice work, ready to merge!

benchmarks/infill_density/infill_ascii.prm Show resolved Hide resolved
@naliboff naliboff merged commit af73959 into geodynamics:main May 23, 2022
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

4 participants