mcgui on non linux machines
Kristian Nielsen
kristian.nielsen at risoe.dk
Thu Feb 3 11:40:08 CET 2000
> Date: Thu, 03 Feb 2000 10:56:33 +0100
> From: Farhi <farhi at ill.fr>
> No problems to get back ? Perhaps could you see the top of the
> Mont-Blanc flying over the clouds ?
No problems, but there were too many clouds to see anything (or maybe I
was in the wrong side of the plane).
> I've improved my Flux_adapter and Optimizer. I think it is possible to
> use more that one Monitor Optimizer, in order to optimize simulation
> according to various criteria. Each neutron that reach a
> Monitor_Optimizer increases the Source efficiency, even if it is counted
> more that once during tracing. If the neutron reaches two
> Monitor_Optimizer, it will count twice in the optimization, and this is
> fair.
Sounds good!
> I've experimented a major pb for mcgui. When on a Linux machine, no pbs
> because these machines use the same compilers and options for linker...
> But when running for instance on SGI/IRIX, it leads to a core because
> one has to use the IRIX cc compiler, with specific options. gcc crashes.
> And for HP or DEC machines, htere are even more restricted options (to
> force ANSI code for instance).
Ok, there is (or should be) a way to handle this. The command used by
mcgui to compile is the same command used to compile mcstas during
installation. If this is wrong, McStas must be re-installed with the
proper compile commands.
The way to do this is
rm config.cache # To remove any old, wrong settings
setenv CC cc # Name of compiler to use
setenv CFLAGS "-O -g" # Necessary compiler options
./configure
make install
By setting CC and CFLAGS before configure, mcgui should pick up the
right commands. Of course, there should be a way to override this after
installation, I will work on that.
By the way, I thought I had fixed the problem on the DEC machines, if
not please send details.
> I've copied the latest versions of mcstas package on the Web page, as
> well as the new components definitions. It seems however that not all
> components have a valid header yet. The components that I had installed
> before did ! I think I get them back on the web now, so that you can get
> them, and compare/add headers and MCDISPLAY sections. If you do not have
> time for that, I think I can do the 'homogeneisation' today or tomorrow.
> Then I'll send you the new clean components.
Indeed, I seem to have forgotten MCDISPLAY in five components: Chopper,
First_Chopper, Monitor_4PI, Source_div, and V_selector.comp. Thanks for
the notice.
However, I could not find any official components without headers (only
did a quick check). I think perhaps you are thinking of some of the
components that were in the BETA releases I send you, but that were
removed from the final release. Perhaps they just got left in your
/usr/local/lib/mcstas directory? Otherwise let me know the names, and I
will fix it.
Anyway, thanks for the comments. It was good to see you at the ILL!
- Kristian.
More information about the mcstas-users
mailing list