normalize_coordinate_value Subroutine

public subroutine normalize_coordinate_value(value, min_val, max_val, normalized_value)

Normalize a coordinate value to [0,1] range

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value
real(kind=wp), intent(in) :: min_val
real(kind=wp), intent(in) :: max_val
real(kind=wp), intent(out) :: normalized_value