summaryrefslogtreecommitdiff
path: root/lib/ft8var/syncdist.f90
blob: 68bf814bb3df71c0e189c00f75bb51972a15f784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ip=maxloc(s81)
if(icos7(k-1).eq.(ip(1)-1)) then
  nsmax(1)=nsmax(1)+1
else
  s81(ip(1)-1)=0.; ip=maxloc(s81)
  if(icos7(k-1).eq.(ip(1)-1)) then
    nsmax(2)=nsmax(2)+1
  else
    s81(ip(1)-1)=0.; ip=maxloc(s81)
    if(icos7(k-1).eq.(ip(1)-1)) then
      nsmax(3)=nsmax(3)+1
    else
      s81(ip(1)-1)=0.; ip=maxloc(s81)
      if(icos7(k-1).eq.(ip(1)-1)) then
        nsmax(4)=nsmax(4)+1
      else
        s81(ip(1)-1)=0.; ip=maxloc(s81)
        if(icos7(k-1).eq.(ip(1)-1)) then
          nsmax(5)=nsmax(5)+1
        else
          s81(ip(1)-1)=0.; ip=maxloc(s81)
          if(icos7(k-1).eq.(ip(1)-1)) then
            nsmax(6)=nsmax(6)+1
          else
            s81(ip(1)-1)=0.; ip=maxloc(s81)
            if(icos7(k-1).eq.(ip(1)-1)) then
              nsmax(7)=nsmax(7)+1
            else
              s81(ip(1)-1)=0.; ip=maxloc(s81)
              if(icos7(k-1).eq.(ip(1)-1)) nsmax(8)=nsmax(8)+1
            endif
          endif
        endif
      endif
    endif
  endif
endif