PB3D
[2.45]
Ideal linear high-n MHD stability in 3-D
|
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... | |
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.
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
[in,out] | vals | values to be rounded |
[in] | lim_lo | lower limit on val |
[in] | lim_hi | upper limit on val |
[in] | tol | tolerance |
Definition at line 1383 of file num_utilities.f90.
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
[in,out] | val | value to be rounded |
[in] | lim_lo | lower limit on val |
[in] | lim_hi | upper limit on val |
[in] | tol | tolerance |
Definition at line 1421 of file num_utilities.f90.