From pkwi at fysik.dtu.dk Fri Jan 4 17:21:32 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Fri, 4 Jan 2013 16:21:32 +0000 Subject: [mcstas-users] Experimental deb and rpm mirrors for McStas Message-ID: <0060DE3AEB7B2D43842E30470567BD970453EB@ait-pex02mbx04.win.dtu.dk> Hello everyone, As of today we provide package repositories for deb and rpm package driven Linux systems. To allow automatic update of your mcstas, mcstas-components and tools when new revisions are relased, follow these instructions: On Debian class systems (including Ubuntu, mint etc.): cd /etc/apt/sources.list.d sudo wget http://packages.mccode.org/debian/mccode.list sudo apt-get update On RedHat class systems (including Scientific Linux, CentOS etc.): cd /etc/yum.repos.d sudo wget http://packages.mccode.org/rpm/mccode.repo sudo yum update After following these steps your package manager should now be aware of mcstas (example from Debian) mcstas at debian:~$ apt-cache search mcstas mcstas-2.0 - mcstas built using CMake mcstas-comps-2.0 - mcstas-comps built using CMake mcstas-suite - A metapackage for McStas + perl and python tools mcstas-suite-perl - A metapackage for McStas + perl tools mcstas-suite-python - A metapackage for McStas + perl tools mcstas-tools-2.0 - legacy-tools built using CMake mcstas-tools-python-mcplot-chaco-2.0 - python-tools-mcplot built using CMake mcstas-tools-python-mcplot-matplotlib-2.0 - python-tools-mcplot built using CMake mcstas-tools-python-mcrun-2.0 - python-tools-mcrun built using CMake The new meta-packages mcstas-suite, mcstas-suite-perl and mcstas-suite-python allows you to install mcstas with one or both sets of tools (mcrun/mcplot etc.) by simple apt-get or yum commands like these: Debian: sudo apt-get install mcstas-suite RedHat: sudo yum install mcstas-suite-perl Please report any trouble with the repositories to our the mcstas-users mailinglist. :-) Best, Peter Willendrup Peter Kj?r Willendrup Development engineer DTU Physics 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 farhi at ill.fr Mon Feb 4 20:51:12 2013 From: farhi at ill.fr (Emmanuel FARHI) Date: Mon, 4 Feb 2013 20:51:12 +0100 (CET) Subject: [mcstas-users] Neutron Source on Mcstas In-Reply-To: References: Message-ID: <1f6ee5efe1f155bcf563d5dc3bc61c50.squirrel@195.83.126.17> Hello Boualem, Perhaps you can use a lambda/divergence monitor after the source to see what you get, or look at the source code of Source_div and identify how is set the weight 'p' or the directional/velocity sampling. What I see is that the velocity sampling is uniform within DeltaLambda, and the directional/divergence sampling is Gaussian when 'gauss=1', and uniform when 'gauss=0', whithin given divergence bounds. Emmanuel. On Mon, February 4, 2013 20:12, Hammouda, Boualem wrote: > Hi Emmanuel, > I am still using Mcstas on my old Windows XP computer and there it's > working fine. I have a question about the neutron source. I am using > source_div with DeltaLambda=0.1 and gauss=0. Should I assume that this is > the output of a velocity selector and that the wavelength distribution is > triangular with FWHM=0.1 or that the distribution is uniform? Thanks a lot > for your help. > Boualem > > > -----Original Message----- > From: Emmanuel FARHI [mailto:farhi at ill.fr] > Sent: Thursday, January 17, 2013 1:59 PM > To: Hammouda, Boualem; pkwi at fysik.dtu.dk > Subject: Re: Mcstas and Windows 7 > > Hello Boualem, > > I transmit your message to Peter who has tested the McStas 2 release under > Windows7 64 bits. > Perhaps you should make sure to clean up previous McStas releases before > you re-install McStas 2.0. > Issues my originate from the fact that more than one McStas release can be > installed at the same time. > Also, instruments from McStas 1.x require some components parameter tuning > (in .instr) to work with 2.0 > > You should probably give us more details on what is broken in your case... > > Emmanuel. > > On Thu, January 17, 2013 18:33, Hammouda, Boualem wrote: >> Hi Emmanuel, >> Thank you for your involvement with mcstas. It's a very useful package >> that I used effectively on a Windows XP platform. Now that we moved to >> a Windows 7 platform, I cannot get the new downloaded version to work. >> Has anyone tried to use mcstas with Windows 7 (with 64 bits)? Please >> send some guidance or kindly redirect my message. Thanks. >> Boualem >> >> Boualem Hammouda >> Center for Neutron Research >> National Institute of Standards and Technology Bldg 235, Room E122 >> Gaithersburg, MD 20899-6102 >> Tel: 301-975-3961 >> >> > > > -- > FARHI Emmanuel > Groupe DS/CS, ILL4/156, Tel 04 76 20 71 35 ILL, Grenoble > > -- FARHI Emmanuel Groupe DS/CS, ILL4/156, Tel 04 76 20 71 35 ILL, Grenoble From farhi at ill.eu Tue Feb 5 10:30:43 2013 From: farhi at ill.eu (Emmanuel FARHI) Date: Tue, 05 Feb 2013 10:30:43 +0100 Subject: [mcstas-users] what the flux? In-Reply-To: <5110C0EF.8070701@ill.fr> References: <5110C0EF.8070701@ill.fr> Message-ID: <5110D143.1020306@ill.eu> An HTML attachment was scrubbed... URL: From C.Ridley at ed.ac.uk Fri Feb 8 00:16:37 2013 From: C.Ridley at ed.ac.uk (Christopher James Taylor Ridley) Date: Thu, 07 Feb 2013 23:16:37 +0000 Subject: [mcstas-users] Installation on Windows 7 64-bit Message-ID: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> Dear All, I am having some problems installing Mcstas 2.0 on my windows 7 machine (64-bit). I have installed the recommended C-compiler, Strawberry Perl and Python(x,y), with all the default settings. I then went through and ran each executable file in the .zip file, in the order discussed in the README. I initially managed to get the gui to run, but failing the test, with nothing compiling, after a re-installation I can now only get the command line to work. I had no problems running the older 1.12c version. Do you have any advice for successful installation? Best Wishes, Chris -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From daniel.hussey at nist.gov Fri Feb 8 14:38:21 2013 From: daniel.hussey at nist.gov (Hussey, Daniel S.) Date: Fri, 8 Feb 2013 08:38:21 -0500 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> Message-ID: While I can't give any advice, I can commiserate. I also installed McStas 2.0 on a 64 bit Windows 7 machine including all the needed utilities. I was able to run the gui, but if I tried to run one of the example instruments I get an error that the path couldn't be found. I copied the instrument file to the \bin directory, and the instrument compiled, but when I ran the simulation I got another path can't be found error. Any ideas? Cheers- Dan --- Daniel S. Hussey, PhD National Institute of Standards and Technology 100 Bureau Dr., Mail Stop 8461 Gaithersburg, MD 20899-8461 Ph: 301-975-6465 Fax: 301-926-1604 ________________________________________ From: mcstas-users-bounces at mcstas.org [mcstas-users-bounces at mcstas.org] On Behalf Of Christopher James Taylor Ridley [C.Ridley at ed.ac.uk] Sent: Thursday, February 07, 2013 6:16 PM To: mcstas-users at mcstas.org Subject: [mcstas-users] Installation on Windows 7 64-bit Dear All, I am having some problems installing Mcstas 2.0 on my windows 7 machine (64-bit). I have installed the recommended C-compiler, Strawberry Perl and Python(x,y), with all the default settings. I then went through and ran each executable file in the .zip file, in the order discussed in the README. I initially managed to get the gui to run, but failing the test, with nothing compiling, after a re-installation I can now only get the command line to work. I had no problems running the older 1.12c version. Do you have any advice for successful installation? Best Wishes, Chris -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users From brinchj at gmail.com Fri Feb 8 14:59:27 2013 From: brinchj at gmail.com (Johan Brinch) Date: Fri, 8 Feb 2013 14:59:27 +0100 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> Message-ID: On Fri, Feb 8, 2013 at 2:38 PM, Hussey, Daniel S. wrote: > I copied the instrument file to the \bin directory, and the instrument compiled, but when I ran the simulation I got another path can't be found error. Did it say anything about the path it was looking for? Could sound like a Windows-specific path-bug in mcrun or mcstas. Do you know if you were using the Perl mcrun or the Python mcrun? Or did you run the compiled instrument directly or from the gui? -- Johan Brinch From C.Ridley at ed.ac.uk Fri Feb 8 15:27:05 2013 From: C.Ridley at ed.ac.uk (Christopher James Taylor Ridley) Date: Fri, 08 Feb 2013 14:27:05 +0000 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> Message-ID: <20130208142705.14181rw2vdk3x1y8@www.staffmail.ed.ac.uk> I have had this issue also. With the Perl mcrun, and through the gui. Chris Quoting Johan Brinch on Fri, 8 Feb 2013 14:59:27 +0100: > On Fri, Feb 8, 2013 at 2:38 PM, Hussey, Daniel S. > wrote: >> I copied the instrument file to the \bin directory, and the >> instrument compiled, but when I ran the simulation I got another >> path can't be found error. > > Did it say anything about the path it was looking for? Could sound > like a Windows-specific path-bug in mcrun or mcstas. > > Do you know if you were using the Perl mcrun or the Python mcrun? Or > did you run the compiled instrument directly or from the gui? > > -- > Johan Brinch > > -- Centre for Science at Extreme Conditions The University of Edinburgh Erskine Williamson Building The King's Buildings Mayfield Road Edinburgh EH9 3JZ tel: 0131 6517 238 -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From daniel.hussey at nist.gov Wed Feb 13 22:11:40 2013 From: daniel.hussey at nist.gov (Hussey, Daniel S.) Date: Wed, 13 Feb 2013 16:11:40 -0500 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: <20130208142705.14181rw2vdk3x1y8@www.staffmail.ed.ac.uk> References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> <20130208142705.14181rw2vdk3x1y8@www.staffmail.ed.ac.uk> Message-ID: Mystery solved ... sort of ... using the shortcut on the desktop, things run smoothly ... launching the perl mcgui.pl from the command window gave problems with the directories. --- Daniel S. Hussey, PhD National Institute of Standards and Technology 100 Bureau Dr., Mail Stop 8461 Gaithersburg, MD 20899-8461 Ph: 301-975-6465 Fax: 301-926-1604 -----Original Message----- From: Christopher James Taylor Ridley [mailto:C.Ridley at ed.ac.uk] Sent: Friday, February 08, 2013 9:27 AM To: Johan Brinch Cc: Hussey, Daniel S.; mcstas-users at mcstas.org Subject: Re: [mcstas-users] Installation on Windows 7 64-bit I have had this issue also. With the Perl mcrun, and through the gui. Chris Quoting Johan Brinch on Fri, 8 Feb 2013 14:59:27 +0100: > On Fri, Feb 8, 2013 at 2:38 PM, Hussey, Daniel S. > wrote: >> I copied the instrument file to the \bin directory, and the >> instrument compiled, but when I ran the simulation I got another path >> can't be found error. > > Did it say anything about the path it was looking for? Could sound > like a Windows-specific path-bug in mcrun or mcstas. > > Do you know if you were using the Perl mcrun or the Python mcrun? Or > did you run the compiled instrument directly or from the gui? > > -- > Johan Brinch > > -- Centre for Science at Extreme Conditions The University of Edinburgh Erskine Williamson Building The King's Buildings Mayfield Road Edinburgh EH9 3JZ tel: 0131 6517 238 -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From brinchj at gmail.com Thu Feb 14 09:45:57 2013 From: brinchj at gmail.com (Johan Brinch) Date: Thu, 14 Feb 2013 09:45:57 +0100 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> <20130208142705.14181rw2vdk3x1y8@www.staffmail.ed.ac.uk> Message-ID: On Wed, Feb 13, 2013 at 10:11 PM, Hussey, Daniel S. wrote: > Mystery solved ... sort of ... using the shortcut on the desktop, things run smoothly ... launching the perl mcgui.pl from the command window gave problems with the directories. Ah right, you need to use the mcstas-2.0-shell shortcut from the desktop. It sets up your environment with the correct McStas path's etc. But there's still an issue with the gui? Or does it all work now? :-) -- Johan Brinch From daniel.hussey at nist.gov Thu Feb 14 14:19:31 2013 From: daniel.hussey at nist.gov (Hussey, Daniel S.) Date: Thu, 14 Feb 2013 08:19:31 -0500 Subject: [mcstas-users] Installation on Windows 7 64-bit In-Reply-To: References: <20130207231637.10193kyqts29peck@www.staffmail.ed.ac.uk> <20130208142705.14181rw2vdk3x1y8@www.staffmail.ed.ac.uk> Message-ID: Johan- I was able to run and plot. It would be nice if there could be a little note about the short cut in the manual ... Cheers- Dan --- Daniel S. Hussey, PhD National Institute of Standards and Technology 100 Bureau Dr., Mail Stop 8461 Gaithersburg, MD 20899-8461 Ph: 301-975-6465 Fax: 301-926-1604 -----Original Message----- From: zerrez at gmail.com [mailto:zerrez at gmail.com] On Behalf Of Johan Brinch Sent: Thursday, February 14, 2013 3:46 AM To: Hussey, Daniel S. Cc: Christopher James Taylor Ridley; mcstas-users at mcstas.org Subject: Re: [mcstas-users] Installation on Windows 7 64-bit On Wed, Feb 13, 2013 at 10:11 PM, Hussey, Daniel S. wrote: > Mystery solved ... sort of ... using the shortcut on the desktop, things run smoothly ... launching the perl mcgui.pl from the command window gave problems with the directories. Ah right, you need to use the mcstas-2.0-shell shortcut from the desktop. It sets up your environment with the correct McStas path's etc. But there's still an issue with the gui? Or does it all work now? :-) -- Johan Brinch From nadir.aliouane at psi.ch Thu Feb 28 16:18:03 2013 From: nadir.aliouane at psi.ch (nadir aliouane) Date: Thu, 28 Feb 2013 16:18:03 +0100 Subject: [mcstas-users] Mcstas.org webpage Message-ID: <512F752B.8040509@psi.ch> Hello Peter How are you ? it seems that with the new webpage of Mcstas some link are missing. Since the Manual is not updated the link of the description of each component is really useful on the webpage. I have tried to have access to the component(s) and example(s) information and they are missing in the new Mcstas webpage. Indeed if you go to the following link : http://mcstas.org/download/components/ I would like to know if you can update the link so that this information can be again accessible. Thanks a LOT Nadir -- ******************************************* Dr. Nadir ALIOUANE Laboratory for Neutron Scattering Paul Scherrer Institut WHGA 242 CH-5232 Villigen PSI, Switzerland Tel: +41 (0)56 310 5358 Fax: +41 (0)56 310 2939 phone: +41 (0)78 648 9969 ********************************************* From pkwi at fysik.dtu.dk Thu Feb 28 18:48:52 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Thu, 28 Feb 2013 17:48:52 +0000 Subject: [mcstas-users] Mcstas.org webpage In-Reply-To: <512F752B.8040509@psi.ch> References: <512F752B.8040509@psi.ch> Message-ID: <0060DE3AEB7B2D43842E30470567BD9708F69A@ait-pex02mbx05.win.dtu.dk> Hello Nadir, On Feb 28, 2013, at 16:18 , nadir aliouane > wrote: How are you ? I am very well - hope things are good at PSI as well? it seems that with the new webpage of Mcstas some link are missing. Since the Manual is not updated the link of the description of each component is really useful on the webpage. I have tried to have access to the component(s) and example(s) information and they are missing in the new Mcstas webpage. Indeed if you go to the following link : http://mcstas.org/download/components/ I would like to know if you can update the link so that this information can be again accessible. The reason that these pages are no longer online is that we changed the structure of the McStas package distribution quite a bit with McStas 2.0. Further, we are planning to allow release new versions of the component library alone without releasing a complete new McStas with tools & code generation etc. - And there is always a (small) risk that the components on our webpage does not correspond 100% to what you have on your own machine. For now, simply use the mcdoc pages available on your own machine using either * The mcgui menu: Help (McDoc) -> Component Library Index * The command line documentation tool: mcdoc Still, your point is taken of course - I will try to add the pages back soon. Best, Peter Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-3.tiff Type: image/tiff Size: 10864 bytes Desc: PastedGraphic-3.tiff URL: From wokaoyan1981 at 126.com Fri Mar 1 02:47:27 2013 From: wokaoyan1981 at 126.com (=?GBK?B?s8LR5dbb?=) Date: Fri, 1 Mar 2013 09:47:27 +0800 (CST) Subject: [mcstas-users] structure factor issue Message-ID: <71354c6.2b57.13d23a1ece5.Coremail.wokaoyan1981@126.com> Dear colleagues? The Al.laz file in McStas\lib\data shows that structure factor |F(HKL)| of Al is as following (part of the data): (111) 1.3 ? (220) 1.2 ? However, according to the formula we calculate that |F(HKL)| of Al for all diffraction planes is 13.8.Besides, we find that |F(HKL)| s of other materials we calculated are quite different from the ones of McStas. My question is what is the formula used in the McStas laz files to calculate |F(HKL)| and why is the difference. I'm looking forwad your replys. Best regards, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: formula.bmp Type: image/bmp Size: 124366 bytes Desc: not available URL: From kgrammer at utk.edu Fri Mar 1 20:53:38 2013 From: kgrammer at utk.edu (Grammer, Kyle Brandon) Date: Fri, 1 Mar 2013 19:53:38 +0000 Subject: [mcstas-users] Linux Installation Problem Message-ID: <2EC841F98E92FF4DADB6D44A7008E87808C76A67@SN2PRD0202MB178.namprd02.prod.outlook.com> Hi All, I have downloaded the mcstas-2.0-src-unix.tar.gz file and tried to compile mcstas 2.0 from source on 64 bit ubuntu. Previously, I was able to compile version 1.12c from source using the 64 bit intel linux source tar without any issues. When I extract the unix source tar and try to run ./configure, I get the following: checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed Configurating McCode with McStas flavour MCCODE_DATE =Mar. 01, 2013 MCCODE_TARNAME =mcstas MCCODE_NAME =McStas MCCODE_VERSION =Mar-01-2013 MCCODE_STRING =McStas Mar-01-2013 - Mar. 01, 2013 MCCODE_BUGREPORT=mcstas-support at mcstas.org MCCODE_PARTICULE=neutron MCCODE_PROJECT =1 MCCODE_LIBENV =MCSTAS MCCODE_PREFIX =mc configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." It seems that it is missing an install script that it requires. Also, there is no install-docs folder full of documentation. There are several other tar files in mcstas-2.0-src-unix.tar.gz, as well, but I cannot find any instructions for where to unzip/untar them. Perhaps this is the absolutely wrong tar for me to be using and an intel linux tar simply does not exist? Would I be better served downloading the bleeding edge version from SVN? I was able to install mcstas 2.0 from the experimental deb mirror with: sudo apt-get install mcstas-suite However, I want to be able to modify and add my own components to the system and mcstas 2.0 does not seem to find new component files that I have added. For isntance, I have a component called "Guide_circular.comp" that I placed in the optics/ directory for mcstas 2.0, and mcstas found it and included it in the menu of possible components to add. However, the guide that takes dimensions and other parameters in the gui for Guide_circular.comp does not exist. When I try to compile an existing instrument that uses Guide_circular, I get an error of "Guide_circular is similar to Guide_circular.comp - perhaps there is a spelling error". All of this works correctly with mcstas 1.12c, where I only had to place the .comp in the correct place and I believe re-compiling mcstas would generate an html file for defining parameters in the gui. So, I suppose my question is two-fold: How can I properly install/compile from source mcstas-2.0 in linux? How can I properly incorporate my own components to mcstas-2.0? Thanks, Kyle Grammer -------------- next part -------------- An HTML attachment was scrubbed... URL: From p at willendrup.org Fri Mar 1 21:05:55 2013 From: p at willendrup.org (Peter Willendrup) Date: Fri, 1 Mar 2013 21:05:55 +0100 Subject: [mcstas-users] Linux Installation Problem In-Reply-To: <2EC841F98E92FF4DADB6D44A7008E87808C76A67@SN2PRD0202MB178.namprd02.prod.outlook.com> References: <2EC841F98E92FF4DADB6D44A7008E87808C76A67@SN2PRD0202MB178.namprd02.prod.outlook.com> Message-ID: Hi Kyle, What is not at all clear in the documentation (and even in the tarball) is that we have effectively moved away from using autoconf / configure to the use of cmake. Sorry about this! The easiest way to compile from source if you insist (we do have a set of proper 64bit deb packages these days) is probably by using installing cmake, i.e. tar xzf mcstas-2.0-src-unix.tar.gz cd mcstas-2.0-src-unix Core package: tar xzf mcstas-2.0-src.tar.gz cd mcstas-2.0-src mkdir build && cd build cmake .. make make install Do the same for the -components, and the selection of -tool- packages you want. Hope this helps, Peter On Mar 1, 2013, at 20:53 , "Grammer, Kyle Brandon" wrote: > Hi All, > > I have downloaded the mcstas-2.0-src-unix.tar.gz file and tried to compile mcstas 2.0 from source on 64 bit ubuntu. Previously, I was able to compile version 1.12c from source using the 64 bit intel linux source tar without any issues. > > When I extract the unix source tar and try to run ./configure, I get the following: > > checking for gcc... gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.out > checking for suffix of executables... > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > Configurating McCode with McStas flavour > MCCODE_DATE =Mar. 01, 2013 > MCCODE_TARNAME =mcstas > MCCODE_NAME =McStas > MCCODE_VERSION =Mar-01-2013 > MCCODE_STRING =McStas Mar-01-2013 - Mar. 01, 2013 > MCCODE_BUGREPORT=mcstas-support at mcstas.org > MCCODE_PARTICULE=neutron > MCCODE_PROJECT =1 > MCCODE_LIBENV =MCSTAS > MCCODE_PREFIX =mc > configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." > > It seems that it is missing an install script that it requires. Also, there is no install-docs folder full of documentation. There are several other tar files in mcstas-2.0-src-unix.tar.gz, as well, but I cannot find any instructions for where to unzip/untar them. > > Perhaps this is the absolutely wrong tar for me to be using and an intel linux tar simply does not exist? Would I be better served downloading the bleeding edge version from SVN? > > I was able to install mcstas 2.0 from the experimental deb mirror with: > sudo apt-get install mcstas-suite > > However, I want to be able to modify and add my own components to the system and mcstas 2.0 does not seem to find new component files that I have added. For isntance, I have a component called "Guide_circular.comp" that I placed in the optics/ directory for mcstas 2.0, and mcstas found it and included it in the menu of possible components to add. However, the guide that takes dimensions and other parameters in the gui for Guide_circular.comp does not exist. When I try to compile an existing instrument that uses Guide_circular, I get an error of "Guide_circular is similar to Guide_circular.comp - perhaps there is a spelling error". All of this works correctly with mcstas 1.12c, where I only had to place the .comp in the correct place and I believe re-compiling mcstas would generate an html file for defining parameters in the gui. > > So, I suppose my question is two-fold: > How can I properly install/compile from source mcstas-2.0 in linux? > How can I properly incorporate my own components to mcstas-2.0? > > Thanks, > Kyle Grammer > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Fri Mar 1 21:11:13 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Fri, 1 Mar 2013 20:11:13 +0000 Subject: [mcstas-users] Linux Installation Problem In-Reply-To: References: <2EC841F98E92FF4DADB6D44A7008E87808C76A67@SN2PRD0202MB178.namprd02.prod.outlook.com> Message-ID: <0060DE3AEB7B2D43842E30470567BD97091508@ait-pex02mbx05.win.dtu.dk> Ooops, didn't see your second question in the first go, sorry. In principle copying your component to e.g. /usr/local/mcstas-2.0/optics should work - and you can of course always simply leave it your current work-folder? The issue of "Guide_circular is similar to Guide_circular.comp" looks a bit strange - try sending me the comp and I will try to reproduce your problem myself. Best, Peter On Mar 1, 2013, at 21:05 , Peter Willendrup

