concept both scalar in category fortran
appears as: both scalars

This is an excerpt from Manning's book Modern Fortran: Building efficient parallel applications.
Exercise 2: Writing an elemental function that operates on both scalars and arrays
Listing 3.22. A variant of the cold front function that can operate on both scalars and arrays
language="fortran" linenumbering="unnumbered">real pure elemental function cold_front_temperature( & temp1, temp2, c, dx, dt) result(r) #1 real, intent(in) :: temp1, temp2, c, dx, dt r = temp2 - c * (temp2 - temp1) / dx * dt end function cold_front_temperature