From 8dcae093d132674ad3c8c99178885314bb15248a Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 25 Apr 2019 15:40:01 +0200 Subject: fix indexing bug --- src/bettermath2.F90 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bettermath2.F90 b/src/bettermath2.F90 index 0baa473..d1eaa37 100644 --- a/src/bettermath2.F90 +++ b/src/bettermath2.F90 @@ -49,7 +49,7 @@ CONTAINS DO j = 1, size(B, 2) DO k = 1, size(A, 2) - C(:,j) = C(:,j) + A(:,j) * B(k,j) + C(:,j) = C(:,j) + A(:,k) * B(k,j) END DO END DO @@ -66,7 +66,7 @@ CONTAINS DO j = 1, size(B, 2) DO k = 1, size(A, 2) - C(:,j) = C(:,j) + A(:,j) * B(k,j) + C(:,j) = C(:,j) + A(:,k) * B(k,j) END DO END DO @@ -83,7 +83,7 @@ CONTAINS DO j = 1, size(B, 2) DO k = 1, size(A, 2) - C(:,j) = C(:,j) + A(:,j) * B(k,j) + C(:,j) = C(:,j) + A(:,k) * B(k,j) END DO END DO -- cgit v1.2.3