bessel.f90 Source File


This file depends on

sourcefile~~bessel.f90~~EfferentGraph sourcefile~bessel.f90 bessel.f90 sourcefile~k1.f k1.f sourcefile~bessel.f90->sourcefile~k1.f sourcefile~ribesl.f ribesl.f sourcefile~bessel.f90->sourcefile~ribesl.f sourcefile~rybesl.f rybesl.f sourcefile~bessel.f90->sourcefile~rybesl.f sourcefile~k0.f k0.f sourcefile~bessel.f90->sourcefile~k0.f sourcefile~rkbesl.f rkbesl.f sourcefile~bessel.f90->sourcefile~rkbesl.f sourcefile~i0.f i0.f sourcefile~bessel.f90->sourcefile~i0.f sourcefile~i1.f i1.f sourcefile~bessel.f90->sourcefile~i1.f sourcefile~rjbesl.f rjbesl.f sourcefile~bessel.f90->sourcefile~rjbesl.f

Files dependent on this one

sourcefile~~bessel.f90~~AfferentGraph sourcefile~bessel.f90 bessel.f90 sourcefile~funcs.f90 funcs.f90 sourcefile~funcs.f90->sourcefile~bessel.f90 sourcefile~calc.f90 calc.f90 sourcefile~calc.f90->sourcefile~funcs.f90 sourcefile~ui.f90 ui.f90 sourcefile~calc.f90->sourcefile~ui.f90 sourcefile~eval.f90 eval.f90 sourcefile~calc.f90->sourcefile~eval.f90 sourcefile~ui.f90->sourcefile~funcs.f90 sourcefile~eval.f90->sourcefile~funcs.f90 sourcefile~eval.f90->sourcefile~ui.f90

Contents

Source Code


Source Code

module bessel

use assert, only: wp, isclose
use rjb, only: rjbesl
use rji, only: ribesl
use rjk, only: rkbesl
use rjy, only: rybesl
use i0, only: besi0
use i1, only: besi1
use k0, only: besk0
use k1, only: besk1

implicit none

private 
public :: jinc, besi0, besi1, besk0, besk1, ribesl, rjbesl, rkbesl, rybesl

contains


elemental real(wp) FUNCTION jinc(X)
real(wp), INTENT(IN) :: X

IF (isclose(x, 0._wp)) THEN
   jinc = 0.5_wp
ELSE
   jinc = bessel_j1(X)/X
END IF
END FUNCTION jinc


end module bessel