new modules

Kristian Nielsen kristian.nielsen at risoe.dk
Tue Oct 12 14:49:04 CEST 1999


> Date: Tue, 12 Oct 1999 14:01:26 +0100
> From: martin rotter <rotter at physik.tu-dresden.de>

> thank you very much for this new version of mcstas: I installed it on my computer and
> tried to simulate my old program, it worked well. Using the adaptive source, however

> /root/mcstas.a/lib/Source_adapt.comp:100: warning: assignment makes pointer
> from integer without a cast

> /root/mcstas.a/lib/Source_adapt.comp:127: dereferencing pointer to
> incomplete type

These strongly suggest that McStas is picking up the wrong version of
the file "mcstas-r.h". In fact, the whole reason for needing the new
version of McStas is that this file has been updated for the adaptive
source.

I can see two possibilities:

1. You tried using the new Source_adapt component with an old version of
   McStas (try "mcstas --version", it should say 1.15A).

2. You accidentally left an old mcstas-r.h file somewhere where the new
   McStas picks it up (perhaps the environment variable "MCSTAS" is set
   to point in the wrong place?).

Hope this helps,

 -  Kristian.






More information about the mcstas-users mailing list