<div dir="ltr">Dear Peter and Erik, thank your for the detailed answer!<br><br>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.<br><br>I see that i will have to modify the DECLARE section too, as is detailed in the instructions.<br><br>The more complicated part will be changing the #if/#elif/#endif parts (where I also do new #defines depending on the case). <br><br>I will let you know how I am going with that, or if I need more help :)<br><br><br>Regards<br><br>Santiago</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 3, 2022 at 4:53 AM Erik Bergbäck Knudsen <<a href="mailto:erik.knudsen@copenhagenatomics.com">erik.knudsen@copenhagenatomics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Dear Santiago,</div><div>No - DEFINITION parameters are no longer available in the 3.x-series, for various technical reasons.</div><div>Please see <a href="https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-component-for-use-under-McStas-3" target="_blank">https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-component-for-use-under-McStas-3</a> and</div><div><a href="https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-instrument-for-use-under-McStas-3" target="_blank">https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-instrument-for-use-under-McStas-3</a></div><div>for instructions on how to modify your code such that it will work under 3.x<br></div></div><div><div>Rest assured :-) - it is usually rather easy to convert , but should you run into problems the team is always happy to help.<br></div><div><br></div>... and on the bright side - definition parameters tend to be difficult to debug, so removing them will likely help you in the long run.<br></div><div>cheers</div><div>Erik<br></div><div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 2, 2022 at 11:25 PM Santiago Gómez <<a href="mailto:santiago.miguel.gomez@gmail.com" target="_blank">santiago.miguel.gomez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>I can not longer compile instruments with components that use definition parameters as input variables for the new version 3.1 of mcstas.<br><br>Are definition parameter still available for this new version?<br><br><br><div><div style="font-family:arial,helvetica,sans-serif;font-size:small">With best regards</div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Santiago</div><br></div><div>-- </div><div dir="ltr"><font size="2"><font face="arial,helvetica,sans-serif">Santiago Miguel Gómez</font></font><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font><div><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">Si queremos un mundo de paz y de justicia hay que poner decididamente la </font></font><font size="2"><font face="arial,helvetica,sans-serif">inteligencia al servicio del amor. Antoine de Saint-Exupery</font></font></div></div></div>
_______________________________________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
<a href="https://mailman2.mcstas.org/mailman/listinfo/mcstas-users" rel="noreferrer" target="_blank">https://mailman2.mcstas.org/mailman/listinfo/mcstas-users</a><br>
</blockquote></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><font size="2"><font face="arial,helvetica,sans-serif">Santiago Miguel Gómez</font></font><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font><div><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">Si queremos un mundo de paz y de justicia hay que poner decididamente la </font></font><font size="2"><font face="arial,helvetica,sans-serif">inteligencia al servicio del amor. Antoine de Saint-Exupery</font></font></div></div>