Guide components

Emmanuel Farhi farhi at ill.fr
Mon Apr 2 10:58:45 CEST 2001


Hy Brett,

this error occurs because the C compiler uses integers for 1 and 300 in
'1/300'.
To remove the error, use '1.0/300' or '(float)(1/300)'.

Cheers. EF.

"HUNTER, Brett" wrote:

>
>
> Hi All,
>    Has anyone had problems with the Guide.comp, when W=1/300, as per
> the manual?  I found I had to set it to the real number 0.0033 to stop
> an error from occuring.  I am using the Borland Compiler on a PC, so
> maybe the Unix compilers handle this correctly.
>
> Ciao
> Brett
>
>
> ----------------------------------------------------------------------------------+
>
> Dr Brett Hunter
> Building 58, ANSTO,PMB 1, Menai,
> NSW  2234, Australia
> Work:      -61-2-9717-3338
> Fax:       -61-2-9717-3606
> email      bah at ansto.gov.au
> Web sites: http://www.ansto.gov.au/ansto/neut/s_hun.html
>           http://www.ansto.gov.au/ansto/neut/index.html
>           http://www.rietica.org
> PGP Public key available.
>
> -----------------------------------------------------------------------------------+
>
> >-----Original Message-----
> >From: Ulrich C. Wildgruber MPI fuer Metallforschung Stuttgart
> >[mailto:wildgrub at dxray.mpi-stuttgart.mpg.de]
> >Sent: Wednesday, 21 March 2001 20:14
> >To: neutron-mc at risoe.dk
> >Subject: Bender.comp ...
> >
> >
> >Hi everybody,
> >
> >a couple of days ago the word was sent out that an older version of
> the
> >Bender component produces wrong angular distributions.
> >I ran the older and newer version of Bender.comp in the same
> instrument
> >file under identical conditions (yes - I used the same seed! :-)
> >and got identical output from a divergence monitor located
> >downstream the
> >Bender component. The executable had a different size and I am
> >wondering
> >if certain parameters for the Bender have to be specified to
> >see a difference.
> >Could anybody shed more light on this issue...
> >I would also appreciate to receive example instrument files which I
> can
> >run to see the difference.
> >
> >Thanks a lot!
> >
> >Uli
> >
> >--
> >Ulrich WILDGRUBER
> >wildgrub at dxray.mpi-stuttgart.mpg.de
> >wwwmf.mpi-stuttgart.mpg.de/abteilungen/dosch/dosch.html
> >---------------------------------------------------------------
> >--------------
> >Max-Planck-Institut für Metallforschung        | Technische
> >Universität München
> >Heisenbergstr. 1                       | ZBE Neue
> >Forschungs-Neutronenquelle
> >                                       | Instrumentierung
> >D-70569 Stuttgart                      | D-85747 Garching/München
> >Tel.: (+49)-711-689-1900               | Tel.: (+49)-89-289-14681
> >Fax.: (+49)-711-689-1902               | Fax.: (+49)-89-289-14666
> >

--
What's up Doc ?
--------------------------------------------
Emmanuel FARHI, http://www.ill.fr/tas/people/Farhi.html   \|/ ____ \|/
CS-Group ILL4/156, Institut Laue-Langevin (ILL) Grenoble  ~@-/ oO \-@~
6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France  /_( \__/ )_\
Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06     \__U_/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20010402/b6aa94ae/attachment.html>


More information about the mcstas-users mailing list