We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f96d72 commit 61ad5aaCopy full SHA for 61ad5aa
festim/meshing/mesh_1d.py
@@ -73,6 +73,10 @@ def define_volume_markers(self, materials):
73
74
def define_measures(self, materials):
75
"""Creates the fenics.Measure objects for self.dx and self.ds"""
76
+ if len(materials) > 1 and any(m.borders is None for m in materials):
77
+ raise ValueError(
78
+ "borders attributes need to be set for multiple 1D domains"
79
+ )
80
if materials[0].borders is not None:
81
materials.check_borders(self.size)
82
self.define_markers(materials)
0 commit comments