Skip to content

Commit d43d152

Browse files
committed
createCoordianteSpace() test
1 parent 0d4e0df commit d43d152

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

firedrake/cython/dmcommon.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,7 @@ def _set_dg_coordinates(PETSc.DM dm,
19131913
PetscScalar *dg_coords
19141914
const PetscScalar *firedrake_dg_coords
19151915
PetscInt n, gdim, cStart, cEnd, c, offset, firedrake_offset, i, j, coord_size, ndof
1916+
PETSc.FE coord_fe
19161917

19171918
gdim = firedrake_dg_coord_vec.getBlockSize()
19181919
coord_dm = dm.getCoordinateDM()
@@ -1945,6 +1946,7 @@ def _set_dg_coordinates(PETSc.DM dm,
19451946
dg_coord_vec,
19461947
True)
19471948
dm.setCellCoordinatesLocal(dg_coord_vec)
1949+
dm.createCoordinateSpace(1, True, False)
19481950

19491951

19501952
@cython.boundscheck(False)

firedrake/utility_meshes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ def TensorRectangleMesh(
734734
plex = mesh.plex_from_cell_list(
735735
2, cells, coords, comm, mesh._generate_default_mesh_topology_name(name)
736736
)
737+
plex.createCoordinateSpace(1, False, False)
737738

738739
# mark boundary facets
739740
plex.createLabel(dmcommon.FACE_SETS_LABEL)

0 commit comments

Comments
 (0)