Skip to content

Commit 3698222

Browse files
committed
Merge branch 'master' of github.com:gridap/Tutorials into interpolation_tutorial
2 parents 7010c8f + ef6eb63 commit 3698222

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/emscatter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Fields.∇(Λf::Λ) = x->TensorValue{2,2,ComplexF64}(-(Λf(x)[1])^2*ds_PML(x,Λf
154154
# In the mesh file, we labeled the cylinder region with `Cylinder` to distinguish it from other regions. Using this tag, we can assign material properties correspondingly (basically a function with different value in different regions). The weak form is very similar to its mathematical form in gridap.
155155
#
156156

157-
# ### Intermdediate varaibles
157+
# ### Intermediate variables
158158
labels = get_face_labeling(model)
159159
dimension = num_cell_dims(model)
160160
tags = get_face_tag(labels,dimension)

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)