Skip to content

Commit

Permalink
looks like dnad
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Mar 28, 2024
1 parent 7918b34 commit be872c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/forwarddif_dual.f90
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ elemental function add_dr(u, r) result(res)
type(dual), intent(in) :: u
real(wp), intent(in) :: r
type(dual) :: res
res%val = u%val + r
res%val = r + u%val
res%der = u%der
end function

Expand All @@ -296,7 +296,8 @@ elemental function add_rd(r, v) result(res)
real(wp), intent(in) :: r
type(dual), intent(in) :: v
type(dual) :: res
res = v + r
res%val = r + v%val
res%der = v%der
end function

!~~~ subtraction ~~~!
Expand Down

0 comments on commit be872c8

Please sign in to comment.