Skip to content

Commit 5f1e014

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 65aa695 commit 5f1e014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/example_peninsula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def peninsula_fieldset(xdim, ydim, mesh="flat", grid_type="A"):
5757

5858
# Create the fields
5959
x, y = np.meshgrid(La, Wa, sparse=True, indexing="xy")
60-
P = (u0 * R**2 * y / ((x - x0) ** 2 + y**2) - u0 * y)
60+
P = u0 * R**2 * y / ((x - x0) ** 2 + y**2) - u0 * y
6161

6262
# Set land points to zero
6363
landpoints = P >= 0.0

0 commit comments

Comments
 (0)