Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Indexed Sorting

pjotre
Beginner
724 Views

Hi:

I'm a new user of Fortran and only started programming recently. I'm working on an older program coded in Fortran 77. There the statement sortqx which performs indexed sorting is used. I'm currently working with Intel Fortran 10 with IMSL and cannot find any statement which does indexed sorting. What can I do?

Best,

Peter

0 Kudos
1 Reply
Steven_L_Intel1
Employee
724 Views
My guess is that "sortqx" was a library routine and not a statement. It is not standard Fortran. I can find a reference to a routine by that name in the old Compaq Extended Math Library, but that is not available to you. Intel MKL does not appear to have such a routine.

Intel Visual Fortran provides QSORT and SORTQQ library routines which does ordinary sorting, but not an index sort. IMSL also has a collection of sorting routines, but none of them appear to be index sorts (also known as "tag sort".)

Unless you can find a compatible routine source somewhere, you will probably have to rewrite that part of the code to use a normal sort.
0 Kudos
Reply