> wrote: Hi Kyle, What is not at all clear in the documentation (and even in the tarball) is that we have effectively moved away from using autoconf / configure to the use of cmake. Sorry about this! The easiest way to compile from source if you insist (we do have a set of proper 64bit deb packages these days) is probably by using installing cmake, i.e. tar xzf mcstas-2.0-src-unix.tar.gz cd mcstas-2.0-src-unix Core package: tar xzf mcstas-2.0-src.tar.gz cd mcstas-2.0-src mkdir build && cd build cmake .. make make install Do the same for the -components, and the selection of -tool- packages you want. Hope this helps, Peter On Mar 1, 2013, at 20:53 , "Grammer, Kyle Brandon" > wrote: Hi All, I have downloaded the mcstas-2.0-src-unix.tar.gz file and tried to compile mcstas 2.0 from source on 64 bit ubuntu. Previously, I was able to compile version 1.12c from source using the 64 bit intel linux source tar without any issues. When I extract the unix source tar and try to run ./configure, I get the following: checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed Configurating McCode with McStas flavour MCCODE_DATE =Mar. 01, 2013 MCCODE_TARNAME =mcstas MCCODE_NAME =McStas MCCODE_VERSION =Mar-01-2013 MCCODE_STRING =McStas Mar-01-2013 - Mar. 01, 2013 MCCODE_BUGREPORT=mcstas-support at mcstas.org MCCODE_PARTICULE=neutron MCCODE_PROJECT =1 MCCODE_LIBENV =MCSTAS MCCODE_PREFIX =mc configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." It seems that it is missing an install script that it requires. Also, there is no install-docs folder full of documentation. There are several other tar files in mcstas-2.0-src-unix.tar.gz, as well, but I cannot find any instructions for where to unzip/untar them. Perhaps this is the absolutely wrong tar for me to be using and an intel linux tar simply does not exist? Would I be better served downloading the bleeding edge version from SVN? I was able to install mcstas 2.0 from the experimental deb mirror with: sudo apt-get install mcstas-suite However, I want to be able to modify and add my own components to the system and mcstas 2.0 does not seem to find new component files that I have added. For isntance, I have a component called "Guide_circular.comp" that I placed in the optics/ directory for mcstas 2.0, and mcstas found it and included it in the menu of possible components to add. However, the guide that takes dimensions and other parameters in the gui for Guide_circular.comp does not exist. When I try to compile an existing instrument that uses Guide_circular, I get an error of "Guide_circular is similar to Guide_circular.comp - perhaps there is a spelling error". All of this works correctly with mcstas 1.12c, where I only had to place the .comp in the correct place and I believe re-compiling mcstas would generate an html file for defining parameters in the gui. So, I suppose my question is two-fold: How can I properly install/compile from source mcstas-2.0 in linux? How can I properly incorporate my own components to mcstas-2.0? Thanks, Kyle Grammer _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-3.tiff Type: image/tiff Size: 10864 bytes Desc: PastedGraphic-3.tiff URL: From kgrammer at utk.edu Sat Mar 2 17:23:25 2013 From: kgrammer at utk.edu (Grammer, Kyle Brandon) Date: Sat, 2 Mar 2013 16:23:25 +0000 Subject: [mcstas-users] Linux Installation Problem In-Reply-To: <0060DE3AEB7B2D43842E30470567BD97091508@ait-pex02mbx05.win.dtu.dk> References: <2EC841F98E92FF4DADB6D44A7008E87808C76A67@SN2PRD0202MB178.namprd02.prod.outlook.com> , <0060DE3AEB7B2D43842E30470567BD97091508@ait-pex02mbx05.win.dtu.dk> Message-ID: <2EC841F98E92FF4DADB6D44A7008E87808C7AC62@SN2PRD0202MB178.namprd02.prod.outlook.com> Hi Peter, Everything seems to be working now, actually. Mcstas will read my component correctly both in the /usr/local/lib/optics directory and in the working directory, and it works whether I compile from source or use the repository. Now, I have an unrelated problem for the number of source particles. If I increase the number of source particles, I get better statistics until this shows up for every component: "Warning: No neutron could reach Component[10]" This happens for example instruments as well as my own. ________________________________ From: Peter Kj?r Willendrup [pkwi at fysik.dtu.dk] Sent: Friday, March 01, 2013 3:11 PM To: Grammer, Kyle Brandon Cc: mcstas-users at mcstas.org mcstas.org Subject: Re: [mcstas-users] Linux Installation Problem Ooops, didn't see your second question in the first go, sorry. In principle copying your component to e.g. /usr/local/mcstas-2.0/optics should work - and you can of course always simply leave it your current work-folder? The issue of "Guide_circular is similar to Guide_circular.comp" looks a bit strange - try sending me the comp and I will try to reproduce your problem myself. Best, Peter On Mar 1, 2013, at 21:05 , Peter Willendrup

