McStas Single_Crystal Component
Kristian Nielsen
kristian.nielsen at risoe.dk
Tue Apr 11 18:03:14 CEST 2000
> Date: Tue, 11 Apr 2000 17:07:55 +0200
> From: Maurer Edith <maurer at embl-grenoble.fr>
> we are trying to use the single crystall component of McStas. Our
> problem is the following. We can compile the instrument but with the
> warning 1116
> non-void funktion "read_hkl_data" should return a value. And running the
This warning is harmless (it will be fixed in the next version). Thanks
for the report.
> simulation is endless.
Maybe you could send me the files you used, and I could try to reproduce
the problem and find the cause?
There is one problem I discovered recently. In the file
Single_crystal.comp there is a line that reads
for( i = 0; i < 6; i=i++ )
This should read
for( i = 0; i < 6; i=i+1 )
Depending on the compiler used, this could cause an infinite loop. You
could try changing it and see if it helps.
> Could you send us an example file which we can read in as
> reflectionsdata ?
There is a good example of the use of the Single_crystal component in
the McStas tutorial. It may be downloaded from the world-wide-web:
http://neutron.risoe.dk/mcstas/tutorial/
Hope this helps, if not please ask again and send the simulation files
you used.
- Kristian.
--
Kristian Nielsen kristian.nielsen at risoe.dk
Risø National Laboratory
Condensed Matter Physics and Chemistry Department
Tel. +45 4677 5515 Fax +45 4677 4790
Encryption PGP key http://neutron.risoe.dk/kn.txt
More information about the mcstas-users
mailing list