Skip to content

Commit 2b9fbb1

Browse files
committed
Remove deprecation warning in script
1 parent d39f76d commit 2b9fbb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Notebooks/Developers/Snippets/Stokes_PoiseuilleFlow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@
149149
solver.add_natural_bc( sympy.Matrix([ pb, 0.0]) , 'Right')
150150

151151

152-
solver.add_dirichlet_bc( [0., 0.], "Left", [1] ) # no slip on the base
153-
solver.add_dirichlet_bc( [0., 0.], "Right", [1] ) # no slip on the top
152+
solver.add_dirichlet_bc( [None, 0.], "Left" ) # no slip on the base
153+
solver.add_dirichlet_bc( [None, 0.], "Right" ) # no slip on the top
154154

155155

156-
solver.add_dirichlet_bc( [0.,0.], "Bottom", [0, 1] ) # no slip on the base
157-
solver.add_dirichlet_bc( [0.,0.], "Top", [0, 1] ) # no slip on the top
156+
solver.add_dirichlet_bc( [0.,0.], "Bottom") # no slip on the base
157+
solver.add_dirichlet_bc( [0.,0.], "Top" ) # no slip on the top
158158

159159

160160
if uw.mpi.size == 1:

0 commit comments

Comments
 (0)