max Interface

public interface max

Overload of the max intrinsic for a vec3


Module Procedures

private pure elemental function max_vec(this, val)

Get the max value elementwise between a vec3 and a scalar

Arguments

Type IntentOptional Attributes Name
type(vector), intent(in) :: this

Input vector

real(kind=wp), intent(in) :: val

Input max value

Return Value type(vector)

private pure elemental function maxval_vec(this)

Get the max value in a vec3

Arguments

Type IntentOptional Attributes Name
type(vector), intent(in) :: this

Input vector

Return Value real(kind=wp)