Skip to content

Commit 4b64598

Browse files
authored
Update test_semilinear1d_nonconstant_bounds.py
1 parent 7bb305f commit 4b64598

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/algorithms/test_semilinear1d_nonconstant_bounds.py

-5
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ def solve_problem(n, n_ref, u_init=None, maxiter=1000, gtol=1e-15, ftol=-np.inf
107107
u = Function(U)
108108
if u_init != None:
109109
u = project(u_init, U)
110-
u_vec = u.vector()[:]
111-
lb_vec = project(lb, U).vector()[:]
112-
ub_vec = project(ub, U).vector()[:]
113-
u_vec = np.clip(u_vec, lb_vec, ub_vec)
114-
u.vector()[:] = u_vec
115110

116111
y = Function(V)
117112
v = TestFunction(V)

0 commit comments

Comments
 (0)