Skip to content

Commit

Permalink
Use fill instead of Ferrite.fillzero in assembly explanation (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnutAM authored Oct 2, 2024
1 parent bee2384 commit 9359cfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/topics/assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ nothing # hide
using BenchmarkTools

@btime assemble_v1(assembler, K, dofs, Ke) evals = 10 setup = fill!(K, 0)
@btime assemble_v2(assembler, K, dofs, Ke) evals = 10 setup = Ferrite.fillzero!(K)
@btime assemble_v3(assembler, K, dofs, Ke) evals = 10 setup = Ferrite.fillzero!(K)
@btime assemble_v4(assembler, K, dofs, Ke) evals = 10 setup = Ferrite.fillzero!(K)
@btime assemble_v2(assembler, K, dofs, Ke) evals = 10 setup = fill!(K, 0)
@btime assemble_v3(assembler, K, dofs, Ke) evals = 10 setup = fill!(K, 0)
@btime assemble_v4(assembler, K, dofs, Ke) evals = 10 setup = fill!(K, 0)
```

The results below are obtained on an Macbook Pro with an Apple M3 CPU.
Expand Down

0 comments on commit 9359cfd

Please sign in to comment.