Skip to content

Incorporate topology#349

Draft
J15525 wants to merge 39 commits into
devfrom
305-feat-incorporate-topology
Draft

Incorporate topology#349
J15525 wants to merge 39 commits into
devfrom
305-feat-incorporate-topology

Conversation

@J15525

@J15525 J15525 commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Introduces topology to the other modules within Mantis. In particular, it ensures that Geometry and FunctionSpaces are aware of this new struct. This means that the multi-patch setting can be handled uniformly using information from topology.

J15525 and others added 30 commits March 30, 2026 16:19
- removed the old Mesh.jl-file.
- Propogated name changes to other modules (their imports).
- Updated the names of the associated test files.
- Removed the old Mesh tests.
….jl, and enlarge the type to include other geometries later
and rename `get_number_type` to `Base.eltype` and `get_vertex_coordinate` to `get_vertex_coordinates`.

doc: Add docstrings to the get_vertex_coordinates and
get_edge_coordinates functions. Also updated the CartesianGeometry
docstring.
This improves consistency and ensures that the error path has the
correct variable name.
@J15525 J15525 self-assigned this Mar 30, 2026
@apalha

apalha commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

This has to wait for SkeletonTopology to be finished.

@apalha apalha self-requested a review March 30, 2026 15:24

@apalha apalha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Needs to wait for SkeletonTopology.

@J15525

J15525 commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator Author

This has to wait for SkeletonTopology to be finished.

I also haven't finished everything yet. I just made it a draft pull request to make it more visible and trackable.

@apalha

apalha commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

This is full of merge conflicts...

@J15525 J15525 changed the base branch from main to dev March 30, 2026 15:39
@J15525

J15525 commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator Author

This is full of merge conflicts...

Should be better now, I forgot to select to right branch to merge to.

apalha added 5 commits March 31, 2026 10:24
CartesianPoints fixes and improvements

- iteration_order was broken, permuted_cart_num_points (why not permuted_cartesian_points?) because the permuted points were generated from the iteration_order but they had to be generated by the inverse permutation of the iteration_order. This seemed to work fine if all constituents points were of the same size, but it would break if not.

- Revamped the interface of CartesianPoints. Before it was assumed that all constituent_points were of the same type, i.e., all Vectors, or all LinRange. This was limiting because it was not possible to do something like constituent_points = (LinRange(0, 1, n), [1.0]), we would always have to do constituent_points = (LinRange(0, 1, n), LinRange(1, 1, 1)) or expand the first LinRange. This was done, I think, because a check was intended, and NTuple was used for this. Instead, we can use Varargs, which converts into a Tuple with the right types inside. The types are constrained to be derived from AbstractVector, so anything behaving like that is fine. Additionally, I also added a constraint so that all constituent points are all based on the same el_type, i.e., all need to be Float64 or Float32, for example. This type is also stored so that it can be retrieved as before.
@J15525 J15525 mentioned this pull request Jun 16, 2026
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Incorporate topology Multipatch extension Wrap-up current changes

2 participants