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

Rounds an arry of values to limits, with a tolerance \(10^{-5}\) that can optionally be modified. More...

Public Member Functions

integer function round_with_tol_ind (val, lim_lo, lim_hi, tol)
 individual version More...
 
integer function round_with_tol_arr (vals, lim_lo, lim_hi, tol)
 array version More...
 

Detailed Description

Rounds an arry of values to limits, with a tolerance \(10^{-5}\) that can optionally be modified.

Definition at line 169 of file num_utilities.f90.

Member Function/Subroutine Documentation

◆ round_with_tol_arr()

integer function num_utilities::round_with_tol::round_with_tol_arr ( real(dp), dimension(:), intent(inout)  vals,
real(dp), intent(in)  lim_lo,
real(dp), intent(in)  lim_hi,
real(dp), intent(in), optional  tol 
)

array version

Parameters
[in,out]valsvalues to be rounded
[in]lim_lolower limit on val
[in]lim_hiupper limit on val
[in]toltolerance

Definition at line 1383 of file num_utilities.f90.

◆ round_with_tol_ind()

integer function num_utilities::round_with_tol::round_with_tol_ind ( real(dp), intent(inout)  val,
real(dp), intent(in)  lim_lo,
real(dp), intent(in)  lim_hi,
real(dp), intent(in), optional  tol 
)

individual version

Parameters
[in,out]valvalue to be rounded
[in]lim_lolower limit on val
[in]lim_hiupper limit on val
[in]toltolerance

Definition at line 1421 of file num_utilities.f90.


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