step_tanh Function

public pure function step_tanh(x0, x, wx)

Smooth step function based on hyperbolic tangent

Arguments

Type IntentOptional Attributes Name
real(kind=FP), intent(in) :: x0

Position of center of step

real(kind=FP), intent(in) :: x

Position where function is evaluated

real(kind=FP), intent(in), optional :: wx

Width of step, if set to zero yields heaviside function

Return Value real(kind=fp)