[mcstas-users] Compiling Components
Peter Willendrup
pkwi at risoe.dtu.dk
Wed Aug 26 15:45:20 CEST 2009
Hello Stephen,
On 26/08/2009, at 15.37, begley at ill.fr wrote:
> I had written a stub instrument which contained a single instance of
> my
> new component, and compiling this instrument initially allowed me to
> compile the component.
True - this is the way to work with components in McStas - to include
them in instrumentfiles. - As described in the documentation, McStas
includes code-generation and a big c-file is compiled from instrument
and component parts.
> However, when I make changes to the component file
> these seem to be ignored by the compiler if it is run again in this
> fashion. I have searched to see if the old version of the code has
> been
> copied somewhere, but this does not seem to be the case.
>
> What is the most straightforward way to compile a new component
> under McStas?
You _have_to_ recompile the instrumentfile including your (modified)
component:
If you are running McStas using mcrun on commandline, add the -c
parameter. From mcgui, choose File->Compile Instrument.
Best regards,
Peter
--
-------------------------------------------------------------------
Peter Willendrup - Development engineer
RISØ DTU
Materials Research Division
Frederiksborgvej 399
DK-4000 Roskilde
Tlf.: (+45) 4677 5862
Mobil.: (+45) 2125 4612
Fax.: (+45) 4766 5758
Email: pkwi at risoe.dtu.dk
-------------------------------------------------------------------
More information about the mcstas-users
mailing list