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), so here I saved each 10 data to x before passing to subroutine. Then I called subroutine 5 times (ie for five variables)
do i=1,2
do j=1,10
x1(j)=a(i,j)
.
.
x5(j)=e(i,j)
call sort(x1)
.
.
call sort(x5)
end do
end do
is there any alternative so that I need to call subroutine only once. ie some additional loop so that variables keep on changing.
my entire fortran code contain many such situations (different subroutines) and original data is large (30000 data points).
Thanks in advance
Charls
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), so here I saved each 10 data to x before passing to subroutine. Then I called subroutine 5 times (ie for five variables)
do i=1,2
do j=1,10
x1(j)=a(i,j)
.
.
x5(j)=e(i,j)
call sort(x1)
.
.
call sort(x5)
end do
end do
is there any alternative so that I need to call subroutine only once. ie some additional loop so that variables keep on changing.
my entire fortran code contain many such situations (different subroutines) and original data is large (30000 data points).
Thanks in advance
Charls