Skip to content

Commit

Permalink
fixing mistake in the prod rule of hessian of two fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore-nori committed Nov 17, 2024
1 parent 558339a commit 757af98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/FieldsInterfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function product_rule_hessian(fun,f1,f2,∇f1,∇f2,∇∇f1,∇∇f2)
end

function product_rule_hessian(::typeof(*),f1::Real,f2::Real,∇f1,∇f2,∇∇f1,∇∇f2)
∇∇f1*f2 + ∇∇f2*f1 + 2*∇f1∇f2
∇∇f1*f2 + ∇∇f2*f1 + ∇f1∇f2 + ∇f2∇f1
end

for op in (:*,)
Expand Down

0 comments on commit 757af98

Please sign in to comment.