Skip to content

Commit

Permalink
Remove parentheses in discretization class definitions (old neglected…
Browse files Browse the repository at this point in the history
… Black stuff)
  • Loading branch information
IvarStefansson committed Jan 15, 2019
1 parent 1d98ff0 commit ed2507f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/porepy/numerics/fem/mass_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import porepy as pp


class P1MassMatrix():
class P1MassMatrix:

# ------------------------------------------------------------------------------#

Expand Down Expand Up @@ -177,4 +177,4 @@ def massH1(self, c_volume, dim):
# pylint: disable=invalid-name

M = np.ones((dim + 1, dim + 1)) + np.identity(dim + 1)
return c_volume * M / ((dim + 1) * (dim + 2))
return c_volume * M / ((dim + 1) * (dim + 2))
2 changes: 1 addition & 1 deletion src/porepy/numerics/fem/p1.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
logger = logging.getLogger(__name__)


class P1():
class P1:

# ------------------------------------------------------------------------------#

Expand Down
4 changes: 2 additions & 2 deletions src/porepy/numerics/fem/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import porepy as pp


class P1Source():
class P1Source:
"""
Discretization of the integrated source term
int q * dx
Expand All @@ -31,4 +31,4 @@ def matrix_rhs(self, g, data):

lhs = sps.csc_matrix((self.ndof(g), self.ndof(g)))

return lhs, M.dot(source)
return lhs, M.dot(source)

0 comments on commit ed2507f

Please sign in to comment.