Skip to content
Snippets Groups Projects
Commit 3fe3fa40 authored by Thomas Gibson's avatar Thomas Gibson
Browse files

Clean up flake8 errors in geometry module

parent 99470181
No related branches found
No related tags found
No related merge requests found
......@@ -29,3 +29,10 @@ from grudge.geometry.metrics import (
inverse_surface_metric_derivative,
area_element
)
__all__ = (
"forward_metric_derivative_mat",
"inverse_metric_derivative_mat",
"inverse_surface_metric_derivative",
"area_element"
)
......@@ -140,7 +140,8 @@ def inverse_metric_derivative_mat(actx, dcoll, dd=None):
@memoize_on_first_arg
def inverse_first_fundamental_form(actx, dcoll, dd):
if dcoll.ambient_dim == dcoll.dim:
dim = dcoll.dim
if dcoll.ambient_dim == dim:
inv_mder = inverse_metric_derivative_mat(actx, dcoll, dd)
inv_form1 = inv_mder.dot(inv_mder.T)
else:
......@@ -201,7 +202,8 @@ def inverse_metric_derivative(actx, dcoll, rst_axis, xyz_axis, dd):
@memoize_on_first_arg
def inverse_surface_metric_derivative(actx, dcoll, rst_axis, xyz_axis, dd=None):
if dcoll.ambient_dim == dcoll.dim:
dim = dcoll.dim
if dcoll.ambient_dim == dim:
imd = inverse_metric_derivative(
actx, dcoll, rst_axis, xyz_axis, dd=dd
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment