Skip to content

Commit ef6eb63

Browse files
Merge pull request #117 from gridap/fix_in_p_laplacian_tutorial
Update p_laplacian.jl
2 parents b540b5f + b0fbdc9 commit ef6eb63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/p_laplacian.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ flux(∇u) = norm(∇u)^(p-2) * ∇u
9696
f(x) = 1
9797
res(u,v) = ( (v)(flux(u)) - v*f )*
9898

99-
# Function `res` is the one representing the integrand of the weak residual $[r(u)](v)$. The first argument of function `res` stands for the function $u\in U_g$, where the residual is evaluated, and the second argument stands for a generic test function $v\in V_0$. Note that we have used the macro `@law` to construct the "constitutive law" that relates the nonlinear flux with the gradient of the solution.
99+
# Function `res` is the one representing the integrand of the weak residual $[r(u)](v)$. The first argument of function `res` stands for the function $u\in U_g$, where the residual is evaluated, and the second argument stands for a generic test function $v\in V_0$.
100100
#
101101
# On the other hand, we (optionally) implement a function `jac` representing the Jacobian.
102102
dflux(∇du,∇u) = (p-2)*norm(∇u)^(p-4)*(∇u∇du)*∇u+norm(∇u)^(p-2)*∇du

0 commit comments

Comments
 (0)