Hi Bill,
I am sorry, It is not about sorting but "calling subroutine multiple times", as u can see I used call 5 times for 5 variables.
This can be simplified somehow ?. like in a do loop, hence I write "call" only once in the program and variables(a,b,c..) get repeated through do loop (I am...
Hi all,
I have some difficulty in processing a data.
I have 3 files each file has data(100x1).
while processing I derived 5 variables from data(100x1). ie a(2,10),b(2,10),c(2,10)...
Then I tried to sort each 10 values. my sorting subroutine take 1-D array (x(n)), so here I saved each 10 data...
Hi all,
I have a sorting program
do i=1,4
do j=i+1,5
if(er(i).gt.er(j))then
temp=er(i)
er(i)=er(j)
er(j)=temp
end if
end do
end do
I am looking how I can print sorted values with their array index as in original data.
example
er=[9,3,2,5,1,4]
sorted...
Hi all,
I have two files
111
112
113
111
114
&
115
115
116
117
117
118
I wanted to compare each value from file 1 with all values in file 2 and write the outputs if file1(i)+3==file2. my code is
open(11,file='f1')
i=1
32 read(11,*,end=98)file1(i)
open (12,file='f2')
31...
hi xwb,
I did the averaging using if condition(Fortran)but this requires may if conditions(for each a,b,c,...). I am looking for some simple technique so that I can use it for n no. of variables.
regards
acharls
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.