da_innerprod.inc

References to this file elsewhere.
1 subroutine da_innerprod(mata,matc,ni,nj)
2 
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
6 
7    implicit none
8 
9    integer, intent(in)  :: ni, nj
10    real,    intent(in)  :: mata(ni,nj)
11    real,    intent(out) :: matc(nj,nj)
12 
13    integer             :: i1, i2, k       ! Loop counters.
14 
15    if (trace_use) call da_trace_entry("da_innerprod")
16 
17    matc = 0.0
18 
19    do i1=1,nj
20       do i2=1,nj
21          do k=1,ni
22             matc(i1,i2) = matc(i1,i2) + mata(k,i1)*mata(k,i2)
23          end do
24       end do
25    end do
26 
27    if (trace_use) call da_trace_exit("da_innerprod")
28 
29 end subroutine da_innerprod
30 
31