Skip to content

Commit 25518ef

Browse files
Update examples/tree_2d_dgsem/elixir_advection_implicit_sparse_jacobian.jl
1 parent aba1e36 commit 25518ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tree_2d_dgsem/elixir_advection_implicit_sparse_jacobian.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ rhs = (du_ode, u0_ode) -> Trixi.rhs!(du_ode, u0_ode, semi_real, t0)
9797

9898
# Taken from example linked above to detect the pattern and choose how to do the AutoDiff automatically
9999
sd = SymbolicsSparsityDetection()
100-
ad_type = AutoFiniteDiff()
100+
ad_type = AutoFiniteDiff() # `AutoForwardDiff()` does also work, but not strictly necessary for sparsity detection only
101101
sparse_adtype = AutoSparse(ad_type)
102102

103103
# `sparse_cache` will reduce calculation time when Jacobian is calculated multiple times,

0 commit comments

Comments
 (0)