Skip to content

Commit

Permalink
Fixing FIAT element used.
Browse files Browse the repository at this point in the history
Correction by Pablo
  • Loading branch information
Umberto Zerbinati committed Oct 30, 2023
1 parent 671f530 commit 0e30cbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ngsPETSc/utils/firedrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
'''
try:
import firedrake as fd
import FIAT
import ufl
except ImportError:
fd = None
FIAT = None
ufl = None

import warnings
Expand Down Expand Up @@ -71,6 +73,8 @@ def curveField(self, order):

#Computing reference points using fiat
fiat_element = newFunctionCoordinates.function_space().finat_element.fiat_equivalent
if isinstance(fiat_element, FIAT.DiscontinuousElement):
fiat_element = fiat_element._element
entity_ids = fiat_element.entity_dofs()
nodes = fiat_element.dual_basis()
refPts = []
Expand Down

0 comments on commit 0e30cbc

Please sign in to comment.