Hello I'm new here i need some help with a program. I have a file (ava.dat) which contains 6.000.000 integer numbers (non zero). There is a threshold value (mthres). I want to find which elements are greater or equal from this threshold and to make a calculation which will concern the next 10000 elements. I;m starting like this
.....
nmax=6000000
mthres=220970869
open(1,file='ava.dat')
do i=1,nmax
read(1,*)s(i)
if (s(i).ge.mthres) then
...
How can define the steps i+1,i+10000 where i is the position in which τηε criterio s(i).ge.mthres holds???
Any help would be appreciated
.....
nmax=6000000
mthres=220970869
open(1,file='ava.dat')
do i=1,nmax
read(1,*)s(i)
if (s(i).ge.mthres) then
...
How can define the steps i+1,i+10000 where i is the position in which τηε criterio s(i).ge.mthres holds???
Any help would be appreciated