Skip to content

Commit ee0e629

Browse files
author
uzerbianati
committed
Added warning for periodic meshes.
1 parent da4415d commit ee0e629

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ngsPETSc/plex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
PETSc DMPlex using the petsc4py interface.
44
'''
55
import itertools
6+
import warnings
67
import numpy as np
78
from petsc4py import PETSc
89
import netgen.meshing as ngm
@@ -273,6 +274,8 @@ def createPETScDMPlex(self, mesh):
273274
self.ngMesh = mesh.ngmesh
274275
else:
275276
self.ngMesh = mesh
277+
if len(self.ngMesh.GetIdentifications()) > 0:
278+
warnings.warn("Periodic mesh are not supported by ngsPETSc" , RuntimeWarning)
276279
comm = self.comm
277280
self.geo = self.ngMesh.GetGeometry()
278281
if self.ngMesh.dim == 3:

0 commit comments

Comments
 (0)