Skip to content

Add recursive flag for adapt to mesh handle #2244

@lenaploetzke

Description

@lenaploetzke

Feature request

In #2057, set_adapt for the mesh handle is defined. By writing a test, i noticed that the flag recursive does not work out straightforward. Flag is currently removed for the mesh handle.

Current status:
Error occurs (or more precisely infinite runtime) because in t8_forest_adapt in the case of set_adapt_recursive, a list with elements to be refined refine_list is created. The elements are not updated in the mesh handle and no list is created such that the mesh handle adapt works with the old elements. The get_level will not change such that an infinite loop is created if the adapt callback is called recursively.
The infinite loop occurs with the first element to be refined in the test case, coarsening wasn't a problem.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution or feature you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Estimated priority
Which of these is most applicable (remove the others):

"Priority: high" Should be solved as soon as possible

"Priority: medium" Should be solved within half a year

"Priority: low" Should be solved eventually

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions