From 104pet104 at gmail.com Mon Jan 29 11:52:21 2018 From: 104pet104 at gmail.com (=?UTF-8?B?0J/QtdGC0YAg0JrQvtC90LjQug==?=) Date: Mon, 29 Jan 2018 13:52:21 +0300 Subject: [mcstas-users] Off-specular reflectometry Message-ID: Dear mcstas users! Is there any way to simulate off-specular reflectivity? We need it to provide virtual experiment results for publication. Thank you, Peter Konik From robert.dalgliesh at stfc.ac.uk Mon Jan 29 15:31:59 2018 From: robert.dalgliesh at stfc.ac.uk (robert.dalgliesh at stfc.ac.uk) Date: Mon, 29 Jan 2018 14:31:59 +0000 Subject: [mcstas-users] Off-specular reflectometry In-Reply-To: References: Message-ID: <9FD256ED3764AA40BD335311A4123FA0010EAD79B8@exchmbx03> Something like 10 years ago I ended up writing a simple multilayer component for specular reflectivity and as far as I am aware none has written anything that has been incorporated into the build since. Someone may have something they have written themselves but otherwise I am afraid you may have to write something yourself. I imagine that a collaborative effort would certainly be of interest to a number of those in the community. Perhaps you should contact the Bornagain team as an example. http://bornagainproject.org/ Robert -----Original Message----- From: mcstas-users [mailto:mcstas-users-bounces at mcstas.org] On Behalf Of ???? ????? Sent: 29 January 2018 10:52 To: mcstas-users at mcstas.org Subject: [mcstas-users] Off-specular reflectometry Dear mcstas users! Is there any way to simulate off-specular reflectivity? We need it to provide virtual experiment results for publication. Thank you, Peter Konik _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users From wildgrubercu at ornl.gov Tue Feb 20 13:59:30 2018 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Tue, 20 Feb 2018 12:59:30 +0000 Subject: [mcstas-users] Guide_anyshape Message-ID: <7905CF9F-199F-42BB-9288-FC77370290ED@ornl.gov> Hi all, I just started looking into a little McStas project which could possible benefit if we could come up with a way to combine the elegance of Guide_anyshape variable m-values. Any thoughts, suggestions or code :-) Thanks, Uli From pkwi at fysik.dtu.dk Tue Feb 20 14:47:51 2018 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 20 Feb 2018 13:47:51 +0000 Subject: [mcstas-users] Guide_anyshape In-Reply-To: <7905CF9F-199F-42BB-9288-FC77370290ED@ornl.gov> References: <7905CF9F-199F-42BB-9288-FC77370290ED@ornl.gov> Message-ID: <1797F551-6735-455F-AEEB-003267A52601@fysik.dtu.dk> Dear Ulrich, There is something like that around already, more or less? :-) Peter Link (cc:) made a prototype Guide_anyshape that works like that - and I have progressed a little further on it together with Mikhail Feygenson (cc:) for the ESS DREAM project. (And it is on my list for McStas 2.5 to polish and make this globally available?) If you are interested I can send you a copy - warning: ?beta quality? stuff? Best, Peter > On 20 Feb 2018, at 13:59 , Wildgruber, Christoph U. wrote: > > Hi all, > > I just started looking into a little McStas project which could possible benefit > if we could come up with a way to combine the elegance of Guide_anyshape > variable m-values. Any thoughts, suggestions or code :-) > > Thanks, > > Uli > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users From andrew.jackson at esss.se Tue Feb 27 18:28:45 2018 From: andrew.jackson at esss.se (Andrew Jackson) Date: Tue, 27 Feb 2018 17:28:45 +0000 Subject: [mcstas-users] Guide_anyshape In-Reply-To: <1797F551-6735-455F-AEEB-003267A52601@fysik.dtu.dk> References: <7905CF9F-199F-42BB-9288-FC77370290ED@ornl.gov> <1797F551-6735-455F-AEEB-003267A52601@fysik.dtu.dk> Message-ID: <1547E108-F7C3-4BF3-851C-57DBBB7DCCA0@esss.se> Hi Peter I?d be interested in how you?ve done it. I had considered making use of the ?color? in the OFF format to specify m values. (I guess I can go digging in the repo ?) Andrew ______________________________________ Andrew Jackson Instrument Scientist - Small Angle Scattering Deputy Head of Neutron Instruments Division European Spallation Source, P.O Box 176, SE-221 00 Lund, Sweden Adjunct Associate Professor (Adjungerad Lektor) Physical Chemistry, Lund University, P.O. Box 124, SE-221 00, Lund, Sweden Phone: +46 46 888 3015 Mobile: +46 72 179 2015 E-mail: andrew.jackson at esss.se www.esss.se On 2018-02-20, 14:50, "mcstas-users on behalf of Peter Kj?r Willendrup" wrote: Dear Ulrich, There is something like that around already, more or less? :-) Peter Link (cc:) made a prototype Guide_anyshape that works like that - and I have progressed a little further on it together with Mikhail Feygenson (cc:) for the ESS DREAM project. (And it is on my list for McStas 2.5 to polish and make this globally available?) If you are interested I can send you a copy - warning: ?beta quality? stuff? Best, Peter > On 20 Feb 2018, at 13:59 , Wildgruber, Christoph U. wrote: > > Hi all, > > I just started looking into a little McStas project which could possible benefit > if we could come up with a way to combine the elegance of Guide_anyshape > variable m-values. Any thoughts, suggestions or code :-) > > Thanks, > > Uli > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users From pkwi at fysik.dtu.dk Tue Feb 27 22:10:44 2018 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 27 Feb 2018 21:10:44 +0000 Subject: [mcstas-users] Guide_anyshape In-Reply-To: <1547E108-F7C3-4BF3-851C-57DBBB7DCCA0@esss.se> References: <7905CF9F-199F-42BB-9288-FC77370290ED@ornl.gov> <1797F551-6735-455F-AEEB-003267A52601@fysik.dtu.dk> <1547E108-F7C3-4BF3-851C-57DBBB7DCCA0@esss.se> Message-ID: <3DA15B97-B842-4F1B-BBC1-D88E00C6A5B4@fysik.dtu.dk> Hi Andrew, The prototype is indeed using ?color? in the OFF format, but put as a single scalar number after the face data. As the interoff-lib implementation is a little fragile, the code is not yet in the repo. :-) (- But we are planning to have this in 2.5, see https://github.com/McStasMcXtrace/McCode/issues/565) Best, Peter Peter Kj?r Willendrup Forskningsingeni?r, Speciakonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:image001.gif at 01CCCAF1.5E6331F0] Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk On 27 Feb 2018, at 18:28 , Andrew Jackson > wrote: Hi Peter I?d be interested in how you?ve done it. I had considered making use of the ?color? in the OFF format to specify m values. (I guess I can go digging in the repo ?) Andrew ______________________________________ Andrew Jackson Instrument Scientist - Small Angle Scattering Deputy Head of Neutron Instruments Division European Spallation Source, P.O Box 176, SE-221 00 Lund, Sweden Adjunct Associate Professor (Adjungerad Lektor) Physical Chemistry, Lund University, P.O. Box 124, SE-221 00, Lund, Sweden Phone: +46 46 888 3015 Mobile: +46 72 179 2015 E-mail: andrew.jackson at esss.se www.esss.se On 2018-02-20, 14:50, "mcstas-users on behalf of Peter Kj?r Willendrup" wrote: Dear Ulrich, There is something like that around already, more or less? :-) Peter Link (cc:) made a prototype Guide_anyshape that works like that - and I have progressed a little further on it together with Mikhail Feygenson (cc:) for the ESS DREAM project. (And it is on my list for McStas 2.5 to polish and make this globally available?) If you are interested I can send you a copy - warning: ?beta quality? stuff? Best, Peter On 20 Feb 2018, at 13:59 , Wildgruber, Christoph U. wrote: Hi all, I just started looking into a little McStas project which could possible benefit if we could come up with a way to combine the elegance of Guide_anyshape variable m-values. Any thoughts, suggestions or code :-) Thanks, Uli _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From pkwi at fysik.dtu.dk Wed Mar 7 19:18:47 2018 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 7 Mar 2018 18:18:47 +0000 Subject: [mcstas-users] McStas workshop at ORNL References: Message-ID: Dear all, Please find below a mail from Georg Ehlers (ORNL) suggesting a McStas workshop at ORNL in the 2nd half of this year. (For some reason didn?t make it through to the list directly...) Let me also indicate that I am for one certainly interested in such an event. :-) All the best, Peter Willendrup From: "Ehlers, Georg" > Subject: McStas workshop at ORNL Date: 7 March 2018 at 17:35:41 CET To: mcstas-users > We are considering the idea to organize a 2-day McStas workshop at Oak Ridge National Laboratory. This meeting would bring together experts and novice users of this computational tool. I am sending this notice to probe how much interest there is in the community to hold such a workshop. We are targeting the second half of the 2018 calendar year. Please respond to me if you are potentially interested in coming to Oak Ridge for this meeting. Thank you Georg Ehlers -------------------------------------- Georg Ehlers Instrument Development Scientist Neutron Technologies Division Bldg. 8600 Oak Ridge National Laboratory Oak Ridge, TN 37831-6475 USA phone: (865) 206-0824 FAX: (865) 574-6080 E-mail: ehlersg at ornl.gov Internet: https://neutrons.ornl.gov/instruments -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahma7 at gmail.com Wed Mar 14 06:16:03 2018 From: mahma7 at gmail.com (Mahmoud Yaseen Suaifan) Date: Wed, 14 Mar 2018 05:16:03 +0000 Subject: [mcstas-users] Fwd: Question please In-Reply-To: References: Message-ID: Hello Sorry i'm just forwarding the below email as a gentle reminder and since my first email (to mcstas-support) was not sent due to (delivery failure issues). Please, i'm in highly need for answers and assistance. Thanks in advance Best regards, Mahmoud 14/3/2018 ---------- Forwarded message --------- From: Mahmoud Yaseen Suaifan Date: Thu, Mar 8, 2018, 13:53 Subject: Question please To: , Hello Madam/Sir, Hope this email finds you well. Actually, i'm a Jordanian graduate student in South Korea trying to make a conceptual design for a neutron imaging facility using McStas simulations. So i got some questions please like the one attached in the photo regarding the source component. Please your help & explanations are highly appreciated. The numbers in the photo are exact. Neck dimensions ( assume 10 cm ? 10 cm). How can i decide where is target & focus & dist. I understand ray trace. I understand solid angle & divergance. I understand Flux, intensities units. I got lost because i couldn't find explanation for results. ( Attached also part of simple McStas script (source & detector only) please check it. Best regards, Mahmoud Suaifan March 8, 2018 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 20180308_133116.jpg Type: image/jpeg Size: 2761208 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: souce_gen.JPG Type: image/jpeg Size: 331382 bytes Desc: not available URL: From pkwi at fysik.dtu.dk Wed Mar 14 10:18:17 2018 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 14 Mar 2018 09:18:17 +0000 Subject: [mcstas-users] Question please In-Reply-To: References: Message-ID: Hello Mahmoud, Find my comments and answers below. On 14 Mar 2018, at 06:16 , Mahmoud Yaseen Suaifan > wrote: Sorry i'm just forwarding the below email as a gentle reminder and since my first email (to mcstas-support) was not sent due to (delivery failure issues). Thanks for reminding me, I have silently removed the mcstas-support at mcstas.org address, I much prefer to have users ask their questions here in the open forum. :-) Actually, i'm a Jordanian graduate student in South Korea trying to make a conceptual design for a neutron imaging facility using McStas simulations. So i got some questions please like the one attached in the photo regarding the source component. Please your help & explanations are highly appreciated. The numbers in the photo are exact. Neck dimensions ( assume 10 cm ? 10 cm). How can i decide where is target & focus & dist. I understand ray trace. I understand solid angle & divergance. I understand Flux, intensities units. I got lost because i couldn't find explanation for results. The logic is that you specify the illuminated solid angle (~divergence out of the source) either by 1) dist in combination with focus_xw, focus_yh (A small rectangle of size focus_xw x focus_yh will be placed at (0, 0, dist) wrt the source) 2) target_index=N in combination with focus_xw, focus_yh (A small rectangle of size focus_xw x focus_yh will be placed at (tx, ty, tz) wrt the source, where tx,ty,tz is coordinates of a component N positions "further down the instrument" ( Attached also part of simple McStas script (source & detector only) please check it. I found no .instr example attached to your email, but there are many too look at within the examples/ folder of your McStas installation. Now, to get properly started on McStas, I propose you to e.g. 0) Try the simple SANS oriented tutorial available here: https://github.com/McStasMcXtrace/McCode/wiki/McStas-tutorial%3A-simplified-SANS-instrument 1) Read chapter 3 of the McStas user manual, available here: http://mcstas.org/documentation/manual/mcstas-2.4.1-manual.pdf and by running mcdoc.pl -m on your own system 2) There are a couple of older sets of ?school? material available on the web, e.g. http://nobugs2016.mcstas.org and http://april2017.mcstas.org that you can try following Also, there was an email from Georg Ehlers (SNS) > requesting people to indicate if they would be interested in a McStas school later this year in Oak Ridge - see https://mailman2.mcstas.org//pipermail/mcstas-users/2018q1/001234.html Best regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From mahma7 at gmail.com Fri Mar 16 07:41:40 2018 From: mahma7 at gmail.com (Mahmoud Yaseen Suaifan) Date: Fri, 16 Mar 2018 06:41:40 +0000 Subject: [mcstas-users] Question please In-Reply-To: References: Message-ID: Dear Dr. peter, Thank you so much for the nice detailed reply. Kindly find my corresponding Q's & comments: 1) Here i'm following the preference of sharing questions on this open forum for the sake of benefit for all. I'm still newcomer. Thanks for telling me this new info. 2) Regarding source defining: Please allow me to elaborate a little: Assume i choose combination 1 ( dist & rectangle focus) : If tube nose (immersed in pool reflector tank) has: Area of A1 and thermal calc. flux at nose (by MCNP) = X in units of [ n/cm^2.sec]. Let's pay attention to units please. Focused to some neck @ dist=R and area A2. So i enter in McStas value of I1= X as it is? Since i'm defining also source radius (A1) & dist & A2 ( internally by default McSras controls solid angle)??!!. Or shall i do some pre-calculations? Like divide by some solid angle (omega subtended by focus rect.) or 2pi. (One side of emiting disk source ) Or 4pi or so? Back to units: McStas output by monitor or detector (counts/sec) am i right? So if i want to check my source functionality putting a monitor exactly at z=0 (0.0001 more realstic). What will be the expected result keeping in mind value of X & its units? How to compare initial & losses ( I understand these are statistics) & ( i understand that for comparison research purposes, the initial input is not important that much) but i'm looking for some logical explanations for values to feel satisfied more & have a close view on the mechanism it works. 3) Sorry i didn't attached any (file.instr) since it is still scratches. But thank you for the examples ( honestly, still haven't got the chance to check them, but i'll do ASAP). Appreciated. 4) Regarding the suggested workshop: It's a great idea and i'm really interested but i'm thinking how can i afford the costs ( flight, accomodation, ..etc). To me, I guess it's difficult to find financial support at least at this stage. Hope the best for all. Sorry for the lengthy email. Thanks in advance for any body for any helpful efforts to reply. Best regards for all. Mahmoud March 16th, 2018 On Wed, Mar 14, 2018, 18:23 Peter Kj?r Willendrup wrote: > Hello Mahmoud, > > > Find my comments and answers below. > > On 14 Mar 2018, at 06:16 , Mahmoud Yaseen Suaifan > wrote: > > Sorry i'm just forwarding the below email as a gentle reminder and since > my first email (to mcstas-support) was not sent due to (delivery failure > issues). > > > Thanks for reminding me, I have silently removed the > mcstas-support at mcstas.org address, I much prefer to have users ask their > questions here in the open forum. :-) > > Actually, i'm a Jordanian graduate student in South Korea trying to make a > conceptual design for a neutron imaging facility using McStas simulations. > So i got some questions please like the one attached in the photo regarding > the source component. Please your help & explanations are highly > appreciated. > The numbers in the photo are exact. Neck dimensions ( assume 10 cm ? 10 > cm). How can i decide where is target & focus & dist. I understand ray > trace. I understand solid angle & divergance. I understand Flux, > intensities units. I got lost because i couldn't find explanation for > results. > > > The logic is that you specify the illuminated solid angle (~divergence out > of the source) *either* by > > 1) dist in combination with focus_xw, focus_yh (A small rectangle of size > focus_xw x focus_yh will be placed at (0, 0, dist) wrt the source) > > 2) target_index=N in combination with focus_xw, focus_yh (A small > rectangle of size focus_xw x focus_yh will be placed at (tx, ty, tz) wrt > the source, where tx,ty,tz is coordinates of a component N positions > "further down the instrument" > > ( Attached also part of simple McStas script (source & detector only) > please check it. > > > I found no .instr example attached to your email, but there are many too > look at within the examples/ folder of your McStas installation. > > Now, to get properly started on McStas, I propose you to e.g. > > 0) Try the simple SANS oriented tutorial available here: > > https://github.com/McStasMcXtrace/McCode/wiki/McStas-tutorial%3A-simplified-SANS-instrument > > > 1) Read chapter 3 of the McStas user manual, available here: > http://mcstas.org/documentation/manual/mcstas-2.4.1-manual.pdf and by > running mcdoc.pl -m on your own system > > 2) There are a couple of older sets of ?school? material available on the > web, e.g. > http://nobugs2016.mcstas.org and http://april2017.mcstas.org that you can > try following > > > Also, there was an email from Georg Ehlers (SNS) > requesting people to indicate if they would be interested in a McStas > school later this year in Oak Ridge - see > https://mailman2.mcstas.org//pipermail/mcstas-users/2018q1/001234.html > > > Best regards, > > Peter > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Fri Mar 16 09:42:34 2018 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 16 Mar 2018 08:42:34 +0000 Subject: [mcstas-users] Question please In-Reply-To: References: Message-ID: <94F68FA6-B042-4F5A-B3BB-04D8F86166E0@fysik.dtu.dk> Dear Mahmoud, On 16 Mar 2018, at 07:41 , Mahmoud Yaseen Suaifan > wrote: 1) Here i'm following the preference of sharing questions on this open forum for the sake of benefit for all. I'm still newcomer. Thanks for telling me this new info. No worries, and that is exactly what the mcstas-users list is meant for. :-) 2) Regarding source defining: Please allow me to elaborate a little: Assume i choose combination 1 ( dist & rectangle focus) : If tube nose (immersed in pool reflector tank) has: Area of A1 and thermal calc. flux at nose (by MCNP) = X in units of [ n/cm^2.sec]. Let's pay attention to units please. Focused to some neck @ dist=R and area A2. So i enter in McStas value of I1= X as it is? Since i'm defining also source radius (A1) & dist & A2 ( internally by default McSras controls solid angle)??!!. Or shall i do some pre-calculations? Like divide by some solid angle (omega subtended by focus rect.) or 2pi. (One side of emiting disk source ) Or 4pi or so? I admit the documentation is perhaps not completely clear - but I believe I1 is meant to be the source emission into 4PI steradian in neutrons. McStas then takes care of the weighting wrt. the chosen solid angle (in your case dist + rectangle focus) Back to units: McStas output by monitor or detector (counts/sec) am i right? Yes. And most monitors do not normalise by (their own) measurement area. So if i want to check my source functionality putting a monitor exactly at z=0 (0.0001 more realstic). What will be the expected result keeping in mind value of X & its units? How to compare initial & losses ( I understand these are statistics) & ( i understand that for comparison research purposes, the initial input is not important that much) but i'm looking for some logical explanations for values to feel satisfied more & have a close view on the mechanism it works. If you have experimental data - or benchmark tally data from e.g. MCNP, e.g. at the tube nose, I would put my monitor(s) there. 3) Sorry i didn't attached any (file.instr) since it is still scratches. But thank you for the examples ( honestly, still haven't got the chance to check them, but i'll do ASAP). Appreciated. No worries. 4) Regarding the suggested workshop: It's a great idea and i'm really interested but i'm thinking how can i afford the costs ( flight, accomodation, ..etc). To me, I guess it's difficult to find financial support at least at this stage. Hope the best for all. OK, I see. I know that in earlier cases workshop participants have been able to receive support from e.g. the IAEA for these types of events. All the best and have a nice weekend, Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Speciakonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:image001.gif at 01CCCAF1.5E6331F0] Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From wildgrubercu at ornl.gov Mon Mar 19 16:13:23 2018 From: wildgrubercu at ornl.gov (Wildgruber, Christoph U.) Date: Mon, 19 Mar 2018 15:13:23 +0000 Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3) Message-ID: <93185FEC-E64B-4757-8E53-0D1A8D8684B6@ornl.gov> Hi, I saw on the mcstas website that 2.4.1 is running on OS 10.13 ? When trying it on my MBP I?ll get pretty far but the C-compiler crashes with the following message: Instrument opened: topaz_asbuilt.instr INFO: No output directory specified (--dir) INFO: Using directory: "topaz_asbuilt_20180319_111039" INFO: Recompiling: ./topaz_asbuilt.out INFO: Using existing c-file: ./topaz_asbuilt.c mccode-r.h:39:18: fatal error: math.h: No such file or directory compilation terminated. Traceback (most recent call last): File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 362, in main() File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 284, in main mcstas.prepare(options) File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 173, in prepare Process(options.cc).run(args) File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 80, in run raise ProcessException(self.executable, args, retval) mccode.ProcessException: Got exit status 1 from "gcc -o ./topaz_asbuilt.out ./topaz_asbuilt.c -lm -UUSE_MPI -g -O2 -lm -headerpad_max_install_names ? I tried to find out what?s wrong but failed? Any suggestion how to fix that problem? Thanks, Uli -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.jackson at esss.se Mon Mar 19 16:33:34 2018 From: andrew.jackson at esss.se (Andrew Jackson) Date: Mon, 19 Mar 2018 15:33:34 +0000 Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3) Message-ID: Hi Christoph Are you running at the command line or using the GUI? I saw the same error on my High Sierra machine because I was running from the bare bash shell, rather than the mcstas-2.4.1-environment. Best Andrew ______________________________________ Andrew Jackson Instrument Scientist - Small Angle Scattering Deputy Head of Neutron Instruments Division European Spallation Source, P.O Box 176, SE-221 00 Lund, Sweden Adjunct Associate Professor (Adjungerad Lektor) Physical Chemistry, Lund University, P.O. Box 124, SE-221 00, Lund, Sweden Phone: +46 46 888 3015 Mobile: +46 72 179 2015 E-mail: andrew.jackson at esss.se www.esss.se From: mcstas-users on behalf of "Wildgruber, Christoph U." Date: Monday, 19 March 2018 at 16:14 To: "mcstas-users at mcstas.org" Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3) Hi, I saw on the mcstas website that 2.4.1 is running on OS 10.13 ? When trying it on my MBP I?ll get pretty far but the C-compiler crashes with the following message: Instrument opened: topaz_asbuilt.instr INFO: No output directory specified (--dir) INFO: Using directory: "topaz_asbuilt_20180319_111039" INFO: Recompiling: ./topaz_asbuilt.out INFO: Using existing c-file: ./topaz_asbuilt.c mccode-r.h:39:18: fatal error: math.h: No such file or directory compilation terminated. Traceback (most recent call last): File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 362, in main() File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 284, in main mcstas.prepare(options) File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 173, in prepare Process(options.cc).run(args) File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 80, in run raise ProcessException(self.executable, args, retval) mccode.ProcessException: Got exit status 1 from "gcc -o ./topaz_asbuilt.out ./topaz_asbuilt.c -lm -UUSE_MPI -g -O2 -lm -headerpad_max_install_names ? I tried to find out what?s wrong but failed? Any suggestion how to fix that problem? Thanks, Uli -------------- next part -------------- An HTML attachment was scrubbed... URL: From p at willendrup.org Mon Mar 19 17:12:56 2018 From: p at willendrup.org (Peter Willendrup) Date: Mon, 19 Mar 2018 17:12:56 +0100 Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3) In-Reply-To: References: Message-ID: Hi both, Andrew is right, this could easily be the issue. (These days, to come around rare numerical issues with the Apple-provided ?gcc?/clang, I have enclosed what is supposed to be a ?full? gcc inside the McStas application bundle. For this reason the recommended way to run a command-line environment is via mcstas-2.4.1-environment.) If the problem persists / is something else Christoph, you may also experiment by changing which compiler is used - easiest via File -> Preferences in mcgui. Setting it to /usr/bin/gcc will run the system-default gcc. Best, Peter > On 19 Mar 2018, at 16:33 , Andrew Jackson wrote: > > Hi Christoph > > Are you running at the command line or using the GUI? > > I saw the same error on my High Sierra machine because I was running from the bare bash shell, rather than the mcstas-2.4.1-environment. > > Best > Andrew > ______________________________________ > Andrew Jackson > Instrument Scientist - Small Angle Scattering > Deputy Head of Neutron Instruments Division > European Spallation Source, P.O Box 176, SE-221 00 Lund, Sweden > > Adjunct Associate Professor (Adjungerad Lektor) > Physical Chemistry, Lund University, P.O. Box 124, SE-221 00, Lund, Sweden > > Phone: +46 46 888 3015 > Mobile: +46 72 179 2015 > E-mail: andrew.jackson at esss.se > > www.esss.se > > From: mcstas-users on behalf of "Wildgruber, Christoph U." > Date: Monday, 19 March 2018 at 16:14 > To: "mcstas-users at mcstas.org" > Subject: [mcstas-users] Version 2.4.1 on High Sierra (10.13.3) > > > Hi, > > I saw on the mcstas website that 2.4.1 is running on OS 10.13 ? > When trying it on my MBP I?ll get pretty far but the C-compiler crashes with the following message: > > > Instrument opened: topaz_asbuilt.instr > INFO: No output directory specified (--dir) > INFO: Using directory: "topaz_asbuilt_20180319_111039" > INFO: Recompiling: ./topaz_asbuilt.out > INFO: Using existing c-file: ./topaz_asbuilt.c > mccode-r.h:39:18: fatal error: math.h: No such file or directory > compilation terminated. > Traceback (most recent call last): > File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 362, in > main() > File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcgui/../mccodelib/../../../bin/../tools/Python/mcrun/mcrun.py", line 284, in main > mcstas.prepare(options) > File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 173, in prepare > Process(options.cc ).run(args) > File "/Applications/McStas-2.4.app/Contents/Resources/mcstas/2.4/tools/Python/mcrun/mccode.py", line 80, in run > raise ProcessException(self.executable, args, retval) > mccode.ProcessException: Got exit status 1 from "gcc -o ./topaz_asbuilt.out ./topaz_asbuilt.c -lm -UUSE_MPI -g -O2 -lm -headerpad_max_install_names ? > > > I tried to find out what?s wrong but failed? > > Any suggestion how to fix that problem? > > > > Thanks, > > Uli > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: