0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_orderpack::refpar Interface Reference

Skewed-pivot with quicksort ranking (unoptimized). More...

Public Member Functions

subroutine d_refpar (xdont, irngt, nord)
 
subroutine r_refpar (xdont, irngt, nord)
 
subroutine i_refpar (xdont, irngt, nord)
 

Detailed Description

Skewed-pivot with quicksort ranking (unoptimized).

Ranks partially XVALT by IRNGT, up to order NORD. This version is not optimized for performance, and is thus not as difficult to read as some other ones. It uses a pivoting strategy such as the one of finding the median based on the quicksort algorithm. It uses a temporary array, where it stores the partially ranked indices of the values. It iterates until it can bring the number of values lower than the pivot to exactly NORD, and then uses an insertion sort to rank this set, since it is supposedly small.

Parameters
[in]integer(i4)/real(sp,dp), dimension(:) :: XVALTArray to be ranked.
[in]integer(i4) :: NORDNumber of ranked elements.
Return values
integer(i4), dimension(:) :: IRNGTIndex of rank.

Definition at line 538 of file mo_orderpack.f90.

Member Function/Subroutine Documentation

◆ d_refpar()

subroutine mo_orderpack::refpar::d_refpar ( real(kind = dp), dimension (:), intent(in)  xdont,
integer(kind = i4), dimension (:), intent(out)  irngt,
integer(kind = i4), intent(in)  nord 
)

Definition at line 8472 of file mo_orderpack.f90.

◆ i_refpar()

subroutine mo_orderpack::refpar::i_refpar ( integer(kind = i4), dimension (:), intent(in)  xdont,
integer(kind = i4), dimension (:), intent(out)  irngt,
integer(kind = i4), intent(in)  nord 
)

Definition at line 8706 of file mo_orderpack.f90.

◆ r_refpar()

subroutine mo_orderpack::refpar::r_refpar ( real(kind = sp), dimension (:), intent(in)  xdont,
integer(kind = i4), dimension (:), intent(out)  irngt,
integer(kind = i4), intent(in)  nord 
)

Definition at line 8589 of file mo_orderpack.f90.


The documentation for this interface was generated from the following file: