Computes the box product (scalar triple product) of the three vectors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | a | ||
real(kind=wp), | intent(in), | dimension(:) | :: | b | ||
real(kind=wp), | intent(in), | dimension(:) | :: | c |
pure function box_product(a,b,c) result(d) implicit none real(wp),dimension(:),intent(in) :: a real(wp),dimension(:),intent(in) :: b real(wp),dimension(:),intent(in) :: c real(wp) :: d d = dot_product(a,cross(b,c)) end function box_product