PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
num_utilities::bubble_sort Interface Reference

Sorting with the bubble sort routine. More...

Public Member Functions

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

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 1538 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 1504 of file num_utilities.f90.


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