Skip to content

Commit

Permalink
Add trest
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Sep 24, 2024
1 parent 708d46a commit ca05fed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/test/unit/refinement/test_refinement.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 2018-2021 Chris N Richardson and Jørgen S. Dokken
#
# Copyright (C) 2018-2024 Chris N Richardson and Jørgen S. Dokken

# This file is part of DOLFINx (https://www.fenicsproject.org)
#
# SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down Expand Up @@ -212,3 +212,10 @@ def test_refine_cell_meshtag(tdim, refine_plaza_wrapper):
new_meshtag = transfer_meshtag(meshtag, fine_mesh, parent_cell)
assert sum(new_meshtag.values) == (tdim * 4 - 4) * sum(meshtag.values)
assert len(new_meshtag.indices) == (tdim * 4 - 4) * len(meshtag.indices)


def test_refine_ufl_cargo():
mesh = create_unit_cube(MPI.COMM_WORLD, 4, 3, 3)
mesh.topology.create_entities(1)
refined_mesh, _, _ = refine(mesh, redistribute=False)
assert refined_mesh.ufl_domain().ufl_cargo() != mesh.ufl_domain().ufl_cargo()

0 comments on commit ca05fed

Please sign in to comment.