blob: 118a9653312ac0bcc654147cd2e3267ba4a4dc54 [file] [log] [blame]
Adrià Vilanova Martínezebb87792022-06-04 20:07:20 +02001real*8 function magne(S, L)
avm9996345a8a462022-06-04 12:41:03 +02002 implicit none
3 integer*4, intent(in) :: L
4 integer*2, intent(out) :: S(1:64,1:64)
5 integer*4 :: i, j
6 real*8 :: mag
7 mag = 0d0
8
9 do i = 1, L
10 do j = 1, L
11 mag = mag + S(i, j)
12 enddo
13 enddo
14
15 magne = mag
16 return
Adrià Vilanova Martínezebb87792022-06-04 20:07:20 +020017end function magne