clamp_to_unit Function

public function clamp_to_unit(value) result(clamped)

Clamp value to [0,1] range

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value

Return Value real(kind=wp)