> wrote: Hi Kyle, What is not at all clear in the documentation (and even in the tarball) is that we have effectively moved away from using autoconf / configure to the use of cmake. Sorry about this! The easiest way to compile from source if you insist (we do have a set of proper 64bit deb packages these days) is probably by using installing cmake, i.e. tar xzf mcstas-2.0-src-unix.tar.gz cd mcstas-2.0-src-unix Core package: tar xzf mcstas-2.0-src.tar.gz cd mcstas-2.0-src mkdir build && cd build cmake .. make make install Do the same for the -components, and the selection of -tool- packages you want. Hope this helps, Peter On Mar 1, 2013, at 20:53 , "Grammer, Kyle Brandon" > wrote: Hi All, I have downloaded the mcstas-2.0-src-unix.tar.gz file and tried to compile mcstas 2.0 from source on 64 bit ubuntu. Previously, I was able to compile version 1.12c from source using the 64 bit intel linux source tar without any issues. When I extract the unix source tar and try to run ./configure, I get the following: checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed Configurating McCode with McStas flavour MCCODE_DATE =Mar. 01, 2013 MCCODE_TARNAME =mcstas MCCODE_NAME =McStas MCCODE_VERSION =Mar-01-2013 MCCODE_STRING =McStas Mar-01-2013 - Mar. 01, 2013 MCCODE_BUGREPORT=mcstas-support at mcstas.org MCCODE_PARTICULE=neutron MCCODE_PROJECT =1 MCCODE_LIBENV =MCSTAS MCCODE_PREFIX =mc configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." It seems that it is missing an install script that it requires. Also, there is no install-docs folder full of documentation. There are several other tar files in mcstas-2.0-src-unix.tar.gz, as well, but I cannot find any instructions for where to unzip/untar them. Perhaps this is the absolutely wrong tar for me to be using and an intel linux tar simply does not exist? Would I be better served downloading the bleeding edge version from SVN? I was able to install mcstas 2.0 from the experimental deb mirror with: sudo apt-get install mcstas-suite However, I want to be able to modify and add my own components to the system and mcstas 2.0 does not seem to find new component files that I have added. For isntance, I have a component called "Guide_circular.comp" that I placed in the optics/ directory for mcstas 2.0, and mcstas found it and included it in the menu of possible components to add. However, the guide that takes dimensions and other parameters in the gui for Guide_circular.comp does not exist. When I try to compile an existing instrument that uses Guide_circular, I get an error of "Guide_circular is similar to Guide_circular.comp - perhaps there is a spelling error". All of this works correctly with mcstas 1.12c, where I only had to place the .comp in the correct place and I believe re-compiling mcstas would generate an html file for defining parameters in the gui. So, I suppose my question is two-fold: How can I properly install/compile from source mcstas-2.0 in linux? How can I properly incorporate my own components to mcstas-2.0? Thanks, Kyle Grammer _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0] Department of Physics Neutrons and X-rays for Materials 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 pkwi at fysik.dtu.dk Tue Mar 5 10:17:54 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Tue, 5 Mar 2013 09:17:54 +0000 Subject: [mcstas-users] [mcstas-support] Mcstas components manual version online In-Reply-To: <35f4e9336f2d94d14d0a166ef878224f@ill.fr> References: <35f4e9336f2d94d14d0a166ef878224f@ill.fr> Message-ID: <0060DE3AEB7B2D43842E30470567BD970952FF@ait-pex02mbx05.win.dtu.dk> Dear Christine, On Mar 5, 2013, at 09:34 , Christine Klauser > wrote: The components manual put online under http://mcstas.org/documentation/manual/mcstas-2.0-components.pdf is still the manual for Mcstas1.12. Could you please fix this? I would love to fix that - but as you may know, McStas 2.0 was a major revision with many changes - quite a few of these are still not implemented in the component manual, hence we still provide the old manual. For the general information, the 1.12 manual is still valid. For the component-specific information, please refer to the individual component documentation available in your local installation mcdoc Component_name Best, Peter Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-3.tiff Type: image/tiff Size: 10864 bytes Desc: PastedGraphic-3.tiff URL: From pkwi at fysik.dtu.dk Wed Mar 6 12:04:55 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Wed, 6 Mar 2013 11:04:55 +0000 Subject: [mcstas-users] Building McStas 2.0 from source code Message-ID: <0060DE3AEB7B2D43842E30470567BD970978CD@ait-pex02mbx05.win.dtu.dk> Hi all, Several people have reported issues compiling McStas 2.0 from source code - and I must admit the included documentation is not clear on how to do this! If you are interested in building the new McStas yourself, please have a look at the front page of the McStas website at http://www.mcstas.org which was just updated with the relevant information. Best, Peter Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-3.tiff Type: image/tiff Size: 10864 bytes Desc: PastedGraphic-3.tiff URL: From pkwi at fysik.dtu.dk Thu Mar 14 20:05:51 2013 From: pkwi at fysik.dtu.dk (=?Windows-1252?Q?Peter_Kj=E6r_Willendrup?=) Date: Thu, 14 Mar 2013 19:05:51 +0000 Subject: [mcstas-users] Component docs back on the website - by popular demand Message-ID: <0060DE3AEB7B2D43842E30470567BD970AE0B6@ait-pex02mbx05.win.dtu.dk> Hi all, As several people have pointed out, the component docs were removed from the website in connection with the release of McStas 2.0. They are now back at http://www.mcstas.org/download/components/ I have further become aware that the McStas 2.0 distribution - at least in the debian packages - was missing a call to mcdoc for generating the same pages there? To remedy that problem, please: cd /usr/local/lib/mcstas-2.0 sudo mcdoc -t - which should bring back the docs on your local machine. I am working my way down a list of other annoyances and aim to release a McStas 2.0a with various issues fixed in a few weeks. Please let me know if you found any issue that I can correct in the next release. Best, Peter Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-3.tiff Type: image/tiff Size: 10864 bytes Desc: PastedGraphic-3.tiff URL: From krunoslav.prsa at epfl.ch Wed Mar 20 13:03:19 2013 From: krunoslav.prsa at epfl.ch (Krunoslav Prsa) Date: Wed, 20 Mar 2013 12:03:19 +0000 Subject: [mcstas-users] Clear instructions for 64-bit windows installation needed Message-ID: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D32D@REXMF.intranet.epfl.ch> Hello all, I am a very fresh user of McStas. I am having troubles getting McStas to work on my computer (Windows 64 bit). 1) There is a simple installation file for windows for McStas version <= 1.12, however, there seems to be a problem (I get an error popup) with compatibility of c compiler cc.exe and 64 bit windows which I would expect everybody has nowadays. 2) Newer incarnations have 64 bit versions, however, at least the newest one (2.0) is a zip file consisting of several .exe files which don't actually give you a program once you install all of them. I have no idea whatsoever how this is supposed to be installed. 3) There are no contemporary installation instructions for Windows on the McStas webpage. Would it be possible to have them, at least in the README file within the installation zip file? 4) There seem to be some instructions on one of the mailing list's previous threads, but, since it is spread over several emails, I cannot really understand in which order to do what. I understand that McStas is a complex program that took quite a few of man-years of volunteers' work to develop. It would still be extremely useful if the windows developer(s) or at least one of the more experienced users would invest 5 minutes to write 10 sentences about the order of installation of exe files and how to run the (gui) program afterwards. It would really save newbies like me a bit of initial frustration. Best wishes from Lausanne, Kruno ------ Dr. Krunoslav Prsa, Postdoc Laboratory for Quantum Magnetism, ?cole Polytechnique F?d?rale de Lausanne ----- krunoslav.prsa at epfl.ch http://lqm.epfl.ch ----- Office: +41 21 69 35407 Mobile: +41 76 38 61799 ----- EPFL SB ICMP LQM PH D2 375 (B?timent PH) Station 3 CH-1015 Lausanne ----- http://plan.epfl.ch/?room=PHD2375 -------------- next part -------------- An HTML attachment was scrubbed... URL: From erkn at fysik.dtu.dk Wed Mar 20 13:55:56 2013 From: erkn at fysik.dtu.dk (Erik =?ISO-8859-1?Q?Bergb=E4ck?= Knudsen) Date: Wed, 20 Mar 2013 13:55:56 +0100 Subject: [mcstas-users] Clear instructions for 64-bit windows installation needed In-Reply-To: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D32D@REXMF.intranet.epfl.ch> References: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D32D@REXMF.intranet.epfl.ch> Message-ID: <1363784156.23140.41.camel@idril> Dear Krunoslav, I am very sorry to hear that you're having problems installing McStas. We shall do our very best to help you. Perhaps a little bit of background is warranted. It was decide to move to a modular installation with several packages for McStas 2.0 for various reasons. Firstly, it would allow the more frequent updates to the component library to be made available to the users without waiting for a new kernel release. Secondly, it allows users to install kernel and components without installing GUI and plotting tools, should they wish to do so. (Frequently the case on cluster installations). Thirdly, it allows users to replace the old perl based tools with the newly developed python tools with additional features. Sadly this has also caused confusion among users as we've perhaps not documented the procedure sufficiently. Indeed, the now obsolescent McStas 1.12 series never explicitly supported 64 bit windows - but has been reported to work (albeit slowly) in many cases anyway. McStas 2.0 introduced native 64bit support for windows also. The zip-bundle indeed contains several installer packages, namely: - mcstas-NSIS-2.0-mingw64.exe this is the kernel self-extracting installer - mcstas-comps-NSIS-2.0-mingw64.exe this is the component library self extracting installer - mcstas-2.0-win64/mcstas-tools-perl-NSIS-2.0-mingw64.exe self extracting installer containing the McStas GUI and perl based tools as you know them from McStas 1.x - mcstas-tools-python-mcrun-NSIS-2.0-mingw64.exe installer containing the python based mcrun. - mcstas-tools-python-mcplot-matplotlib-NSIS-2.0-mingw64.exe installer containing the python based mcplot with matplotlib-backend - mcstas-tools-python-mcplot-chaco-NSIS-2.0-mingw64.exe installer containing the python based mcplot with chaco-backend Each of these should be double-clicked which then starts a standard windows installation procedure, with checks for dependencies etc. If you just want a McStas-installation as you knew it from 1.12 then you should simply install kernel, components and perl tools. As a result you should now have two icons on your desktop: mcgui-2.0 and mcstas-shell-2.0. Double-clicking mcgui starts the GUI and mcstas-shell starts a command prompt with environment variables set for running mcstas smoothly. This includes adding the mcstas directory to the PATH environment variable. Instructions such as above for installing McStas on windows should definitely be put on the webpage _and_ in the README. We will see to it asap. Thanks for suggesting. I hope what I've just written goes some way to allay your frustrations. If not, please just ask. We're always happy to receive suggestions for improving McStas. cheers Erik On Wed, 2013-03-20 at 12:03 +0000, Krunoslav Prsa wrote: > Hello all, > > I am a very fresh user of McStas. I am having troubles getting McStas to work on my computer (Windows 64 bit). > > > 1) There is a simple installation file for windows for McStas version <= 1.12, however, there seems to be a problem (I get an error popup) with compatibility of c compiler cc.exe and 64 bit windows which I would expect everybody has nowadays. > > 2) Newer incarnations have 64 bit versions, however, at least the newest one (2.0) is a zip file consisting of several .exe files which don't actually give you a program once you install all of them. I have no idea whatsoever how this is supposed to be installed. > > 3) There are no contemporary installation instructions for Windows on the McStas webpage. Would it be possible to have them, at least in the README file within the installation zip file? > > 4) There seem to be some instructions on one of the mailing list's previous threads, but, since it is spread over several emails, I cannot really understand in which order to do what. > > > I understand that McStas is a complex program that took quite a few of man-years of volunteers' work to develop. It would still be extremely useful if the windows developer(s) or at least one of the more experienced users would invest 5 minutes to write 10 sentences about the order of installation of exe files and how to run the (gui) program afterwards. It would really save newbies like me a bit of initial frustration. > > Best wishes from Lausanne, > Kruno > > > ------ > Dr. Krunoslav Prsa, Postdoc > Laboratory for Quantum Magnetism, > ?cole Polytechnique F?d?rale de Lausanne > ----- > krunoslav.prsa at epfl.ch > http://lqm.epfl.ch > ----- > Office: +41 21 69 35407 > Mobile: +41 76 38 61799 > ----- > EPFL SB ICMP LQM > PH D2 375 (B?timent PH) > Station 3 > CH-1015 Lausanne > ----- > http://plan.epfl.ch/?room=PHD2375 > > > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -- Erik Bergb?ck Knudsen, Scientist | DTU | morituri NEXMAP, DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te phone: (+45) 2132 6655, mobile: (+45) 3123 6184 |<>-<>| salutant From krunoslav.prsa at epfl.ch Wed Mar 20 14:45:53 2013 From: krunoslav.prsa at epfl.ch (Krunoslav Prsa) Date: Wed, 20 Mar 2013 13:45:53 +0000 Subject: [mcstas-users] Clear instructions for 64-bit windows installation needed In-Reply-To: <1363784156.23140.41.camel@idril> References: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D32D@REXMF.intranet.epfl.ch> <1363784156.23140.41.camel@idril> Message-ID: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D412@REXMF.intranet.epfl.ch> Dear Eric, Thanks for your quick reply. However, that doesn't work for me. I installed the first three and I indeed get the mcgui and mcshell shortcuts on the desktop. However I receive the following error (see screenshot) "Windows can't open this file File: mcgui.pl" I guess I should either install Perl (if it is not contained in the installation?) or add something to the "path" system variable? Best wishes and once again thanks! Kruno -----Original Message----- From: Erik Bergb?ck Knudsen [mailto:erkn at fysik.dtu.dk] Sent: 20 March 2013 13:56 To: Krunoslav Prsa Cc: mcstas-users at mcstas.org Subject: Re: [mcstas-users] Clear instructions for 64-bit windows installation needed Dear Krunoslav, I am very sorry to hear that you're having problems installing McStas. We shall do our very best to help you. Perhaps a little bit of background is warranted. It was decide to move to a modular installation with several packages for McStas 2.0 for various reasons. Firstly, it would allow the more frequent updates to the component library to be made available to the users without waiting for a new kernel release. Secondly, it allows users to install kernel and components without installing GUI and plotting tools, should they wish to do so. (Frequently the case on cluster installations). Thirdly, it allows users to replace the old perl based tools with the newly developed python tools with additional features. Sadly this has also caused confusion among users as we've perhaps not documented the procedure sufficiently. Indeed, the now obsolescent McStas 1.12 series never explicitly supported 64 bit windows - but has been reported to work (albeit slowly) in many cases anyway. McStas 2.0 introduced native 64bit support for windows also. The zip-bundle indeed contains several installer packages, namely: - mcstas-NSIS-2.0-mingw64.exe this is the kernel self-extracting installer - mcstas-comps-NSIS-2.0-mingw64.exe this is the component library self extracting installer - mcstas-2.0-win64/mcstas-tools-perl-NSIS-2.0-mingw64.exe self extracting installer containing the McStas GUI and perl based tools as you know them from McStas 1.x - mcstas-tools-python-mcrun-NSIS-2.0-mingw64.exe installer containing the python based mcrun. - mcstas-tools-python-mcplot-matplotlib-NSIS-2.0-mingw64.exe installer containing the python based mcplot with matplotlib-backend - mcstas-tools-python-mcplot-chaco-NSIS-2.0-mingw64.exe installer containing the python based mcplot with chaco-backend Each of these should be double-clicked which then starts a standard windows installation procedure, with checks for dependencies etc. If you just want a McStas-installation as you knew it from 1.12 then you should simply install kernel, components and perl tools. As a result you should now have two icons on your desktop: mcgui-2.0 and mcstas-shell-2.0. Double-clicking mcgui starts the GUI and mcstas-shell starts a command prompt with environment variables set for running mcstas smoothly. This includes adding the mcstas directory to the PATH environment variable. Instructions such as above for installing McStas on windows should definitely be put on the webpage _and_ in the README. We will see to it asap. Thanks for suggesting. I hope what I've just written goes some way to allay your frustrations. If not, please just ask. We're always happy to receive suggestions for improving McStas. cheers Erik On Wed, 2013-03-20 at 12:03 +0000, Krunoslav Prsa wrote: > Hello all, > > I am a very fresh user of McStas. I am having troubles getting McStas to work on my computer (Windows 64 bit). > > > 1) There is a simple installation file for windows for McStas version <= 1.12, however, there seems to be a problem (I get an error popup) with compatibility of c compiler cc.exe and 64 bit windows which I would expect everybody has nowadays. > > 2) Newer incarnations have 64 bit versions, however, at least the newest one (2.0) is a zip file consisting of several .exe files which don't actually give you a program once you install all of them. I have no idea whatsoever how this is supposed to be installed. > > 3) There are no contemporary installation instructions for Windows on the McStas webpage. Would it be possible to have them, at least in the README file within the installation zip file? > > 4) There seem to be some instructions on one of the mailing list's previous threads, but, since it is spread over several emails, I cannot really understand in which order to do what. > > > I understand that McStas is a complex program that took quite a few of man-years of volunteers' work to develop. It would still be extremely useful if the windows developer(s) or at least one of the more experienced users would invest 5 minutes to write 10 sentences about the order of installation of exe files and how to run the (gui) program afterwards. It would really save newbies like me a bit of initial frustration. > > Best wishes from Lausanne, > Kruno > > > ------ > Dr. Krunoslav Prsa, Postdoc > Laboratory for Quantum Magnetism, > ?cole Polytechnique F?d?rale de Lausanne > ----- > krunoslav.prsa at epfl.ch > http://lqm.epfl.ch > ----- > Office: +41 21 69 35407 > Mobile: +41 76 38 61799 > ----- > EPFL SB ICMP LQM > PH D2 375 (B?timent PH) > Station 3 > CH-1015 Lausanne > ----- > http://plan.epfl.ch/?room=PHD2375 > > > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -- Erik Bergb?ck Knudsen, Scientist | DTU | morituri NEXMAP, DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te phone: (+45) 2132 6655, mobile: (+45) 3123 6184 |<>-<>| salutant -------------- next part -------------- A non-text attachment was scrubbed... Name: error_mcgui.jpg Type: image/jpeg Size: 36328 bytes Desc: error_mcgui.jpg URL: From pkwi at fysik.dtu.dk Wed Mar 20 14:51:30 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Wed, 20 Mar 2013 13:51:30 +0000 Subject: [mcstas-users] Clear instructions for 64-bit windows installation needed In-Reply-To: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D412@REXMF.intranet.epfl.ch> References: <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D32D@REXMF.intranet.epfl.ch> <1363784156.23140.41.camel@idril>, <8E1127CC45FC4D4C8434BA27AA3D3B8D17F5D412@REXMF.intranet.epfl.ch> Message-ID: Hi Krunoslav, Yes, you need a Perl, we recommend strawberry Perl and provide a set of extensions for that - so you should re-run the tools-installer after installing Perl. As I remember, all needed dependencies for running the various tools are described in the README inside the .zip you downloaded. (Perhaps not completely clearly written, but it's there.) Best and hope this helps, Peter Technical University of Denmark Department of Physics Neutrons and X-rays for Materials 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 Den 20/03/2013 kl. 14.46 skrev "Krunoslav Prsa" >: Dear Eric, Thanks for your quick reply. However, that doesn't work for me. I installed the first three and I indeed get the mcgui and mcshell shortcuts on the desktop. However I receive the following error (see screenshot) "Windows can't open this file File: mcgui.pl" I guess I should either install Perl (if it is not contained in the installation?) or add something to the "path" system variable? Best wishes and once again thanks! Kruno -----Original Message----- From: Erik Bergb?ck Knudsen [mailto:erkn at fysik.dtu.dk] Sent: 20 March 2013 13:56 To: Krunoslav Prsa Cc: mcstas-users at mcstas.org Subject: Re: [mcstas-users] Clear instructions for 64-bit windows installation needed Dear Krunoslav, I am very sorry to hear that you're having problems installing McStas. We shall do our very best to help you. Perhaps a little bit of background is warranted. It was decide to move to a modular installation with several packages for McStas 2.0 for various reasons. Firstly, it would allow the more frequent updates to the component library to be made available to the users without waiting for a new kernel release. Secondly, it allows users to install kernel and components without installing GUI and plotting tools, should they wish to do so. (Frequently the case on cluster installations). Thirdly, it allows users to replace the old perl based tools with the newly developed python tools with additional features. Sadly this has also caused confusion among users as we've perhaps not documented the procedure sufficiently. Indeed, the now obsolescent McStas 1.12 series never explicitly supported 64 bit windows - but has been reported to work (albeit slowly) in many cases anyway. McStas 2.0 introduced native 64bit support for windows also. The zip-bundle indeed contains several installer packages, namely: - mcstas-NSIS-2.0-mingw64.exe this is the kernel self-extracting installer - mcstas-comps-NSIS-2.0-mingw64.exe this is the component library self extracting installer - mcstas-2.0-win64/mcstas-tools-perl-NSIS-2.0-mingw64.exe self extracting installer containing the McStas GUI and perl based tools as you know them from McStas 1.x - mcstas-tools-python-mcrun-NSIS-2.0-mingw64.exe installer containing the python based mcrun. - mcstas-tools-python-mcplot-matplotlib-NSIS-2.0-mingw64.exe installer containing the python based mcplot with matplotlib-backend - mcstas-tools-python-mcplot-chaco-NSIS-2.0-mingw64.exe installer containing the python based mcplot with chaco-backend Each of these should be double-clicked which then starts a standard windows installation procedure, with checks for dependencies etc. If you just want a McStas-installation as you knew it from 1.12 then you should simply install kernel, components and perl tools. As a result you should now have two icons on your desktop: mcgui-2.0 and mcstas-shell-2.0. Double-clicking mcgui starts the GUI and mcstas-shell starts a command prompt with environment variables set for running mcstas smoothly. This includes adding the mcstas directory to the PATH environment variable. Instructions such as above for installing McStas on windows should definitely be put on the webpage _and_ in the README. We will see to it asap. Thanks for suggesting. I hope what I've just written goes some way to allay your frustrations. If not, please just ask. We're always happy to receive suggestions for improving McStas. cheers Erik On Wed, 2013-03-20 at 12:03 +0000, Krunoslav Prsa wrote: Hello all, I am a very fresh user of McStas. I am having troubles getting McStas to work on my computer (Windows 64 bit). 1) There is a simple installation file for windows for McStas version <= 1.12, however, there seems to be a problem (I get an error popup) with compatibility of c compiler cc.exe and 64 bit windows which I would expect everybody has nowadays. 2) Newer incarnations have 64 bit versions, however, at least the newest one (2.0) is a zip file consisting of several .exe files which don't actually give you a program once you install all of them. I have no idea whatsoever how this is supposed to be installed. 3) There are no contemporary installation instructions for Windows on the McStas webpage. Would it be possible to have them, at least in the README file within the installation zip file? 4) There seem to be some instructions on one of the mailing list's previous threads, but, since it is spread over several emails, I cannot really understand in which order to do what. I understand that McStas is a complex program that took quite a few of man-years of volunteers' work to develop. It would still be extremely useful if the windows developer(s) or at least one of the more experienced users would invest 5 minutes to write 10 sentences about the order of installation of exe files and how to run the (gui) program afterwards. It would really save newbies like me a bit of initial frustration. Best wishes from Lausanne, Kruno ------ Dr. Krunoslav Prsa, Postdoc Laboratory for Quantum Magnetism, ?cole Polytechnique F?d?rale de Lausanne ----- krunoslav.prsa at epfl.ch http://lqm.epfl.ch ----- Office: +41 21 69 35407 Mobile: +41 76 38 61799 ----- EPFL SB ICMP LQM PH D2 375 (B?timent PH) Station 3 CH-1015 Lausanne ----- http://plan.epfl.ch/?room=PHD2375 _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -- Erik Bergb?ck Knudsen, Scientist | DTU | morituri NEXMAP, DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te phone: (+45) 2132 6655, mobile: (+45) 3123 6184 |<>-<>| salutant _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Thu Mar 21 12:59:14 2013 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Thu, 21 Mar 2013 11:59:14 +0000 Subject: [mcstas-users] Python mcdisplay available Message-ID: <399A0F1A-27ED-46A3-91BF-2322B6A93E1A@fysik.dtu.dk> Hi all, As of today, our Python-based mcdisplay package is available via either * apt-get install mcstas-tools-python-mcdisplay-2.0 on debian-like systems (if you added our .deb repository) * yum install mcstas-tools-python-mcdisplay-2.0 (if you added our .rpm repository) - Or for manual download from the "/download/share" section of the web page. To make use of the package, you need an x3d browser on your system - we recommend Instant Player developed by the Fraunhofer Gesellschaft. (see http://www.instantreality.org) For more information including hints for configuring a combined perl/Python McStas environment, please check the home page at http://www.mcstas.org Best, Peter Peter Kj?r Willendrup Development engineer DTU Physics Technical University of Denmark [cid:image002.gif at 01CCCAF1.5E6331F0][cid:EC2A3CAB-AF57-4CEB-96B0-23F6DC35FE76 at fysik.dtu.dk] Department of Physics Neutrons and X-rays for Materials 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: nexmap.jpg Type: image/jpeg Size: 10708 bytes Desc: nexmap.jpg URL: From wokaoyan1981 at 126.com Thu Mar 28 09:44:58 2013 From: wokaoyan1981 at 126.com (=?GBK?B?s8LR5dbb?=) Date: Thu, 28 Mar 2013 16:44:58 +0800 (CST) Subject: [mcstas-users] invalid lau file Message-ID: <7a16b117.1f9df.13db02be29e.Coremail.wokaoyan1981@126.com> Hi all, I put the new Ca.lau file (see enclosure) generated by Crystallographica codes in "C:\McStas\lib\data" and then run a simulation reading Ca.lau for PowderN component. Unfortunately the system hints as following: PowderN: sample: line 271 has invalid definition ... PowderN:sample:File Ca.lau done (0 valid lines.) I carefully compared this Ca.lau file with other lau files in the data folder which could be read successfully by my model, but found nothing different in format. Could you please kindly tell me what's wrong with it and how to solve this problem? Thank you! Best, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ca.lau Type: application/octet-stream Size: 18040 bytes Desc: not available URL: From wokaoyan1981 at 126.com Fri Mar 29 04:02:04 2013 From: wokaoyan1981 at 126.com (=?GBK?B?s8LR5dbb?=) Date: Fri, 29 Mar 2013 11:02:04 +0800 (CST) Subject: [mcstas-users] (no subject) In-Reply-To: <84EF56FA-69E1-45EA-AD84-54784CE4CB2C@fysik.dtu.dk> References: <7a16b117.1f9df.13db02be29e.Coremail.wokaoyan1981@126.com> <84EF56FA-69E1-45EA-AD84-54784CE4CB2C@fysik.dtu.dk> Message-ID: <443d9046.5096.13db4184ec4.Coremail.wokaoyan1981@126.com> Hell Britt? Thank you very much for your reply! I add the formatting comments to my data file before the reflection lines, but it hints: PowderN: sample: Set multiplicity to 1 for lines [0:7] (d-spacing 1.94739 is duplicated 8 times) ... Here is the powderN component: SPLIT 10 COMPONENT sample = PowderN( reflections = "Ca.lau", format=Crystallographica, radius = 0.0015, yheight = 0.05, Vc = 23.55, sigma_abs = 2.56, sigma_inc = 0.4) AT (0, 0, 0.05) RELATIVE slit_beforesample (Vc, sig_abs,sigma_inc are not correct!) At 2013-03-29 01:16:16,"Britt Rosendahl Hansen" wrote: Hi Tom I don't know if anyone else replied to you already. You have to add the formatting comments to your data file before the reflection lines: # Format parameters: Crystallographica format # column_j 4 multiplicity 'j' # column_d 5 d-spacing 'd' in [Angs] # column_F2 7 norm of scattering factor |F|^2 in [fm^2] # column_h 1 # column_k 2 # column_l 3 # # h k l Mult. d-space 2Theta F-squared Regards, Britt On 28/03/2013, at 09.44, ??? wrote: Hi all, I put the new Ca.lau file (see enclosure) generated by Crystallographica codes in "C:\McStas\lib\data" and then run a simulation reading Ca.lau for PowderN component. Unfortunately the system hints as following: PowderN: sample: line 271 has invalid definition ... PowderN:sample:File Ca.lau done (0 valid lines.) I carefully compared this Ca.lau file with other lau files in the data folder which could be read successfully by my model, but found nothing different in format. Could you please kindly tell me what's wrong with it and how to solve this problem? Thank you! Best, Tom _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users | Britt Rosendahl Hansen | | Post doc | | DTU Physics | | Technical University of Denmark | | | Institut of Physics | | Fysikvej | | Bygning 307 | | 2800 Kongens Lyngby | | Mobile +45 2856 2708 | | broh at fysik.dtu.dk | | www.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: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ca.lau Type: application/octet-stream Size: 18306 bytes Desc: not available URL: