Apply limiter after refinement/coarsening for T8codeMesh - #50
Merged
patrickersing merged 3 commits intoSep 13, 2025
Merged
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
patrickersing
left a comment
Owner
There was a problem hiding this comment.
Thanks for the extension to T8codeMesh!
I looked over the changes and besides some minor suggestions everything looks good from my end.
However, I have no experience with T8codeMesh, so it would be great if someone familiar with T8codeMesh could have a final look specifically over the compute_new_ids_refined_coarsened_elements! function.
patrickersing
merged commit Sep 13, 2025
7b8d2ab
into
patrickersing:amr_limiter
8 of 35 checks passed
amrueda
pushed a commit
that referenced
this pull request
Jul 30, 2026
* add positivity limiter to the amr callback * remove duplicate limiter! argument * Update src/callbacks_step/amr.jl Co-authored-by: Andrew Winters <andrew.ross.winters@liu.se> * Implement synchronized shifting for child elements * Implement synchronized shifting for child elements * Fix increase of `element_id` * Revise implementation with mean value of parent element * Add 1D and 3D * Remove if and use dispatching * Decrease theta by eps() * Implement first suggestions * Compute mean within `limiter !== nothing` * Add suggested comment * Restructure call of limiter for refined elements * Implement suggestions * Implement thread parallel version; Add timer * Remove `@assert` * Add function for coarsened elements * Fix dimension * Add auxiliary functions to compute new elements ids * Fix function name * Use `compute_u_mean`; Update docstring * Use `compute_u_mean` in limiter after coarsening * Rename function * Implement suggestions * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Update src/callbacks_stage/positivity_zhang_shu_dg1d.jl * Apply suggestions from code review * Update src/callbacks_stage/positivity_zhang_shu_dg2d.jl * Update src/callbacks_stage/positivity_zhang_shu_dg1d.jl * Update src/callbacks_stage/positivity_zhang_shu_dg1d.jl * Apply suggestions from code review * Rename for-variables; Remove comments * Remove codes as suggested * add comment for amr positivity-limiting * Apply limiter after refinement/coarsening for T8codeMesh (#50) * Apply limiter after refinement/coarsening with T8codeMesh * Implement suggestions * doc * Add simple tests * Update test/test_unit.jl * Update src/callbacks_step/amr.jl * Remove dispatching * Use Array{T, 2} instead of Matrix{T} * Add timer to computation of parent's mean value * Fix tests (Set `periodicity` and `boundary_conditions`) * fix docs * Add function for dimensions-independent code * Add comment and source to elixirs * Simplify variable names * Apply `compute_u_mean_refined_elements` also for T8code * Update NEWS.md * Implement fiirst suggestions * Add `theta=max(0, theta)` to tutorial * Fix error in documentation * fix merge conflict in NEWS.md --------- Co-authored-by: Andrew Winters <andrew.ross.winters@liu.se> Co-authored-by: Benjamin Bolm <74359358+bennibolm@users.noreply.github.com> Co-authored-by: Daniel Doehring <doehringd2@gmail.com> Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for T8codeMesh
see trixi-framework#2396
I am not an expert with T8codeMesh. So if there are any special features, I have probably forgotten to take them into account.
We could also do this in a different PR.