<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear Ulrich (and McStas users)
<p>There seems to have a few bugs in the new version 1.5, but I think they
are now corrected (or on the way).
<br>Per-Olof is probably working on it. You may get the version 1.5 again,
in case there would have been an update (compare the archive sizes).
<p>What I can tell is that with the future vesion 1.6 (available at ILL
<<A HREF="http://www.ill.fr/tas/mcstas/">http://www.ill.fr/tas/mcstas/</A>>, I working with it all day, for tests)
your test instrument compiles well. In case you want to try it, I invite
you to get the version 1.6-ill and read carefully the CHANGES from the
ILL McStas page.
<p>Of course in case there would be any problem or suggestion about this
future (but already working) version, do not hesitate to tell me.
<p>Cheers. Emmanuel.
<p>"Ulrich C. Wildgruber MPI fuer Metallforschung Stuttgart" wrote:
<blockquote TYPE=CITE>Dear fellow McStas user,
<p>just recently I switched to McStas 1.5 and everything went smooth
<br>until I tried to compile the McStas generated C-code for an .inst
<br>I used before.
<p> I am getting the following error messages:
<p>wildgrub@pc-e21-18:/mc > cc -o t t.c -lm
<br>/home/wildgrub/lib/mcstas/Flux_adapter.comp: In function `mcinit':
<br>/home/wildgrub/lib/mcstas/Flux_adapter.comp:92: `flad' undeclared (first
use in
<br>this function)
<br>/home/wildgrub/lib/mcstas/Flux_adapter.comp:92: (Each undeclared identifier
is
<br>reported only once
<br>/home/wildgrub/lib/mcstas/Flux_adapter.comp:92: for each function it
appears
<br>in.)
<p>I'll attach t.instr for anybody interested in trying out!
<p>Is this a known problem ?
<br>What am I doing wrong ?
<p>Any comments are greatly appreciated!!!
<p>Regards
<p>Uli
<p>P.S. 't.instr' is only the beginning of a longer file, the result during
<br>compile time however is identical...
<p>--
<br>Ulrich WILDGRUBER
<br>wildgrub@dxray.mpi-stuttgart.mpg.de
<br>wwwmf.mpi-stuttgart.mpg.de/abteilungen/dosch/dosch.html
<br>-----------------------------------------------------------------------------
<br>Max-Planck-Institut für Metallforschung | Technische Universität
München
<br>Heisenbergstr. 1
| ZBE Neue Forschungs-Neutronenquelle
<br>
| Instrumentierung
<br>D-70569 Stuttgart
| D-85747 Garching/München
<br>Tel.: (+49)-711-689-1900
| Tel.: (+49)-89-289-14681
<br>Fax.: (+49)-711-689-1902
| Fax.: (+49)-89-289-14666
<p> ------------------------------------------------------------------------
<br>DEFINE INSTRUMENT MatSciR(PHM, TTM, PHD)
<p>/*
improved version 01/2001 */
<br>/* NL-1: Alle (!) Segmente beruecksichtigt ...
*/
<br>/* work in progress...
*/
<br>/*
*/
<br>/* Basic configuration of the monochromator with downstream apertures
*/
<br>/* n-Quelle:
Leiterende NL-1; m = 2, 2.5; 60mm wide, 120mm high
*/
<br>/* Monochromator: Mica d(002) = 9.95
A; Q = 2pi/d = 0.6315 rez.A
*/
<br>/*
(a small vertical mosaic spread is more realistic
*/
<br>/*
or: HOPG d(002) = 3.355A; Q = 2pi/d = 1.8728 rez.A
*/
<br>/*
220mm wide (long), 120mm high - hypothetical
*/
<br>/* Aperture 1: 25mm
x 5mm
*/
<br>/*
2: not yet introduced again
*/
<br>/*
*/
<br>/* Guide:
2m, sides only between apertures, m = 1, 2, 3 (later)
*/
<br>/* Detector:
after last device
*/
<p>DECLARE
<br>%{
<br>double mono_mosaic = 60;
/* Is less more ? ...probably not */
<br>double mono_vmos = 60;
<br>/* double mono_q = 0.6315; */
<br>double mono_q = 1.8728;
<br>double mono_r0 = 1.0;
<br>double m1 = 2.0;
<br>double m2 = 2.5;
<br>double alp = 6.49;
<br>double CW = 0.003333;
<br>%}
<p>INITIALIZE
<br>%{
<br>%}
<p>TRACE
<p>COMPONENT a1 = Arm()
<br> AT (0,0,0) ABSOLUTE
<p>COMPONENT source = Source_flat_lambda(
<br> radius = 0.15,
<br> dist = 2.595,
<br> xw = 0.11, yh = 0.17,
<br> lambda_0 = 2.0,
<br> d_lambda = 0.20)
<br> AT (0,0,0) RELATIVE a1
<p>COMPONENT flad = Flux_adapter(
<br> xmin = -0.055,
<br> xmax = 0.055,
<br> ymin = -0.085,
<br> ymax = 0.085,
<br> file = "./source.flux",
<br> options = " [ lambda p ]")
<br> AT (0,0,0.001) RELATIVE a1
<p>end</blockquote>
<pre>--
What's up Doc ?
--------------------------------------------
Emmanuel FARHI, <A HREF="http://www.ill.fr/tas/people/Farhi.html">http://www.ill.fr/tas/people/Farhi.html</A> \|/ ____ \|/
CS-Group ILL4/156, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~
6 rue J. Horowitz, BP 156, 38042 Grenoble Cedex 9,France /_( \__/ )_\
Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/</pre>
</html>