Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed May 2, 2024
1 parent a8b03d4 commit 30b0929
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ngsPETSc/utils/firedrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
'''
try:
import firedrake as fd
from firedrake.logging import warning
from firedrake.cython import mgimpl as impl
from firedrake.__future__ import interpolate
except ImportError:
Expand Down Expand Up @@ -153,8 +152,8 @@ def curveField(self, order, tol=1e-8):
fd.logging.warning("Not able to curve Firedrake element {}".format(Idx))
else:
for j, datIdx in enumerate(cellMap.values[Idx][0:refPts.shape[0]]):
for dim in range(self.geometric_dimension()):
newFunctionCoordinates.sub(dim).dat.data[datIdx] = curvedPhysPts[i][j][dim]
for d in range(self.geometric_dimension()):
newFunctionCoordinates.sub(d).dat.data[datIdx] = curvedPhysPts[i][j][d]
return newFunctionCoordinates

def splitToQuads(plex, dim, comm):
Expand Down

0 comments on commit 30b0929

Please sign in to comment.