<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="">
Hi Erik & Peter,
<div class=""><br class="">
</div>
<div class="">it is working really well and I’d say it is pretty efficient :-)<br class="">
<div>The only other thing I had to do was to move two function definition from SANSCurve inot the</div>
<div>instrument to avoid ‘redefinition’ complaints from the compiler.</div>
<div>All I need to do now is to make sure the output is valid…</div>
<div><br class="">
</div>
<div>Thanks again for your help,</div>
<div><br class="">
</div>
<div>Uli</div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 11 Jul 2019, at 14:28, Wildgruber, Christoph U. <<a href="mailto:wildgrubercu@ornl.gov" class="">wildgrubercu@ornl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Erik,
<div class=""><br class="">
</div>
<div class="">thanks for the immediate response, I’ll give it a try right away…</div>
<div class="">The error message threw me off...<br class="">
<div class=""><br class="">
</div>
<div class="">Thanks, again</div>
<div class=""><br class="">
</div>
<div class="">Uli</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 11 Jul 2019, at 14:23, Erik B Knudsen <<a href="mailto:erkn@fysik.dtu.dk" class="">erkn@fysik.dtu.dk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Dear
Christoph,</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">In
your instrument file there are two missing ; (line 186 and 194), a</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">switched
%} line 187, and a double '==' where it should say '=' (line</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">187).
Some of these were due to me being a bit too fast of the mark this</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">morning,
so sorry for that. The attached version has these things fixed</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">-
I can't test it completely since I lack your SANS-component but it</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">should
get you a bit further. Good Luck!</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">cheers</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Erik</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On
11/07/2019 19:57, Wildgruber, Christoph U. wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<blockquote type="cite" style="font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
Hi again,<br class="">
<br class="">
so I did try the basic ‘SPLIT 2’ approach but I end up with an unexpected compile time error (RHEL 7, mcstas 2.5, mpi enabled)…<br class="">
I must be missing something really basic…<br class="">
<br class="">
Here is the result:<br class="">
==============<br class="">
<br class="">
Setting environment:<br class="">
MCSTAS_OVERRIDE=<br class="">
/usr/local/mcstas/2.5/tools/Python/mcgui/../mccodelib/../../..<br class="">
<br class="">
MCSTAS_CFLAGS_OVERRIDE=<br class="">
-g -O2 -lm<span class="Apple-converted-space"> </span><br class="">
<br class="">
MCSTAS_CC_OVERRIDE=<br class="">
gcc<br class="">
<br class="">
MCSTAS_MPICC_OVERRIDE=<br class="">
mpicc<br class="">
<br class="">
mcrun -c BER_SANS_guide_elliptical_optimize_2.1.instr -n0<span class="Apple-converted-space"> </span><br class="">
<br class="">
INFO: No output directory specified (--dir)<br class="">
INFO: Using directory: "BER_SANS_guide_elliptical_optimize_2.1_20190711_134948"<br class="">
INFO: Regenerating c-file: BER_SANS_guide_elliptical_optimize_2.1.c<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:246.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:258.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:266.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:274.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:284.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:294.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:304.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:314.<br class="">
Info: 'PSD_monitor_rad' is a contributed component.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:321.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:328.<br class="">
Info: 'SANSQMonitor' is a contributed component.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:338.<br class="">
Reference to undefined component instance a1 at line BER_SANS_guide_elliptical_optimize_2.1.instr:347.<br class="">
McStas: 12 Errors encountered during parse of BER_SANS_guide_elliptical_optimize_2.1.instr.<br class="">
compile thread done<br class="">
<br class="">
<br class="">
I attach the instr file in case you get a chance to try to compile it…<br class="">
<br class="">
So what is going on?<br class="">
<br class="">
<br class="">
Thanks so much,<br class="">
<br class="">
<br class="">
Uli<br class="">
<br class="">
</blockquote>
<br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Erik
Bergbäck Knudsen, Research Engineer | DTU | morituri</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">NEXMAP,
DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">phone:
(+45) 2132 6655 |<>-<>| salutant</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span id="cid:A5E0E32A-6C82-4CE5-AF67-65818C3E4B1C@ornl.gov" class=""><SANS_test.instr></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>