File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 300300 end
301301
302302 # Instantiate Dual to test with perturbations
303- ε = ForwardDiff. Dual {ForwardDiff.Tag{Nothing, Float64}} (0.0 , 1.0 )
303+ # We need to call the `Tag` constructor to trigger the `ForwardDiff.tagcount`
304+ ε = ForwardDiff. Dual {typeof(ForwardDiff.Tag(Val(:mytag), Float64))} (0.0 , 1.0 )
304305
305306 @testset " Atom movement" begin
306307 # Moving the second atom should break the transx symmetry, but not the others
388389 functionals= LDA (), temperature= 1e-3 , smearing= Smearing. Gaussian ())
389390
390391 # Make silicon dual model
391- T = typeof (ForwardDiff. Tag (:mytag , Float64))
392+ # We need to call the `Tag` constructor to trigger the `ForwardDiff.tagcount`
393+ T = typeof (ForwardDiff. Tag (Val (:mytag ), Float64))
392394 x_dual = ForwardDiff. Dual {T} (1.0 , 1.0 )
393395 model_dual = Model (model; lattice= x_dual * model. lattice)
394396
You can’t perform that action at this time.
0 commit comments