Skip to content

Commit 6a129f4

Browse files
authored
Minor corrections in heat equation tutorial (#1298)
- fix remark: generate_grid creates a square [-1,1]^2 and not a unit square. - fix spelling mistake: cels -> cells
1 parent a347761 commit 6a129f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/literate-tutorials/heat_equation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# First we load Ferrite, and some other packages we need
4444
using Ferrite, SparseArrays
4545
# We start by generating a simple grid with 20x20 quadrilateral elements
46-
# using `generate_grid`. The generator defaults to the unit square,
46+
# using `generate_grid`. The generator defaults to the square ([-1,1]^2),
4747
# so we don't need to specify the corners of the domain.
4848
grid = generate_grid(Quadrilateral, (20, 20));
4949

@@ -191,7 +191,7 @@ function assemble_global(cellvalues::CellValues, K::SparseMatrixCSC, dh::DofHand
191191
f = zeros(ndofs(dh))
192192
## Create an assembler
193193
assembler = start_assemble(K, f)
194-
## Loop over all cels
194+
## Loop over all cells
195195
for cell in CellIterator(dh)
196196
## Reinitialize cellvalues for this cell
197197
reinit!(cellvalues, cell)

0 commit comments

Comments
 (0)