pure function funZero(b) result(ret) real(dp), intent(in) :: b real(dp) :: ret unused_var(b) ret = 0.0_dp end function funZero