[mcstas-users] [McStas 2.7] NCrystal sample problem after update
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Wed Dec 16 13:20:18 CET 2020
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<http://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 <pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>> 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 <michal.dembski-villalta at tum.de<mailto:michal.dembski-villalta at tum.de>> 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
<Log.txt><Sample_declarations.txt><Instrument_Params.png><Michal_DV_Instr_draft.instr>_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto: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<mailto: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<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20201216/e6a8b8ba/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20201216/e6a8b8ba/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20201216/e6a8b8ba/attachment-0003.gif>
More information about the mcstas-users
mailing list