<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Santiago,
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Your observation is correct, definition parameters are no longer supported by McStas 3.x components.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Most functionality that used definition parameters in the past can however be implemented using other functionality, for instance</div>
<div class=""><br class="">
</div>
<div class="">* string parm=“some_filename” (or initialise by a char[n] variable from your instrument)</div>
<div class=""><br class="">
</div>
<div class="">* vector parm={a,b,c,d} (or initialise by a pointer from your instrument)</div>
<div class=""><br class="">
</div>
<div class="">* Or in the case where you need a “symbol”, e.g. for measuring a “flag” in the instrument, use the new USERVAR feature of the instrument and use a component string variable to probe the user variable via particle_getvar()</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">For details in the direction of porting instruments and components from McStas 2.x to 3.x please consult one of </div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-instrument-for-use-under-McStas-3" class="">HOWTO: Modifying a McStas 2 instrument for use under McStas 3</a></div>
<div class=""><a href="https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-component-for-use-under-McStas-3" class="">HOWTO: Modifying a McStas 2 component for use under McStas 3</a></div>
<div class=""><br class="">
</div>
<div class="">If you still fail to port your component(s), please send an example instrument + the relevant component and we will find a way together.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Peter</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 2 May 2022, at 23.24, Santiago Gómez <<a href="mailto:santiago.miguel.gomez@gmail.com" class="">santiago.miguel.gomez@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hello,<br class="">
<br class="">
I can not longer compile instruments with components that use definition parameters as input variables for the new version 3.1 of mcstas.<br class="">
<br class="">
Are definition parameter still available for this new version?<br class="">
<br class="">
<br class="">
<div class="">
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">
With best regards</div>
<div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">
Santiago</div>
<br class="">
</div>
<div class="">-- </div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><font size="2" class=""><font face="arial,helvetica,sans-serif" class="">Santiago Miguel Gómez</font></font><font size="2" class=""><font face="arial,helvetica,sans-serif" class=""><br class="">
</font></font>
<div class=""><font size="2" class=""><font face="arial,helvetica,sans-serif" class=""><br class="">
</font></font></div>
<div class=""><font size="2" class=""><font face="arial,helvetica,sans-serif" class="">Si queremos un mundo de paz y de justicia hay que poner decididamente la
</font></font><font size="2" class=""><font face="arial,helvetica,sans-serif" class="">inteligencia al servicio del amor. Antoine de Saint-Exupery</font></font></div>
</div>
</div>
_______________________________________________<br class="">
mcstas-users mailing list<br class="">
<a href="mailto:mcstas-users@mcstas.org" class="">mcstas-users@mcstas.org</a><br class="">
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>