pure function funBplus0(b) result(ret) real(dp), intent(in) :: b real(dp) :: ret ret = b end function funBplus0