Skip to content

Commit

Permalink
chore: remove unused variables and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yguclu committed Jan 14, 2020
1 parent 978cdf9 commit d4bfd73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions psydac/api/ast/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,7 @@ def fusion_loops(loops):
def compute_boundary_jacobian(parent_namespace, boundary, mapping=None):

# Sanity check on arguments
if isinstance(boundary, Boundary):
axis = boundary.axis
ext = boundary.ext
else:
if not isinstance(boundary, Boundary):
raise TypeError(boundary)

if mapping is None:
Expand All @@ -686,7 +683,7 @@ def compute_boundary_jacobian(parent_namespace, boundary, mapping=None):
else:
# Compute metric determinant g on manifold
J = SymbolicExpr(mapping.jacobian)
Jm = J[:, [i for i in range(J.shape[1]) if i != axis]]
Jm = J[:, [i for i in range(J.shape[1]) if i != boundary.axis]]
g = (Jm.T * Jm).det()

# Create statements for computing sqrt(g)
Expand Down
2 changes: 1 addition & 1 deletion psydac/api/discretization.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def solve(self, **kwargs):

from sympde.expr import integral
from sympde.expr import find
from sympde.topology import element_of, ScalarTestFunction
from sympde.topology import element_of #, ScalarTestFunction

# Extract trial functions from model equation
u = self.expr.trial_functions
Expand Down
1 change: 0 additions & 1 deletion psydac/api/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def __init__( self, V, grid, nderiv ):
# Modify data for boundary grid
if isinstance(grid, BoundaryQuadratureGrid):
axis = grid.axis
ext = grid.ext
if isinstance(V, ProductFemSpace):
for i in range(len(V.spaces)):
sp_space = V.spaces[i].spaces[axis]
Expand Down

0 comments on commit d4bfd73

Please sign in to comment.