From pkwi at fysik.dtu.dk Fri Jan 24 14:31:25 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 24 Jan 2020 13:31:25 +0000 Subject: [mcstas-users] McStas 2.6 release Message-ID: Dear all, A new release of McStas, v. 2.6 has been built and is ready for download! Download and installation instructions are available via our GitHub download pages (https://github.com/McStasMcXtrace/McCode/tree/mcstas-2.6-release/INSTALL-McStas) Highligts from the release are listed below. Greetings from the McStas team - hope you will enjoy this new release! :-) On behalf of the McStas team, 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 Changes in McStas v.2.6, January 24th, 2020 McStas 2.6 is the eight release in the 2.x series and fixes various issues with McStas 2.5, plus new developments. Thanks: - Thanks to all contributors of components, instruments etc.! This is what Open Source and McStas is all about! Installation: - Our install docs are now available on the McCode GitHub page at https://github.com/McStasMcXtrace/McCode/tree/master/INSTALL-McStas Fixes of issues from last release: - A number of issues from 2.5 were corrected, see the relevant GitHub issues for details: - https://github.com/McStasMcXtrace/McCode/issues?utf8=?&q=is%3Aissue+is%3Aclosed+label%3A%22McStas+2.5%22+ Plus lots of work in general: https://github.com/McStasMcXtrace/McCode/issues?page=1&q=is%3Aissue+is%3Aclosed++project%3AMcStasMcXtrace%2FMcCode%2F5&utf8=? Tools: - As for the earlier few releases the default set of tools are Python-based and developed by Jakob Garde, DTU. The Perl ones are still around as a backup solution, handy for those that prefer "the oldschool way" - See https://github.com/McStasMcXtrace/McCode/wiki/User-documentation-for-the-2017--Python-tool-set for usage - On Unix platforms, the Perl tools are accessible by adding .pl to the wanted tool (mcgui.pl etc.) - On Windows, the Perl tools are accessible by adding -pl to the wanted tool (mcgui-pl etc.) - BUT: Please use the Python tools and provide feedback rather than sticking with the Perl! :-) - Contribution from Tobias Weber ILL: Python-version of mcresplot. Platforms: - Nothing really new to report here. We still support 64bit Windows 10, all recent 64bit macOS, Debian-based and RPM-based distros (RPMs are built on/for CentOS, you may get varying milage elsewhere.) Libraries: - Updated version 1.0.0 NCrystal library from T. Kittelmann (ESS) and X.X. Cai (CSNS), distributed with McStas on Unix platforms only. To use it, carry out the below steps: mcstas:~/NCryst$ mcstas-2.6-environment mcstas:~/NCryst$ source $MCSTAS/ncrystal/setup.sh mcstas:~/NCryst$ ncrystal_preparemcstasdir mcstas:~/NCryst$ cp $MCSTAS/examples/NCrystal_example_mcstas.instr . mcstas:~/NCryst$ mcrun -c NCrystal_example_mcstas.instr The NCrystal library from this version of McStas also includes the nice ncrystal_inspectfile python tool that allows to quickly visualise scattering-kernel data from .ncmat, .nxs, .lau and .laz files. To use that: mcstas:~/NCryst$ mcstas-2.6-environment mcstas:~/NCryst$ source $MCSTAS/ncrystal/setup.sh mcstas:~/NCryst$ ncrystal_inspectfile $NCRYSTALDIR/data/Ca_sg225.ncmat - MCPL library from the same authors now included at v. 1.3.0. The distributed version of MCPL now includes the python-based pymcpltool command that can e.g. be used to extract gaussian statistics from MCPL files. McStas now ships the mcpl2phits and phits2mcpl tools (mcpl2ssw and ssw2mcpl have been included since mcstas-2.3). - Updated version of the NXS lib from Mirko Boin HZB. Components: - Updated Union library from Mads Bertelsen, ESS DMSC including: - New geometries, mesh (for stl file input in Union setups) and cone (e.g. relevant for describing anvils in pressure cells. - New AF_HB_1D_process for modelling 1D antiferromagnetic Heisenberg chains and PhononSimple_process for modelling single-branchg acoustic phonons ala Phonon_simple - New SINE2020-developed Union physics processes from Victor Laliena, Uni Zaragoza: Texture_process.comp and IncoherentPhonon_process.comp. See https://doi.org/10.3233/JNR-190117. - Shieldinglogger-components from Rodion Kolevatov, IFE for estimating gamma-production in guides: - Contributions Dose_calculator and Shielding_calculator - Patched versions of optics-components: Elliptic_guide_gravity_shieldinglogger, Guide_channeled_shieldinglogger, Guide_curved_shieldinglogger, Guide_gravity_shieldinglogger, Guide_shieldinglogger - Components patched / derived from the "scatterlogger" framework to model Ni and Ti layers seperately: Shielding_log_iterator_Ni_new, Shielding_log_iterator_Ti_new, Shielding_log_iterator_stop, Shielding_log_iterator_total, Shielding_logger.comp, Shielding_logger_stop.comp. - See https://doi.org/10.3233/JNR-190123, https://doi.org/10.1016/j.nima.2018.12.069 and https://doi.org/10.3233/JNR-180088 - Please note that the included Shielding- and Dose- calculators will only give sensible for guides with borosilicate glass substrate. If the substrate is, e.g. copper, the dose rates from neutrons transmitted through the coating and captured in the substrate will overshoot the coating contribution significantly, so that shielding has to be enforced by few tens of centimeters of concrete. - Guide_anyshape_r additions from Peter Link MLZ. Allows describing geometry in OFF format with reflectivity "per" face. Test instrument is Test_guides which has been updated to include this modified component. - Vertical_Bender from Andrew Jackson ESS and Richard Heenan STFC. Allows modelling a multi-channel bender that curves vertically down. - SANS_spheres2 by Peter Willendrup, derived from Henrich Frilinghaus' SANS_benchmark2. More realistic cross-section calculations than from e.g. Sans_spheres. templateSANS2.instr is the related test instrument. - Updated version of Sample_nxs from Mirko Boin HZB. - Guide_simple is identical to Guide except from not having OFF library support. Common with forthcoming McStas 3.0 beta release with GPU support. - Elliptic_guide_gravity promoted from contrib to optics since Mads Bertelsen is full member of McStas dev team. - PolAnalyser_ideal and Set_pol moved from misc to optics. - NPI_tof_theta_monitor is in contrib, was by mistace placed in monitors before. - Single_magnetic_crystal.comp is an experimental magnetic csingle crystal model. Its operational model is based on that of Single_crystal.comp but supports SF and NSF magnetic scattering. The present model only supports the SF-NSF paradigm along a given reference vector. - PSD_monitor_4PI_spin.comp is a version of PSD_monitor_4PI but with separate SF- and NSF-channels Instruments: - Union_test_texture.instr demonstrates use of Texture_process.comp by Victor Laliena. To be used with datafile "coef_Four_L2.txt" found in the installation data-folder. This datafile contains texture information on Zr alloys derived from the publication https://doi.org/10.1016/j.jnucmat.2018.08.003. - Union_IncoherentPhonon_test.instr demonstrates use of IncoherentPhonon_process.comp by Victor Laliena. To be used with datafile "dos_meV.txt" found in the installation data-folder. - Union_test_mesh.instr demonstrates use of mesh geometry in Union - ESS_BIFROST_shielding.instr and PSI_Focus_shielding.instr, demonstration of Shielding_logger concept from Rodion Kolevatov - TasResoTest, triple-axis resolution test instrument from Tobias Weber ILL. Can be used with his new tool development mcresplot.py. - Tools_ONION, instrument to investigate q-resolution via Mantid, by Thomas Huegle, ORNL. See also https://doi.org/10.1016/j.nima.2019.162711 and the related python code available at https://github.com/McStasMcXtrace/McCode-contribution-support-docs/tree/master/McStas/2.6_Onion_tool_T_Huegle - templateSANS_MCPL, behaves like the normal templateSANS but dumps all events in an MCPL file. - MCPL-oriented tool-instruments by Peter Willendrup - MCPL2Mantid_flat: Read MCPL input and write Mantid-compatible NeXus output - MCPL_filter_energy: Read MCPL input and write only neutrons in wanted energy interval - MCPL_filter_wavelength: Read MCPL input and write only neutrons in wanted wavelength interval - MCPL_filter_radius: Read MCPL input and write only neutrons with position within wanted radius - MCPL_merge: Read up to 10 MCPL input files and write neutrons to a merged MCPL file - SINE2020-developed McStas_Isotropic_Sqw, McStas_PowderN, McStas_Single_crystal by Erik Knudsen. They have MCPL input/output and are intended for easy use of McStas samples within SIMRES. - Test_guides has been modified to include Guide_anyshape_r from Peter Link MLZ. - templateSANS2 serves as test instrument for SANS_spheres2. - BNL_H8_simple.instr is identical to BNL_H8.instr except e.g. not including SPLIT. Common with forthcoming McStas 3.0 beta release with GPU support. - PSI_DMC_simple is identical to PSI_DMC.instr except e.g. not including SPLIT. Common with forthcoming McStas 3.0 beta release with GPU support. - PSI_source is a simple frontend derived from PSI_DMC. Common with forthcoming McStas 3.0 beta release with GPU support. - mini minimal instrument with source, slit and PSD. Common with forthcoming McStas 3.0 beta release with GPU support. - Test_single_magnetic_crystal.instr is a skeleton Laue camera which exemplfies use of Single_magnetic_crystal.comp Datafiles: - Klaus Lieutenant from FZJ/Vitess has collected reflectitivy-data from SwissNeutronics, Mirrotron and S-DH, analysed these and fitted the "classical" McStas mirror-reflectivity profile to these. The resulting data have been placed in the data directory under the filenames of - SwissNeutronics_mirors_2020.txt - Mirrotron_mirors_2020.txt - S-DH_mirors_2020.txt. The files are not to be used directly with reflecting components, but can instead be used as lookup-tables for relevant parameters in each case. I.e. for a mirror of nominal m-value m_nom, use m_real, R_0, W and alpha from the relevant table. - Most other new datafiles are directly related to component- or instrument-additions and have been mentioned above. -------------- 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 redi87 at bk.ru Mon Jan 27 14:24:33 2020 From: redi87 at bk.ru (=?utf-8?B?0JDQu9C10LrRgdC10Lkg0JHRi9C60L7Qsg==?=) Date: Mon, 27 Jan 2020 16:24:33 +0300 Subject: [mcstas-users] download problem github Message-ID: Hello! Can?t download mcstas from GitHub. Where is it naw? ? ?????????, ??????? ????? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: E04BC59FC4C74AE7993BEA8904F618B0.png Type: image/png Size: 23129 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 65A5B4267F8249DCB66FB72B4220F010.png Type: image/png Size: 72936 bytes Desc: not available URL: From pkwi at fysik.dtu.dk Mon Jan 27 14:52:39 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Mon, 27 Jan 2020 13:52:39 +0000 Subject: [mcstas-users] download problem github In-Reply-To: References: Message-ID: <8DCA75B6-419E-4C20-9618-C8726649FF12@fysik.dtu.dk> Dear Alexey, On 27 Jan 2020, at 14.24, ??????? ????? > wrote: Can?t download mcstas from GitHub. Where is it naw? <65A5B4267F8249DCB66FB72B4220F010.png> ? ?????????, ??????? ????? All of the GitHub download links in fact point to http://download.mcstas.org - where the McStas and other needed packages are available within a list of folders, one per release (i.e. 2.5, 2.6 etc.), each with subfolders pr. platform (linux, windows etc.), see the attached 3 images... Please let me know where you found the first link from, i.e. one in the first image starting with https://github.com/McStasMcXtrace/McCode/blob/mcstas-2.5? ? - It refers to the ?old? version 2.5, as 2.6 was released on Friday. Hope this helps, 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 [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 [cid:931E9B89-3A00-4E0C-AAB3-9932CEFF0854 at win.dtu.dk][cid:014A19BC-087A-4323-A4B5-3A6D93246CCC at win.dtu.dk][cid:680C246B-690E-4490-9497-130B7834909E at win.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: 3_windows.png Type: image/png Size: 78722 bytes Desc: 3_windows.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2_mcstas-2.5.png Type: image/png Size: 63504 bytes Desc: 2_mcstas-2.5.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1_download.mcstas.png Type: image/png Size: 123537 bytes Desc: 1_download.mcstas.png URL: From redi87 at bk.ru Tue Jan 28 10:43:20 2020 From: redi87 at bk.ru (=?UTF-8?B?ItCQ0LvQtdC60YHQtdC5INCR0YvQutC+0LIsIEFsZXhleSBCeWtvdiI=?=) Date: Tue, 28 Jan 2020 12:43:20 +0300 Subject: [mcstas-users] =?utf-8?q?download_problem_github?= In-Reply-To: <8DCA75B6-419E-4C20-9618-C8726649FF12@fysik.dtu.dk> References: <8DCA75B6-419E-4C20-9618-C8726649FF12@fysik.dtu.dk> Message-ID: <1580204600.624953181@f195.i.mail.ru> Dear Peter, ? i already understand my mistake, download new version and installed. Actually, i tried to run mcresplot, and it start to work only, when i put the mcresplot.bat (within PATH to mcresplot.py) to ?c:\mcstas-2.6\bin\?. ? ? ?????????, ??????? ?????. ? ? >???????????, 27 ?????? 2020, 16:52 +03:00 ?? Peter Kj?r Willendrup : >? >Dear Alexey, >? >>On 27 Jan 2020, at 14.24, ??????? ????? < redi87 at bk.ru > wrote: ? >>Can?t download mcstas from GitHub. Where is it naw? >>? >> >><65A5B4267F8249DCB66FB72B4220F010.png> >>? >>? ?????????, ??????? ????? ? >? >All of the GitHub download links in fact point to http://download.mcstas.org ?- where the McStas and other needed packages are available within a list of folders, one per release (i.e. 2.5, 2.6 etc.), each with subfolders pr. platform (linux, windows etc.), see the attached 3 images... >? >Please let me know where you found the first link from, i.e. one in the first image starting with https://github.com/McStasMcXtrace/McCode/blob/mcstas-2.5 ? ? - It refers to the ?old? version 2.5, as 2.6 was released on Friday. >? >? >Hope this helps, >? >Peter > >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 ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1_download.mcstas.png Type: image/png Size: 123537 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3_windows.png Type: image/png Size: 78722 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: 2_mcstas-2.5.png Type: image/png Size: 63504 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 Tue Feb 25 13:29:43 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 25 Feb 2020 12:29:43 +0000 Subject: [mcstas-users] McStas 3.0beta technology preview available! Message-ID: Dear all, A technology preview for the forthcoming McStas 3.x series is now available for testing! Main highlights of the release are: * New code-generation scheme based on functions instead of #defines * Much improved compilation-times, the code is better suited for modern compilers * In most cases a speed-up of order 20% on CPU * Limited, experimental support for OpenACC acceleration on NVIDIA GPU's * Speedups measured using top-notch NVIDIA V100 datacenter cards are in the range of 10-600 with respect to a single-core CPU * In essence, you will need a Linux machine with an NVIDIA card and the PGI compiler to make use of the GPU-support For more details and instructions, please refer to this document on our Wiki Thanks to: * Thanks to all members of the joint McStas-McXtrace team, you guys ROCK! * 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 Romanenko Regards on behalf of the McStas-McXtrace developers, 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 pkwi at fysik.dtu.dk Thu Feb 27 20:54:01 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 27 Feb 2020 19:54:01 +0000 Subject: [mcstas-users] McStas 3.0beta technology preview available! In-Reply-To: References: Message-ID: <0BB173A1-22D7-425C-A6F2-0B2123D88651@fysik.dtu.dk> Hi again, As promised, there will be bugs? ;-) ? As we move along with the development on the mcstas-3.0 branch, you may find patched versions of components in the Updates folder found next to the distribution binaries at http://download.mcstas.org/mcstas-3.0beta/. ? A first bug with fix: Unfortunately, a buggy last-minute change to the PowderN component before mcstas-3.0beta was built introduced an error which makes it produce 0 scattered intensity. Please find an improved version in the above-mentioned Updates folder. Further bugfixes to this component are expected since the component produces scattering but has certain edge-case issues on GPU, especially at high ncount rates. ? At any time, know bugs will be listed as issues on GitHub marked with the label of "mcstas-3.0beta?, see https://github.com/McStasMcXtrace/McCode/issues?q=is%3Aissue+is%3Aopen+label%3Amcstas-3.0beta ? Please do submit issues to GitHub as you find them: This will help in the process toward a stable, official 3.0 release! Best, Peter On 25 Feb 2020, at 13.29, Peter Kj?r Willendrup > wrote: Dear all, A technology preview for the forthcoming McStas 3.x series is now available for testing! Main highlights of the release are: * New code-generation scheme based on functions instead of #defines * Much improved compilation-times, the code is better suited for modern compilers * In most cases a speed-up of order 20% on CPU * Limited, experimental support for OpenACC acceleration on NVIDIA GPU's * Speedups measured using top-notch NVIDIA V100 datacenter cards are in the range of 10-600 with respect to a single-core CPU * In essence, you will need a Linux machine with an NVIDIA card and the PGI compiler to make use of the GPU-support For more details and instructions, please refer to this document on our Wiki Thanks to: * Thanks to all members of the joint McStas-McXtrace team, you guys ROCK! * 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 Romanenko Regards on behalf of the McStas-McXtrace developers, 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 _______________________________________________ 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 emmanuel.farhi at synchrotron-soleil.fr Tue Mar 10 09:46:58 2020 From: emmanuel.farhi at synchrotron-soleil.fr (FARHI Emmanuel) Date: Tue, 10 Mar 2020 09:46:58 +0100 Subject: [mcstas-users] Job opening at Synchrotron SOLEIL, Paris: Engineer in scientific computing systems Message-ID: <259ebdf1-b357-2e2b-fbf0-ab2084ac8877@synchrotron-soleil.fr> Hello, The Data Reduction and Analysis group at Synchrotron SOLEIL near Paris is offering an 18 month position. We seek for a 'geek' IT guy able to manage scientific systems (computers, software, libraries). The job description is available at (both in English and French). We shall be happy to welcome you ! -- FARHI Emmanuel - Tel: +33 (1) 69 35 96 04 Room A1.0.34 Experimental Division / Data Reduction and Analysis Group Synchrotron Soleil - Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX http://www.synchrotron-soleil.fr From sgomez at cab.cnea.gov.ar Thu Mar 12 18:44:40 2020 From: sgomez at cab.cnea.gov.ar (=?UTF-8?Q?Santiago_G=C3=B3mez?=) Date: Thu, 12 Mar 2020 14:44:40 -0300 Subject: [mcstas-users] question about array-lib.c and .h Message-ID: <49294b98594a58fae554df0c032fb5b6@cab.cnea.gov.ar> Hello, when I compile the example instrument templateSANS.instr with mcstas 2.6 and gcc 4.4.7 I get this issue PSD_monitor.comp:76: error: redefinition of typedef 'DArray1d' PSD_monitor.comp:60: note: previous declaration of 'DArray1d' was here PSD_monitor.comp:77: error: redefinition of typedef 'DArray2d' PSD_monitor.comp:64: note: previous declaration of 'DArray2d' was here PSD_monitor.comp:78: error: redefinition of typedef 'DArray3d' PSD_monitor.comp:68: note: previous declaration of 'DArray3d' was here This example compiles well with other gcc compiler (version 4.8.3). I see at the mcstas pre-compiled file templateSANS.c that the next typedef definitions appear twice, so this is the redefinition error for compiler gcc 4.4.7. typedef double* DArray1d; typedef double** DArray2d; typedef double*** DArray3d; I simply commented those typedef definitions at array-lib. c, because they are already present in the array-lib. h, and it works ok, at least I have checked the output values from both compilers and the match ok. Should I check other things to keep this solution to use compiler 4.4.7? (this compiler is in a cluster and it is difficult to change version) With best regards, Santiago -- Santiago Miguel G?mez Departamento de F?sica de Reactores y Radiaciones Centro At?mico Bariloche Int.: 5971 "Si queremos un mundo de paz y de justicia hay que poner decididamente la inteligencia al servicio del amor." Antoine de Saint-Exupery -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Thu Mar 12 20:27:56 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Thu, 12 Mar 2020 19:27:56 +0000 Subject: [mcstas-users] question about array-lib.c and .h In-Reply-To: <49294b98594a58fae554df0c032fb5b6@cab.cnea.gov.ar> References: <49294b98594a58fae554df0c032fb5b6@cab.cnea.gov.ar> Message-ID: <1BDA8AED-3EDC-4EE2-9EF7-31FEBC66FF34@fysik.dtu.dk> Dear Santiago, Thanks for reporting this, which seems to be a proper bug in 2.6, sorry about this. I have created a GitHub issue (https://github.com/McStasMcXtrace/McCode/issues/993) so that this is fixed before releasing the next McStas 2.x. For most of our code I believe gcc 4.7.7 should be just fine. If you want an overview of what works and not, try either 1) Our new test-tool, mctest.py / mcviewtest.py - can be found on the mcstas-3.0 branch: https://github.com/McStasMcXtrace/McCode/tree/mcstas-3.0/tools/Python/mctest. Proper docs for these tools are stil to be written. 2) Our legacy test system, mcrun.pl --test For comparison, our daily test output toward McStas 3.0 can be found at http://new-nightly.mccode.org. The html-tables in the subfolders indicate ?McStas 2.5? but what is tested in that column is in fact the ?master? branch. Best and greetings from a Corona-shutdown DK, Peter On 12 Mar 2020, at 18.44, Santiago G?mez > wrote: Hello, when I compile the example instrument templateSANS.instr with mcstas 2.6 and gcc 4.4.7 I get this issue PSD_monitor.comp:76: error: redefinition of typedef 'DArray1d' PSD_monitor.comp:60: note: previous declaration of 'DArray1d' was here PSD_monitor.comp:77: error: redefinition of typedef 'DArray2d' PSD_monitor.comp:64: note: previous declaration of 'DArray2d' was here PSD_monitor.comp:78: error: redefinition of typedef 'DArray3d' PSD_monitor.comp:68: note: previous declaration of 'DArray3d' was here This example compiles well with other gcc compiler (version 4.8.3). I see at the mcstas pre-compiled file templateSANS.c that the next typedef definitions appear twice, so this is the redefinition error for compiler gcc 4.4.7. typedef double* DArray1d; typedef double** DArray2d; typedef double*** DArray3d; I simply commented those typedef definitions at array-lib. c, because they are already present in the array-lib. h, and it works ok, at least I have checked the output values from both compilers and the match ok. Should I check other things to keep this solution to use compiler 4.4.7? (this compiler is in a cluster and it is difficult to change version) With best regards, Santiago -- Santiago Miguel G?mez Departamento de F?sica de Reactores y Radiaciones Centro At?mico Bariloche Int.: 5971 "Si queremos un mundo de paz y de justicia hay que poner decididamente la inteligencia al servicio del amor." Antoine de Saint-Exupery _______________________________________________ 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 Mon Mar 23 11:09:07 2020 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Mon, 23 Mar 2020 10:09:07 +0000 Subject: [mcstas-users] McStas-oriented things to do during lockdown Message-ID: <72A3A9A9-FDF4-46C3-8F07-50B5E8D842C5@fysik.dtu.dk> Dear all, Hope you are all healthy and coping with the global corona-situation. I wanted to remind you that course materials on McStas are available from a dedicated ?school? repository at https://github.com/McStasMcXtrace/Schools. The CSNS folder in that repo goes well together with the recorded lectures that were recorded by CSNS in Donguang and are available at this dedicated playlist https://www.youtube.com/playlist?list=PLodvBRHVfJ9HjquUVlyXtLjvVB3x67_p7 from McStas YouTube channel. The channel also contain other videos on iFit, the Union concept and from the Neutrons ?cradle2grave? workshop in Coimbra, see https://www.youtube.com/channel/UC-KroKEM9wctEqqL49opobQ. If you using this period for working on simulations and get stuck, please let us know and we can schedule e.g. a Zoom-meeting to help you out. All the best on behalf of the McStas team, 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: