home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / fortran / 4973 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.0 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!comlab.ox.ac.uk!oxuniv!nagrwb
  2. From: nagrwb@vax.oxford.ac.uk
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Reaching NAG via e-mail?
  5. Message-ID: <1993Jan11.090817.11199@vax.oxford.ac.uk>
  6. Date: 11 Jan 93 09:08:17 GMT
  7. References: <C0K1Hy.BMJ@watserv2.uwaterloo.ca>
  8. Organization: Oxford University VAX 6620
  9. Lines: 43
  10.  
  11. In article <C0K1Hy.BMJ@watserv2.uwaterloo.ca>, kvetzal@watarts.uwaterloo.ca (Ken Vetzal) writes:
  12. > Does anyone know if NAG has an e-mail address which accepts reports of 
  13. > suspected bugs?  
  14. Certainly:    infodesk@nag.co.uk
  15.               infodesk@nag.com   for North American customers
  16. > I find that calling one of their random number 
  17. > generator routines works fine if I request an even number of random
  18. > numbers but blows up (produces Infinity - NaN) if an odd number of
  19. > random numbers is requested.  A sample program which does this is
  20. > included below:
  21. >     implicit double precision(a-h,o-z) 
  22. >     parameter(maxobs=365)
  23. >     double precision e(maxobs)
  24. >     external g05cbf, g05fdf
  25. >     call g05cbf(170565)
  26. >     do 100 n=1,2
  27. >     call g05fdf(0.d0,1.d0,maxobs,e)
  28. >     do 101 i=1,maxobs
  29. >     write(8,*)i,e(i)
  30. > 101    continue
  31. > 100    continue
  32. >     stop
  33. >     end
  34. > This will blow up with maxobs set to 365 or 367 or any other odd
  35. > number I've tried > 100, but seems to work fine at 364 or 366 or
  36. > any other even number > 100.  Thanks in advance for any advice.
  37. > Ken Vetzal (kvetzal@watarts.uwaterloo.ca)
  38. This error in G05FDF is known to us. More precisely, the error only occurs
  39. if two or more calls are made to G05FDF without an intervening call of G05CBF
  40. or G05CCF, and if at least one of the values of N in those calls is odd.
  41. The corrected version of the routine will be in the next release of
  42. the NAG Fortran Library and in a future error bulletin.
  43.  
  44. Our apologies for the inconvenience that this has caused.
  45.  
  46. Richard Brankin
  47. -- 
  48. ** R.W. Brankin -- Numerical Algorithms Group Ltd. -- nagrwb@vax.ox.ac.uk **
  49. **   suggestions for sig. welcome   --   will need   include<std.discl>   **
  50.