PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Public Member Functions | List of all members
num_utilities::bubble_sort Interface Reference

Sorting with the bubble sort routine. More...

Public Member Functions

subroutine bubble_sort_int (a, piv)
 integer version More...
 
subroutine bubble_sort_real (a, piv)
 real version More...
 

Detailed Description

Sorting with the bubble sort routine.

Optionally, the pivots can be given back.

Note
Adapted from http://rosettacode.org/wiki/Category:Fortran

Definition at line 237 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ bubble_sort_int()

subroutine num_utilities::bubble_sort::bubble_sort_int ( integer, dimension(:), intent(inout)  a,
integer, dimension(:), intent(inout), optional  piv 
)

integer version

Parameters
[in,out]avector to sort
[in,out]pivpivots

Definition at line 1539 of file num_utilities.f90.

◆ bubble_sort_real()

subroutine num_utilities::bubble_sort::bubble_sort_real ( real(dp), dimension(:), intent(inout)  a,
integer, dimension(:), intent(inout), optional  piv 
)

real version

Parameters
[in,out]avector to sort
[in,out]pivpivots

Definition at line 1505 of file num_utilities.f90.


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