From 67db729b18f38c51908569de269d45d00ea9bf32 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 23 Apr 2019 22:32:49 +0200 Subject: use more readable size() notation in bettermath --- src/bettermath.F90 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/bettermath.F90 b/src/bettermath.F90 index e2c0773..c77bedf 100644 --- a/src/bettermath.F90 +++ b/src/bettermath.F90 @@ -47,9 +47,9 @@ CONTAINS allocate(C(size(A, 1), size(B, 2))) C = 0 - DO j = 1, size(B(1,:)) - DO k = 1, size(A(1,:)) - DO i = 1, size(A(:,1)) + DO j = 1, size(B, 2) + DO k = 1, size(A, 2) + DO i = 1, size(A, 1) C(i,j) = C(i,j) + A(i,k) * B(k,j) END DO @@ -67,9 +67,9 @@ CONTAINS allocate(C(size(A, 1), size(B, 2))) C = 0 - DO j = 1, size(B(1,:)) - DO k = 1, size(A(1,:)) - DO i = 1, size(A(:,1)) + DO j = 1, size(B, 2) + DO k = 1, size(A, 2) + DO i = 1, size(A, 1) C(i,j) = C(i,j) + A(i,k) * B(k,j) END DO @@ -87,9 +87,9 @@ CONTAINS allocate(C(size(A, 1), size(B, 2))) C = 0 - DO j = 1, size(B(1,:)) - DO k = 1, size(A(1,:)) - DO i = 1, size(A(:,1)) + DO j = 1, size(B, 2) + DO k = 1, size(A, 2) + DO i = 1, size(A, 1) C(i,j) = C(i,j) + A(i,k) * B(k,j) END DO -- cgit v1.2.3