Skip to content

Commit

Permalink
doflocs for p0 elements should be in the center of gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
jove1 committed Apr 11, 2024
1 parent a0d679e commit a477591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skfem/element/element_tet/element_tet_p0.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ElementTetP0(ElementH1):
interior_dofs = 1
maxdeg = 0
dofnames = ['u']
doflocs = np.array([[.5, .5, .5]])
doflocs = np.array([[.25, .25, .25]])
refdom = RefTet

def lbasis(self, X, i):
Expand Down
2 changes: 1 addition & 1 deletion skfem/element/element_tri/element_tri_p0.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ElementTriP0(ElementH1):
interior_dofs = 1
maxdeg = 0
dofnames = ['u']
doflocs = np.array([[.5, .5]])
doflocs = np.array([[1/3, 1/3]])
refdom = RefTri

def lbasis(self, X, i):
Expand Down

0 comments on commit a477591

Please sign in to comment.