Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=ESMF_KIND_R8), | intent(out) | :: | e(3) | |||
real(kind=ESMF_KIND_R8), | intent(in) | :: | p1(3) | |||
real(kind=ESMF_KIND_R8), | intent(in) | :: | p2(3) |
subroutine vect_cross(e, p1, p2) real(ESMF_KIND_R8), intent(in) :: p1(3), p2(3) real(ESMF_KIND_R8), intent(out):: e(3) ! ! Perform cross products of 3D vectors: e = P1 X P2 ! e(1) = p1(2)*p2(3) - p1(3)*p2(2) e(2) = p1(3)*p2(1) - p1(1)*p2(3) e(3) = p1(1)*p2(2) - p1(2)*p2(1) end subroutine vect_cross