-
Notifications
You must be signed in to change notification settings - Fork 18
[Ramses][AMR] Get amr levels #1419
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
base: main
Are you sure you want to change the base?
Conversation
[Ramses][Solvergraph] AMR level zero sizes Added a solvergraph node to compute level zero sizes for each patch. This will be used for instance to compute the amr level for blocks in each patch. updates
Summary of ChangesHello @Akos299, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces functionality to determine the Adaptive Mesh Refinement (AMR) levels for all simulation blocks within a patch. It achieves this by first computing the base cell size at level 0 for each patch and then utilizing this, alongside block boundary information, to derive the specific AMR level for individual blocks. This enhancement provides crucial data for understanding the refinement structure of the simulation grid. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces the capability to compute AMR levels for blocks within a patch. It adds a new ComputeLevel0CellSize node and utilizes the existing ComputeAMRLevel node. The changes are well-structured and integrate cleanly into the existing solver graph. My review includes suggestions to improve maintainability by removing a duplicated type definition and providing descriptive names for a newly created solver graph field, which will aid in debugging and visualization.
[Ramses][AMR] AMR levels Get AMR levels for all blocks in each patch. This is done by using the ComputeAMRLvel node implemented by @tdavidcl. updates
6f0785d to
a977735
Compare
Workflow reportworkflow report corresponding to commit b1e8e60 Light CI is enabled. This will only run the basic tests and not the full tests. Pre-commit check reportPre-commit check: ✅ Test pipeline can run. Doxygen diff with
|
| std::make_shared<decltype(node_level0_sizes)>(std::move(node_level0_sizes))); | ||
| } | ||
|
|
||
| { // compute block amr level in patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarely to #1418 this should be enabled based on the solverconfig. For the base solver this is not used
Get the AMR levels of all blocks in a patch.
For this we use the ComputeAMRLevel node implemented by @tdavidcl.
TODO: Add possibility in the binding to get the amr levels at post-treatment stage.