Skip to content

Commit c1d9537

Browse files
Update benchmarks/linear-elastic-plate-with-hole/FEniCS/plateWithHoleSolution.py
update type hints Co-authored-by: Sjard Mathis Rosenbusch <69848361+srosenbu@users.noreply.github.com>
1 parent f2fd32f commit c1d9537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/linear-elastic-plate-with-hole/FEniCS/plateWithHoleSolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, E: float, nu: float, radius: float, L:float, load:float) -> N
88
self.E = E
99
self.nu = nu
1010

11-
def polar(self, x):
11+
def polar(self, x: np.ndarray) -> np.ndarray:
1212
r = np.hypot(x[0], x[1])
1313
theta = np.atan2(x[1], x[0])
1414
return r, theta

0 commit comments

Comments
 (0)