Mcstas example programs

Kristian Nielsen kristian.nielsen at risoe.dk
Thu Feb 18 10:52:54 CET 1999


> I used the extra option in the compilation and now get counts in the
> detector file.  However I'm still uncertain that I get the correct result.
> I've attached the resulting detector file when the simulation was executed
> using the command
> 
> ./prisma2.out --ncount=2e6 TT=-30 PHA=22 PHA1=-3 PHA2=-2 PHA3=-1 PHA4=0
> PHA5=1 PHA6=2 PHA7=3 TTA=44
> 
> I wondered if you let me know if it is working OK now.

I compared the file you sent me with my own results, and they
matched. So it would appear that things are working ok.

Btw, I fully understand your concern about the correctness of the
compiler. I had a nasty experience with compiler bugs early in the
McStas project. Two different compilers produced wrong code for McStas
simulations when optimization was enabled (HPUX ANSI-C compiler and
pentium-optimized GCC).

 - Kristian.






More information about the mcstas-users mailing list