[mcstas-users] definition parameters - version 3.1

Santiago Gómez santiago.miguel.gomez at gmail.com
Tue May 3 19:30:05 CEST 2022


Dear Peter and Erik, thank your for the detailed answer!

I think I can modify my code in the way you explain, at least for the most
of the cases. For some other cases, I will have to modify other part of my
code becouse I use the definition parameter into senteces like
#if/#elif/#endif.

I see that i will have to modify the DECLARE section too, as is detailed in
the instructions.

The more complicated part will be changing the #if/#elif/#endif parts
(where I also do new #defines depending on the case).

I will let you know how I am going with that, or if I need more help :)


Regards

Santiago

On Tue, May 3, 2022 at 4:53 AM Erik Bergbäck Knudsen <
erik.knudsen at copenhagenatomics.com> wrote:

> Dear Santiago,
> No - DEFINITION parameters are no longer available in the 3.x-series, for
> various technical reasons.
> Please see
> https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-component-for-use-under-McStas-3
> and
>
> https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-instrument-for-use-under-McStas-3
> for instructions on how to modify your code such that it will work under
> 3.x
> Rest assured :-) - it is usually rather easy to convert , but should you
> run into problems the team is always happy to help.
>
> ... and on the bright side - definition parameters  tend to be difficult
> to debug, so removing them will likely help you in the long run.
> cheers
> Erik
> On Mon, May 2, 2022 at 11:25 PM Santiago Gómez <
> santiago.miguel.gomez at gmail.com> wrote:
>
>> Hello,
>>
>> I can not longer compile instruments with components that use definition
>> parameters as input variables for the new version 3.1 of mcstas.
>>
>> Are definition parameter still available for this new version?
>>
>>
>> With best regards
>> Santiago
>>
>> --
>> Santiago Miguel Gómez
>>
>> Si queremos un mundo de paz y de justicia hay que poner decididamente la inteligencia
>> al servicio del amor. Antoine de Saint-Exupery
>> _______________________________________________
>> mcstas-users mailing list
>> mcstas-users at mcstas.org
>> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
>>
>

-- 
Santiago Miguel Gómez

Si queremos un mundo de paz y de justicia hay que poner decididamente
la inteligencia
al servicio del amor. Antoine de Saint-Exupery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20220503/9101a25d/attachment.html>


More information about the mcstas-users mailing list