From d63dd8d081a6fcd0715cd13f26df59fb831769d2 Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 18:51:00 +0100 Subject: Imported Upstream version 1.5.0 --- lib/dot.f90 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/dot.f90 (limited to 'lib/dot.f90') diff --git a/lib/dot.f90 b/lib/dot.f90 new file mode 100644 index 00000000..a68c5bd1 --- /dev/null +++ b/lib/dot.f90 @@ -0,0 +1,11 @@ +real*8 function dot(x,y) + + real*8 x(3),y(3) + + dot=0.d0 + do i=1,3 + dot=dot+x(i)*y(i) + enddo + + return +end function dot -- cgit v1.2.3