Note
Function that returns the vector PARAM%order that contains the heights order.
subroutine calc_ord() !================================================================================================ !<@note Function that returns the vector PARAM%order that contains the heights order. !< !<@endnote !------------------------------------------------------------------------------------------------ implicit none integer(kind=I4) :: l, w, h real(kind=R8), allocatable, dimension(:) :: tab_tmp w = PARAM%width h = PARAM%height l = PARAM%npts allocate( tab_tmp(1:l) ) tab_tmp(1:l) = reshape( PARAM%surf(1:w, 1:h), [l] ) call init_order( order = PARAM%order(1:l), & ! OUT n = l ) ! IN call sort_array2( tab_inout = tab_tmp(1:l), & ! IN tab0 = PARAM%order(1:l), & ! OUT n = l ) ! IN deallocate( tab_tmp ) return endsubroutine calc_ord