find_zero Subroutine

public subroutine find_zero(a, b, tol, f, iuser, ruser, xzero, ifail)

Finds the zero of function f within interval [a,b] Wrapper for Fortran 77 routine in zeroin.f

Arguments

Type IntentOptional Attributes Name
real(kind=DP), intent(in) :: a

Left limit of interval

real(kind=DP), intent(in) :: b

Right limit of interval

real(kind=DP), intent(in) :: tol

Absolute tolerance of result

class(func_1D_t), intent(in), target :: f

Function f

integer, intent(in), contiguous, target :: iuser(:)

Integer parameters of function f

real(kind=DP), intent(in), contiguous, target :: ruser(:)

Real parameters of function f

real(kind=DP), intent(out) :: xzero

On success: zero of function f

integer, intent(out) :: ifail

On success = 0, otherwise -1


Calls

proc~~find_zero~~CallsGraph proc~find_zero find_zero func func proc~find_zero->func

Called by

proc~~find_zero~~CalledByGraph proc~find_zero find_zero proc~get_dphi_shift get_dphi_shift proc~get_dphi_shift->proc~find_zero proc~polar_to_cart polar_to_cart proc~polar_to_cart->proc~find_zero proc~create_flux_surface_average_csr create_flux_surface_average_csr proc~create_flux_surface_average_csr->proc~polar_to_cart proc~create_polar_map_matrix create_polar_map_matrix proc~create_polar_map_matrix->proc~polar_to_cart proc~create_surface_average_csr create_surface_average_csr proc~create_surface_average_csr->proc~polar_to_cart proc~init immersed_trace_t%init proc~init->proc~get_dphi_shift program~diagnose_poincare diagnose_poincare program~diagnose_poincare->proc~polar_to_cart