From pkwi at fysik.dtu.dk Fri Oct 2 22:45:53 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 2 Oct 2020 20:45:53 +0000 Subject: [mcstas-users] McStas presentation from the OpenACC summit now online Message-ID: <413ADA66-BF9F-4892-B469-9AB970D505BB@fysik.dtu.dk> Dear all, The McStas presentation from the OpenACC summit is now online on YouTube, see link below. OpenACC (see https://www.openacc.org) is a high-level, compiler-driven approach to GPU-acceleration, and in the video I give an overview about neutron scattering, McStas and how the team is porting the code to Nvidia GPU?s. https://www.youtube.com/watch?v=HDU-WRJUZXs&feature=youtu.be Hope you enjoy it. :-) Best, Peter Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark t[cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 pkwi at fysik.dtu.dk Fri Nov 27 16:06:36 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 27 Nov 2020 15:06:36 +0000 Subject: [mcstas-users] McStas 2.7 release Message-ID: Dear all, A new release of McStas, v. 2.7 has been built and is ready for download! Download and installation instructions are available via our GitHub download pages. Selected highligts from the release are listed below. The full list of changes is also available at http://mcstas.org/CHANGES_McStas. (A small PS: Our build for CentOS will lack NCrystal for the time being, there are some issues compiling. Talks have been initiated with the NCrystal authors and the missing RPM is expected during next week.) Changes in McStas v.2.7, November 27th, 2020 * McStas 2.7 is the 10th release in the 2.x series, provides minor incremental improvements and fixes various minor issues with McStas 2.6.1 * Thanks to all contributors of components, instruments etc.! This is what Open Source and McStas is all about! * Tools: * On macOS (from 11.0 Big Sur onwards), mcgui will assume light/dark mode with the system settings. (The change came from using the system python3 with our app/miniconda-distributed Qt libs etc.) * We now no longer officially support the perl/PGPLOT backend, these may or may not work on your system. * Platforms: * Nothing really new to report here. We still support 64bit Windows 10, all recent 64bit macOS including 11.0 Big Sur, Debian-based and RPM-based distros. (RPMs are built on/for CentOS, you may get varying milage elsewhere.) * Libraries: * Updated version 2.1.1 NCrystal library from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. * MCPL library from the same authors now included at v. 1.3.2. * Components: * Updated Union library from Mads Bertelsen, ESS DMSC. * Cyl_monitor.comp, enriched with angular limits and dynamic allocation. * Event_monitor_simple.comp, a simple ascii event-list monitor, good for debugging purposes * Instruments: * New "unit test" instruments for basic functionalities and key components. * Various new instruments used for comparison with the forthcoming McStas 3.0 We hope you will enjoy this new release!!! (And keep an eye out for 3.0, it is almost also there...) Best, Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 Nicolas.MARTIN at cea.fr Sun Dec 13 17:22:47 2020 From: Nicolas.MARTIN at cea.fr (MARTIN Nicolas) Date: Sun, 13 Dec 2020 16:22:47 +0000 Subject: [mcstas-users] [McStas 2.7] Pol_FieldBox with tabled magnetic field Message-ID: <08B29520AEF8774A8BCF220D99EE9D674D5EDD31@e-exdage-a1.extra.cea.fr> Dear McStas users, I am currently trying to simulate the effect of a guide field on the beam polarization of a SANS instrument, using McStas 2.7 on Windows 10 64 bits. To that end, I calculate this field analytically on a regular 3D grid and export the output in an ASCII text file. This file is then used as the argument of a Pol_FieldBox component. My test instrument is compiling well, besides the following warning message: C:\mcstas-2.7\lib\tools\Python\mcrun\..\mccodelib\..\..\..\optics\Pol_FieldBox.comp: At top level: C:\mcstas-2.7\lib\tools\Python\mcrun\..\mccodelib\..\..\..\optics\Pol_FieldBox.comp:76:19: warning: ISO C99 requires whitespace after the macro name ((double *)field_parameters)[2]=Bz; Note that this doesn't prevent me from accessing the "Start simulation" window of the mcgui. Although McStas seems to read the content of my field file correctly (number of points and step sizes are OK), I get the following error message when trying to perform the simulation: Opening input file 'fieldbox.dat' (Table_Read_Offset) interpolator_load: Axis 0: step=0.004, unique values=12220, from file 'fieldbox.dat'. interpolator_load: Axis 1: step=0.004, unique values=1110, from file 'fieldbox.dat'. interpolator_load: Axis 2: step=0.004, unique values=100, from file 'fieldbox.dat'. interpolator: file 'fieldbox.dat' with 12221 points. Space is 3D, Field is 3D. Using method 'kdtree'. interpolator_interpolate: ERROR: invalid interpolator method from file 'fieldbox.dat'. The result is exactly the same with the "flipfield.dat" file (provided in the "\\mcstas-2.7\lib\data" folder). My instrument and field files are attached to this e-mail. Has anyone already encountered this interpolator issue? Any clue to fix it? Should I arrange my input data in a different way? Use a different number of decimal places? Many thanks in advance for your help, kind regards, Nicolas _______________________________ Dr. Nicolas MARTIN Laboratoire L?on Brillouin UMR12 CEA-CNRS B?t 563 CEA Saclay - p. 105 91191 Gif-sur-Yvette Cedex France E-mail: nicolas.martin at cea.fr / nicolas.martin84 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fieldbox.dat Type: application/octet-stream Size: 449948 bytes Desc: fieldbox.dat URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GappedGuideField.instr Type: application/octet-stream Size: 1350 bytes Desc: GappedGuideField.instr URL: From erkn at fysik.dtu.dk Mon Dec 14 12:58:09 2020 From: erkn at fysik.dtu.dk (Erik B Knudsen) Date: Mon, 14 Dec 2020 12:58:09 +0100 Subject: [mcstas-users] [McStas 2.7] Pol_FieldBox with tabled magnetic field In-Reply-To: <08B29520AEF8774A8BCF220D99EE9D674D5EDD31@e-exdage-a1.extra.cea.fr> References: <08B29520AEF8774A8BCF220D99EE9D674D5EDD31@e-exdage-a1.extra.cea.fr> Message-ID: <855f0a3c-590e-68a5-8355-980cee9072fc@fysik.dtu.dk> Dear Nicola, Thank you for the report. This ought to work, but I will take another look at the instrument you kindly supplied, and report back. The first warning message about macros and whitespace can safely be ignored. I merely means, that strictly speaking, the generated code does not quite adhere to the c99-standard, in that some macros do not end up having correct whitespace. ...but for the real issue - hang on and I will report back soon. cheers Erik On 13/12/2020 17:22, MARTIN Nicolas wrote: > Dear McStas users, > > I am currently trying to simulate the effect of a guide field on the > beam polarization of a SANS instrument, using McStas 2.7 on Windows 10 > 64 bits. > > To that end, I calculate this field analytically on a regular 3D grid > and export the output in an ASCII text file. > > This file is then used as the argument of a /Pol_FieldBox/ component. > > > My test instrument is compiling well, besides the following warning message: > > > C:\mcstas-2.7\lib\tools\Python\mcrun\..\mccodelib\..\..\..\optics\Pol_FieldBox.comp: > At top level: > > C:\mcstas-2.7\lib\tools\Python\mcrun\..\mccodelib\..\..\..\optics\Pol_FieldBox.comp:76:19: > warning: ISO C99 requires whitespace after the macro name > > ((double *)field_parameters)[2]=Bz; > > > Note that this doesn't prevent me from accessing the "/Start > simulation/" window of the /mcgui/. > > Although McStas seems to read the content of my field file correctly > (number of points and step sizes are OK), I get the following error > message when trying to perform the simulation: > > Opening input file 'fieldbox.dat' (Table_Read_Offset) > interpolator_load: Axis 0: step=0.004, unique values=12220, from file > 'fieldbox.dat'. > interpolator_load: Axis 1: step=0.004, unique values=1110, from file > 'fieldbox.dat'. > interpolator_load: Axis 2: step=0.004, unique values=100, from file > 'fieldbox.dat'. > interpolator: file 'fieldbox.dat' with 12221 points. Space is 3D, Field > is 3D. Using method 'kdtree'. > interpolator_interpolate: ERROR: invalid interpolator method? from file > 'fieldbox.dat'. > > The result is exactly the same with the "/flipfield.dat/" file (provided > in the "/\\mcstas-2.7\lib\data/" folder). > > > My instrument and field files are attached to this e-mail. > > > Has anyone already encountered this interpolator issue? Any clue to fix it? > > Should I arrange my input data in a different way? Use a different > number of decimal places? > > > Many thanks in advance for your help, kind regards, > > Nicolas > > _______________________________ > Dr. Nicolas MARTIN > Laboratoire L?on Brillouin > UMR12 CEA-CNRS > B?t 563 CEA Saclay - p. 105 > 91191 Gif-sur-Yvette Cedex > France > _/E-mail:/_ nicolas.martin at cea.fr / > nicolas.martin84 at gmail.com > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > -- Erik Bergb?ck Knudsen, Research Engineer | DTU | morituri NEXMAP, DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te phone: (+45) 2132 6655 |<>-<>| salutant From Nicolas.MARTIN at cea.fr Mon Dec 14 21:23:31 2020 From: Nicolas.MARTIN at cea.fr (MARTIN Nicolas) Date: Mon, 14 Dec 2020 20:23:31 +0000 Subject: [mcstas-users] [McStas 2.7] Pol_FieldBox with tabled magnetic field Message-ID: <08B29520AEF8774A8BCF220D99EE9D674D5EDE19@e-exdage-a1.extra.cea.fr> Dear Erik, many thanks for your swift reply! Meanwhile, I've started over from "Test_pol_tabled.instr", changed it stepwise, and everything works like a charm! The input magnetic field file was actually correct (besides a factor 1e4 error on the field amplitudes :-D), so I guess I was placing the "Pol_Bfield" component in a wrong way or something like that. Moreover, "Pol_Bfield_stop" was missing, perhaps explaining the interpolation error (?). Cheers, Nicolas _______________________________ Dr. Nicolas MARTIN Laboratoire L?on Brillouin UMR12 CEA-CNRS B?t 563 CEA Saclay - p. 105 91191 Gif-sur-Yvette Cedex France E-mail: nicolas.martin at cea.fr / nicolas.martin84 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GappedGuideField.instr Type: application/octet-stream Size: 1485 bytes Desc: GappedGuideField.instr URL: From erkn at fysik.dtu.dk Mon Dec 14 23:43:54 2020 From: erkn at fysik.dtu.dk (Erik B Knudsen) Date: Mon, 14 Dec 2020 23:43:54 +0100 Subject: [mcstas-users] [McStas 2.7] Pol_FieldBox with tabled magnetic field In-Reply-To: <08B29520AEF8774A8BCF220D99EE9D674D5EDE19@e-exdage-a1.extra.cea.fr> References: <08B29520AEF8774A8BCF220D99EE9D674D5EDE19@e-exdage-a1.extra.cea.fr> Message-ID: <5c9a5b13-9fd6-d2a1-17e5-2a677e83851f@fysik.dtu.dk> Dear Nicolas, Well that was the easiest bug to fix in a long time :-). The missing Pol_Bfield_stop would explain it. The system is a bit sensitive to form I'm afraid. Anyway great to hear that things are working! cheers Erik On 14/12/2020 21:23, MARTIN Nicolas wrote: > Dear Erik, > > many thanks for your swift reply! > Meanwhile, I've started over from "/Test_pol_tabled.instr/", changed it > stepwise, and everything works like a charm! > The input magnetic field file was actually correct (besides a factor 1e4 > error on the field amplitudes :-D), so I guess I was placing the > "/Pol_Bfield/" component in a wrong way or something like that. > Moreover, "/Pol_Bfield_stop/" was missing, perhaps explaining the > interpolation error (?). > > Cheers, > Nicolas > _______________________________ > Dr. Nicolas MARTIN > Laboratoire L?on Brillouin > UMR12 CEA-CNRS > B?t 563 CEA Saclay - p. 105 > 91191 Gif-sur-Yvette Cedex > France > _/E-mail:/_ nicolas.martin at cea.fr / > nicolas.martin84 at gmail.com > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > -- Erik Bergb?ck Knudsen, Research Engineer | DTU | morituri NEXMAP, DTU Fysik, DK-2800 Kgs. Lyngby, Denmark |<>-<>| te phone: (+45) 2132 6655 |<>-<>| salutant From pkwi at fysik.dtu.dk Tue Dec 15 13:49:50 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 15 Dec 2020 12:49:50 +0000 Subject: [mcstas-users] McStas 3.0 release - modernised code-generator and GPU support Message-ID: <0DCF3285-4355-4AA1-92E0-EE1C8EAC3E0B@fysik.dtu.dk> Dear all, McStas, v. 3.0, our next-generation code generator and support for NVIDIA GPU's via OpenACC has been built and is ready for download! Download and installation instructions are available via our GitHub download pages. Selected highligts from the release are listed below. The full list of changes is also available at http://mcstas.org/CHANGES_McStas. Thanks: * Thanks to all members of the joint McStas-McXtrace team, you guys ROCK! * A special thanks to Jakob Garde who has continued to contribute (unpaid!) to the 3.0 efforts even after leaving DTU. * Thanks to Guido Juckeland (HZDR,DE) and Sebastian Alfthan (CSC,FI) who were behind the GPU Hackathons we participated in * Thanks to our NVIDIA mentors Vishal Metha, Christian Hundt and Alexey RomanenkoMain new features and changes: 1. New code-generation scheme based on functions instead of #defines, which brings * Much improved compilation-times, the code is better suited for modern compilers * In most cases a speed-up of order 20% * The neutron _particle is now represented by a struct * The component types and instances are also represented by structs * New instrument section of USERVARS %{ double example_flag; %} which enriches the _particle struct * Further, the new cogen implements support for Nvidia GPU's, for details see point 2 below. 2. Support for OpenACC acceleration on NVIDIA GPU's on Linux systems * #pragma driven, inserted by the code-generation, but also implemented in libs and comps * Speedups measured using top-notch NVIDIA V100 datacenter cards are in the range of 10-600 with respect to a single-core of a modern CPU. * Platform support / compiler configuration: * Required compiler for GPU/OpenACC: NVIDIA HPC SDK 20.x or newer. Community edition works fine * Required GPU hardware: NVIDIA Tesla card + configured driver * Windows: At this point UNSUPPORTED for GPU/OpenACC. Support should come with WSL 2.0 or via native support from NVIDIA. * macOS: At this point UNSUPPORTED for OpenACC since NVIDIA does not ship a package for this platform. * Linux: Full acceleration support with GPU, and with CPU/multicore. * Tool support * On Linux and macOS mcrun is preconfigured so that mcrun -c --openacc compiles with: * Linux: nvc -ta:tesla,managed,deepcopy -DOPENACC * Linux: You may configure for use on CPU/multicore via: nvc -ta:multicore -DOPENACC * The --funnel option can be used to launch the FUNNEL simulation flow, see description below. * For both of the above, adding -Minfo:accel will output verbose information on parallelisation * In mcgui, the mcrun --openacc configuration can be selected via the preferences * Both mcgui and mcrun allow combining --openacc and --mpi if you have multiple GPU's available. 3. Special McStas 3.0 grammar for mixed CPU/GPU mode: * A "FUNNEL" mode has been added, which allows * Mixed GPU/CPU mode, were sections of the instrument are executed on each device type, with copying of neutron-bunches back and forth. * When this instrument grammar is specified, it signifies that the component should be executed on CPU rather than GPU. CPU SPLIT 10 COMPONENT Sample = Something() * Sections before and after that are not marked CPU will be executed on GPU. * If a component includes the NOACC token in the component header, the CPU-mode is forced through the compilation, as it signifies that the component does NOT support GPU. This is for the time being the case for Union_master. (Support is expected to come with McStas 3.1) 4. Interoperability with McStas 2.7 * Support for MCPL event interchange has been added through MCPL_input and MCPL_output components, that work both on CPU and GPU for McStas 3.0. Note however that targeting GPU, MCPL_input reads ALL particle events durin INITIALIZE and MCPL_output writes ALL particle events during SAVE, whereas when using CPU in 3.0 or 2.7, reads and writes happen during the TRACE flow. 5. Known limitations * The Union subsystem works on CPU only for now, but can be used in the mixed GPU/CPU funnnel mode as mentioned above. Union_master is a NOACC component. * The same solution is applied in use of the NCrystal_sample and will eventually come for Sample_nxs. * Not all features of all components correspond to those from McStas 2.7, but all essential components have beenfully ported from the 2.7 tree to the 3.0 tree. Hence, some parts distributed with McStas 2.7 will either not exist in the 3.0 release or may not function, due to either: (1) very specialised features (2) maintainability issues or (3) use ofcomplex algorithms. * Generally, most components/instruments are now ported to our OpenACC based GPU-technology, but you likely may find combinations of use that slipped through our not fully exhaustive test-suite. Missing support may come in the form of either * Code that does not compile * Instruments that segfaults during execution * Instruments or components that produce obscure results * At the time of release, the nightly tests show that * McStas 3.0 ships with 211 instruments that succesfully compiles * These instruments use 147 of our components * We don't ship an updated set of manuals for McStas 3.0, but essential documentation is available on the McCode GitHub wiki Seasons greetings - we hope you will enjoy this new release!!! Best, Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 michal.dembski-villalta at tum.de Tue Dec 15 21:20:56 2020 From: michal.dembski-villalta at tum.de (Dembski-Villalta, Michal Piotr) Date: Tue, 15 Dec 2020 20:20:56 +0000 Subject: [mcstas-users] [McStas 2.7] NCrystal sample problem after update In-Reply-To: <14e583070bb444f7928c638ff975caa7@tum.de> References: <14e583070bb444f7928c638ff975caa7@tum.de> Message-ID: <8e9aee9737514135b212f870bd9c8abc@tum.de> Dear McStas users, I'm writing with a problem concerning the use of NCrystal with the new McStas 2.7. We are trying to use McStas to simulate a beamline at a TAS instrument, currently trying to simulate single crystal samples and phonon scattering. The same .instr file I used for McStas 2.6.1 and NCrystal 1.0.0, which came with it, worked fine for both a sample declared directly with McStas and an identical sample using NCrystal. However, after performing a clean installation of McStas 2.7 with new NCrystal that came with it, it works only with the McStas sample, with NCrystal sample not allowing to put in the parameters for the simulation. I couldn't find a solution for it, therefore I would be grateful for any help with it. Please find attached: the windows for parameters before simulation, the .instr file, Log from two simulations (McStas and NCrystal samples, one by one) and the sample declarations from the .instr file. System: Win10, WSL1, Ubuntu 18.04 LTS Kindly, Micha? Dembski-Villalta -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Log.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Sample_declarations.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Instrument_Params.png Type: image/png Size: 83903 bytes Desc: Instrument_Params.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Michal_DV_Instr_draft.instr Type: application/octet-stream Size: 22895 bytes Desc: Michal_DV_Instr_draft.instr URL: From pkwi at fysik.dtu.dk Wed Dec 16 07:32:56 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 16 Dec 2020 06:32:56 +0000 Subject: [mcstas-users] [McStas 2.7] NCrystal sample problem after update In-Reply-To: <8e9aee9737514135b212f870bd9c8abc@tum.de> References: <14e583070bb444f7928c638ff975caa7@tum.de> <8e9aee9737514135b212f870bd9c8abc@tum.de> Message-ID: <7A0D5ED3-2928-4CCC-9836-F77DAC1AC485@fysik.dtu.dk> Dear Micha?, As I remember, I built the McStas 2.7 release on Ubuntu 20.04, and perhaps there is a binary-compatibility issue with the NCrystal shared libs when running on 18.04. I will investigate this further and come back to you again. Best, Peter On 15 Dec 2020, at 21.20, Dembski-Villalta, Michal Piotr > wrote: Dear McStas users, I?m writing with a problem concerning the use of NCrystal with the new McStas 2.7. We are trying to use McStas to simulate a beamline at a TAS instrument, currently trying to simulate single crystal samples and phonon scattering. The same .instr file I used for McStas 2.6.1 and NCrystal 1.0.0, which came with it, worked fine for both a sample declared directly with McStas and an identical sample using NCrystal. However, after performing a clean installation of McStas 2.7 with new NCrystal that came with it, it works only with the McStas sample, with NCrystal sample not allowing to put in the parameters for the simulation. I couldn?t find a solution for it, therefore I would be grateful for any help with it. Please find attached: the windows for parameters before simulation, the .instr file, Log from two simulations (McStas and NCrystal samples, one by one) and the sample declarations from the .instr file. System: Win10, WSL1, Ubuntu 18.04 LTS Kindly, Micha? Dembski-Villalta _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 pkwi at fysik.dtu.dk Wed Dec 16 13:20:18 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 16 Dec 2020 12:20:18 +0000 Subject: [mcstas-users] [McStas 2.7] NCrystal sample problem after update In-Reply-To: <7A0D5ED3-2928-4CCC-9836-F77DAC1AC485@fysik.dtu.dk> References: <14e583070bb444f7928c638ff975caa7@tum.de> <8e9aee9737514135b212f870bd9c8abc@tum.de> <7A0D5ED3-2928-4CCC-9836-F77DAC1AC485@fysik.dtu.dk> Message-ID: <5FAA0829-6237-48D6-A9E5-B1D55AF8FFB7@fysik.dtu.dk> Hello again Micha?, I have reproduced your issue, and indeed it is caused by a mismatch between libc versions for Ubuntu 18.04 and 20.04. I have rebuilt the mcstas-ncrystal-2.7 package on 18.04, you may download and install it manually from http://download.mcstas.org/mcstas-2.7/Linux/debian/mcstas-ncrystal-2.7-deb64.deb. (The package is tested to work OK both on 18.04 and 20.04 and has been uploaded to the mccode.org repo also.) Unfortunately the version of NCrystal built from for McStas 2.7 has an issue that will attempt to open the datafiles in ?rw? mode, which becomes an issue when the files are located under /usr/share with root ownership? A simple functional workaround is to copy the datafiles to the simulation working directory? - In conclusion, I am planning to release an update-release 2.7.1 early in January that will fix this and other minor issues. Best, Peter On 16 Dec 2020, at 07.32, Peter Kj?r Willendrup > wrote: Dear Micha?, As I remember, I built the McStas 2.7 release on Ubuntu 20.04, and perhaps there is a binary-compatibility issue with the NCrystal shared libs when running on 18.04. I will investigate this further and come back to you again. Best, Peter On 15 Dec 2020, at 21.20, Dembski-Villalta, Michal Piotr > wrote: Dear McStas users, I?m writing with a problem concerning the use of NCrystal with the new McStas 2.7. We are trying to use McStas to simulate a beamline at a TAS instrument, currently trying to simulate single crystal samples and phonon scattering. The same .instr file I used for McStas 2.6.1 and NCrystal 1.0.0, which came with it, worked fine for both a sample declared directly with McStas and an identical sample using NCrystal. However, after performing a clean installation of McStas 2.7 with new NCrystal that came with it, it works only with the McStas sample, with NCrystal sample not allowing to put in the parameters for the simulation. I couldn?t find a solution for it, therefore I would be grateful for any help with it. Please find attached: the windows for parameters before simulation, the .instr file, Log from two simulations (McStas and NCrystal samples, one by one) and the sample declarations from the .instr file. System: Win10, WSL1, Ubuntu 18.04 LTS Kindly, Micha? Dembski-Villalta _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 frontzekmd at ornl.gov Mon Dec 21 18:21:16 2020 From: frontzekmd at ornl.gov (Frontzek, Matthias D.) Date: Mon, 21 Dec 2020 17:21:16 +0000 Subject: [mcstas-users] FW: Problems downloading the McStas 3.0 for Windows64 bit In-Reply-To: References: Message-ID: Hi, I tried to download the latest McStas version, but get the message that the url was not found. Can you please check? Thank you, Matthias Matthias D. Frontzek WAND? Instrument Scientist Neutron Scattering Divison 1 Bethel Valley Road, Bldg. 7962, Rm. 201 Oak Ridge, TN 37831-6393 +1 865 333 2613 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture121.png Type: image/png Size: 108492 bytes Desc: Picture121.png URL: From pkwi at fysik.dtu.dk Mon Dec 21 18:51:04 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Mon, 21 Dec 2020 17:51:04 +0000 Subject: [mcstas-users] Problems downloading the McStas 3.0 for Windows64 bit In-Reply-To: References: Message-ID: <5BA2322F-366B-485E-B6D3-2992A11C1185@fysik.dtu.dk> Dear Matthias, This URL: http://download.mcstas.org/mcstas-3.0/Windows/McStas-Metapackage-3.0-win64.exe seems to work OK for me? Does anything change if you browse your way from e.g. http://download.mcstas.org/mcstas-3.0 ? Could it be ORNL has extra security browsing non-SSL web servers for .exe files? (Which would in fact make total sense.) If need be, I can try putting the .exe somewhere on our GitHub for you. Best, Peter On 21 Dec 2020, at 18.21, Frontzek, Matthias D. > wrote: Hi, I tried to download the latest McStas version, but get the message that the url was not found. Can you please check? Thank you, Matthias Matthias D. Frontzek WAND? Instrument Scientist Neutron Scattering Divison 1 Bethel Valley Road, Bldg. 7962, Rm. 201 Oak Ridge, TN 37831-6393 +1 865 333 2613 [cid:092E3F7C-A49B-4E87-8309-111C96152DDD]_______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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: Picture121.png Type: image/png Size: 108492 bytes Desc: Picture121.png 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 Ran.Tang at frm2.tum.de Mon Dec 21 18:21:54 2020 From: Ran.Tang at frm2.tum.de (rtang) Date: Mon, 21 Dec 2020 18:21:54 +0100 Subject: [mcstas-users] Problems downloading the McStas 3.0 for Windows64 bit In-Reply-To: <5BA2322F-366B-485E-B6D3-2992A11C1185@fysik.dtu.dk> References: <5BA2322F-366B-485E-B6D3-2992A11C1185@fysik.dtu.dk> Message-ID: <4303d9c4-82f5-b474-d08e-a8ef01977e4c@frm2.tum.de> Dear Peter, thank you very much for the help. I had the same problem as Matthias had, and I found out that the link from the GitHub page /(*https://github.com/McStasMcXtrace/McCode/blob/master/INSTALL-McStas-3.0/Windows/README.md*) /is slightly different from the correct one you wrote in the email, namely it had "windows" rather than "Windows". I copy-pasted the link from GitHub and corrected into "Windows" and it worked fine. Best Ran Am 21.12.2020 um 18:51 schrieb Peter Kj?r Willendrup: > Dear Matthias, > > > This URL: > http://download.mcstas.org/mcstas-3.0/Windows/McStas-Metapackage-3.0-win64.exe?seems > to work OK for me? > > Does anything change if you browse your way from e.g. > http://download.mcstas.org/mcstas-3.0 > ?? > > > Could it be ORNL has extra security browsing non-SSL web servers for > .exe files? (Which would in fact make total sense.) > > If need be, I can try putting the .exe somewhere on our GitHub for you. > > > Best, > > Peter > > >> On 21 Dec 2020, at 18.21, Frontzek, Matthias D. > > wrote: >> >> Hi, >> I tried to download the latest McStas version, but get the message >> that the url was not found. Can you please check? >> Thank you, >> Matthias >> Matthias D. Frontzek >> WAND? Instrument Scientist >> Neutron Scattering Divison >> 1 Bethel Valley Road, Bldg. 7962, Rm. 201 >> Oak Ridge, TN 37831-6393 >> +1 865 333 2613 >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > > > Peter Kj?r Willendrup > Forskningsingeni?r, Specialkonsulent > N?stformand for DTU Fysik LSU > > DTU Physics > > > > > > Technical University of Denmark > > > > > > > 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 > > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- Mr. Ran Tang, M.Sc. Technical Uniersity of Munich (TUM) Heinz Maier-Leibnitz Zentrum (MLZ) & Physics Department E21 James-Franck-Stra?e 1, D-85748 Garching Room: PH 1182 Tel: +49 (0)89 289 54744 Fax: +49 (0)89 289 14724 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture121.png Type: image/png Size: 108492 bytes Desc: not available 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: From pkwi at fysik.dtu.dk Mon Dec 21 19:22:59 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Mon, 21 Dec 2020 18:22:59 +0000 Subject: [mcstas-users] Problems downloading the McStas 3.0 for Windows64 bit In-Reply-To: <5BA2322F-366B-485E-B6D3-2992A11C1185@fysik.dtu.dk> References: <5BA2322F-366B-485E-B6D3-2992A11C1185@fysik.dtu.dk> Message-ID: Hi again Matthias, I didn?t notice at first, but the difference between the two links is simply w vs. W in windows. Both should work now, there is a symlink in place. Best Peter On 21 Dec 2020, at 18.51, Peter Kj?r Willendrup > wrote: Dear Matthias, This URL: http://download.mcstas.org/mcstas-3.0/Windows/McStas-Metapackage-3.0-win64.exe seems to work OK for me? Does anything change if you browse your way from e.g. http://download.mcstas.org/mcstas-3.0 ? Could it be ORNL has extra security browsing non-SSL web servers for .exe files? (Which would in fact make total sense.) If need be, I can try putting the .exe somewhere on our GitHub for you. Best, Peter On 21 Dec 2020, at 18.21, Frontzek, Matthias D. > wrote: Hi, I tried to download the latest McStas version, but get the message that the url was not found. Can you please check? Thank you, Matthias Matthias D. Frontzek WAND? Instrument Scientist Neutron Scattering Divison 1 Bethel Valley Road, Bldg. 7962, Rm. 201 Oak Ridge, TN 37831-6393 +1 865 333 2613 [cid:092E3F7C-A49B-4E87-8309-111C96152DDD]_______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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 _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent N?stformand for DTU Fysik LSU DTU Physics [cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk] Technical University of Denmark [cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk] 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: Picture121.png Type: image/png Size: 108492 bytes Desc: Picture121.png 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: