From wagnerrichard at ill.fr Tue Apr 18 11:58:54 2023 From: wagnerrichard at ill.fr (Richard Wagner) Date: Tue, 18 Apr 2023 11:58:54 +0200 Subject: [mcstas-users] Ncount doubled? McStas 3.3 Message-ID: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> Dear McStas Experts and Community Is there a reason that the in Mcstas 3.3 Ncount is twice as high then the "Ray count" selected? eg.:/-n 1000/ -> /# Ncount: 2000 / Best Richard -- *Richard Wagner* Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Tue Apr 18 12:07:06 2023 From: pkwi at fysik.dtu.dk (=?iso-8859-1?Q?Peter_Kj=E6r_Willendrup?=) Date: Tue, 18 Apr 2023 10:07:06 +0000 Subject: [mcstas-users] Ncount doubled? McStas 3.3 In-Reply-To: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> References: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> Message-ID: <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> Hi Richard, Hmm, no this sounds strange? Could you help by providing a little bit more context? I.e. * What are you running? * How? * Where do you read off the resulting Ncount? Best, Peter On 18 Apr 2023, at 11.58, Richard Wagner wrote: Dear McStas Experts and Community Is there a reason that the in Mcstas 3.3 Ncount is twice as high then the "Ray count" selected? eg.: -n 1000 -> # Ncount: 2000 Best Richard -- Richard Wagner Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From wagnerrichard at ill.fr Tue Apr 18 13:07:05 2023 From: wagnerrichard at ill.fr (Richard Wagner) Date: Tue, 18 Apr 2023 13:07:05 +0200 Subject: [mcstas-users] Ncount doubled? McStas 3.3 In-Reply-To: <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> References: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> Message-ID: <5a69f2e6-a6ea-ca90-de22-8df5f7bd9e5f@ill.fr> Hi Peter, as an example I took the BTsimple.instr from the template section. The command to run McStas is: mcrun BTsimple.instr -d BTsimple_20230418_115509 *-n 1000* lambda=10 dlambda=9.9 maxhd=3 maxvd=3 gw=0.1 gh=0.1 gL=50 gm=6 delta1=0 delta2=0 and the reads (just as an example) *BT_in.dat * # Format: McCode with text headers # URL: http://www.mccode.org # Creator: # Instrument: BTsimple.instr *# Ncount:**2000* # Trace: no # Gravitation: no # Seed: 1681811710726221 # Directory: /Users/wagnerrichard/BTsimple_20230418_115509 # Param: lambda=10 # Param: dlambda=9.9 # Param: maxhd=3 # Param: maxvd=3 # Param: gw=0.1 # Param: gh=0.1 # Param: gL=50 # Param: gm=6 # Param: delta1=0 # Param: delta2=0 # Date: Tue Apr 18 11:55:10 2023 (1681811710) # type: array_1d(101) # Source: BTsimple (BTsimple.instr) # component: BT_in # position: 0 0 2 # title: Wavelength monitor # Ncount: 2000 # filename: BT_in.dat # statistics: X0=2.95806; dX=1.79349; # signal: Min=0; Max=1.42052e+11; Mean=7.26371e+09; # values: 7.33634e+11 2.44642e+11 34 # xvar: L # yvar: (I,I_err) # xlabel: Wavelength [AA] # ylabel: Intensity # xlimits: 0.1 19.9 # variables: L I I_err N 0.198019802 0.06290653129 0.06290653129 1 0.3940594059 0 0 0 0.5900990099 0 0 0 0.7861386139 0 0 0 0.9821782178 8.634588395e+10 8.634588395e+10 1 1.178217822 1.129377287e+11 1.129377287e+11 1 1.374257426 0 0 0 1.57029703 0 0 0 1.766336634 0 0 0 1.962376238 0 0 0 2.158415842 0 0 0 2.354455446 0 0 0 2.55049505 1.045974734e+11 1.045974734e+11 1 2.746534653 0 0 0 2.942574257 8.997598489e+10 8.997598489e+10 1 3.138613861 7.835386438e+10 7.835386438e+10 1 3.334653465 1.420521026e+11 1.004534555e+11 2 3.530693069 0 0 0 3.726732673 0 0 0 3.922772277 4.930911027e+10 4.930911027e+10 1 4.118811881 0 0 0 4.314851485 0 0 0 4.510891089 0 0 0 4.706930693 0 0 0 4.902970297 0 0 0 5.099009901 0 0 0 5.295049505 0 0 0 5.491089109 0 0 0 5.687128713 0 0 0 5.883168317 2.834814784e+10 2.005320461e+10 2 6.079207921 0 0 0 6.275247525 0 0 0 6.471287129 0 0 0 6.667326733 1.878195926e+10 1.328092168e+10 2 6.863366337 0 0 0 7.059405941 0 0 0 7.255445545 0 0 0 7.451485149 0 0 0 7.647524752 5150986989 5150986989 1 7.843564356 0 0 0 8.03960396 4013292994 4013292994 1 8.235643564 3595007505 3595007505 1 8.431683168 0 0 0 8.627722772 0 0 0 8.823762376 0 0 0 9.01980198 0 0 0 9.215841584 2189836065 2189836065 1 9.411881188 1988533204 1988533204 1 9.607920792 0 0 0 9.803960396 0 0 0 10 1492967095 1492967095 1 10.1960396 0 0 0 10.39207921 0 0 0 10.58811881 0 0 0 10.78415842 0 0 0 10.98019802 0 0 0 11.17623762 0 0 0 11.37227723 848524385.4 848524385.4 1 11.56831683 776540913.4 776540913.4 1 11.76435644 704975245.4 704975245.4 1 11.96039604 0 0 0 12.15643564 0 0 0 12.35247525 0 0 0 12.54851485 0 0 0 12.74455446 0 0 0 12.94059406 0 0 0 13.13663366 0 0 0 13.33267327 0 0 0 13.52871287 0 0 0 13.72475248 361109386.4 361109386.4 1 13.92079208 0 0 0 14.11683168 0 0 0 14.31287129 0 0 0 14.50891089 272324491.7 272324491.7 1 14.7049505 0 0 0 14.9009901 241800376.7 241800376.7 1 15.0970297 224371882.4 224371882.4 1 15.29306931 203464827.5 203464827.5 1 15.48910891 0 0 0 15.68514851 182210050 182210050 1 15.88118812 173421371.5 173421371.5 1 16.07722772 0 0 0 16.27326733 0 0 0 16.46930693 0 0 0 16.66534653 140822062.6 140822062.6 1 16.86138614 0 0 0 17.05742574 124243190.4 124243190.4 1 17.25346535 0 0 0 17.44950495 0 0 0 17.64554455 0 0 0 17.84158416 0 0 0 18.03762376 91358644.93 91358644.93 1 18.23366337 90222429.45 90222429.45 1 18.42970297 0 0 0 18.62574257 0 0 0 18.82178218 0 0 0 19.01782178 0 0 0 19.21386139 0 0 0 19.40990099 65966180.97 65966180.97 1 19.60594059 0 0 0 19.8019802 0 0 0 Holds for the rest of the dat-files and for simulations with higer n numbers I just took n = 1000 for demonstration purposes. Best Richard On 18/04/2023 12:07, Peter Kj?r Willendrup wrote: > Hi Richard, > > > Hmm, no this sounds strange? > > Could you help by providing a little bit more context? I.e. > > * What are you running? > * How? > * Where do you read off the resulting Ncount? > > Best, > Peter > >> On 18 Apr 2023, at 11.58, Richard Wagner wrote: >> >> Dear McStas Experts and Community >> >> Is there a reason that the in Mcstas 3.3 Ncount is twice as high then >> the "Ray count" selected? >> >> eg.:/-n 1000/ -> /# Ncount: 2000 / >> >> Best >> >> Richard >> >> -- >> *Richard Wagner* >> Postdoctoral Research Engineer >> Nuclear and Particle Physics Group >> Institut Laue-Langevin - ILL >> 71, avenue des Martyrs >> CS 20156 >> 38042 Grenoble Cedex 9 >> France >> >> www.ill.eu >> >> _______________________________________________ >> mcstas-users mailing list >> mcstas-users at mcstas.org >> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users > -- *Richard Wagner* Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.farhi at synchrotron-soleil.fr Tue Apr 18 13:19:08 2023 From: emmanuel.farhi at synchrotron-soleil.fr (Emmanuel FARHI) Date: Tue, 18 Apr 2023 13:19:08 +0200 Subject: [mcstas-users] Ncount doubled? McStas 3.3 In-Reply-To: <5a69f2e6-a6ea-ca90-de22-8df5f7bd9e5f@ill.fr> References: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> <5a69f2e6-a6ea-ca90-de22-8df5f7bd9e5f@ill.fr> Message-ID: I can confirm this also holds for McXtrace, but only for the 'legacy' code. McXtrace 3.x is OK. Emmanuel. Le 18/04/2023 ? 13:07, Richard Wagner a ?crit?: > > Hi Peter, > > as an example I took the BTsimple.instr from the template section. > > The command to run McStas is: mcrun BTsimple.instr -d > BTsimple_20230418_115509 *-n 1000* lambda=10 dlambda=9.9 maxhd=3 > maxvd=3 gw=0.1 gh=0.1 gL=50 gm=6 delta1=0 delta2=0 > > and the reads (just as an example) > > *BT_in.dat * > > # Format: McCode with text headers # URL: http://www.mccode.org # > Creator: # Instrument: BTsimple.instr *# Ncount:**2000* # Trace: no # > Gravitation: no # Seed: 1681811710726221 # Directory: > /Users/wagnerrichard/BTsimple_20230418_115509 # Param: lambda=10 # > Param: dlambda=9.9 # Param: maxhd=3 # Param: maxvd=3 # Param: gw=0.1 # > Param: gh=0.1 # Param: gL=50 # Param: gm=6 # Param: delta1=0 # Param: > delta2=0 # Date: Tue Apr 18 11:55:10 2023 (1681811710) # type: > array_1d(101) # Source: BTsimple (BTsimple.instr) # component: BT_in # > position: 0 0 2 # title: Wavelength monitor # Ncount: 2000 # filename: > BT_in.dat # statistics: X0=2.95806; dX=1.79349; # signal: Min=0; > Max=1.42052e+11; Mean=7.26371e+09; # values: 7.33634e+11 2.44642e+11 > 34 # xvar: L # yvar: (I,I_err) # xlabel: Wavelength [AA] # ylabel: > Intensity # xlimits: 0.1 19.9 # variables: L I I_err N 0.198019802 > 0.06290653129 0.06290653129 1 0.3940594059 0 0 0 0.5900990099 0 0 0 > 0.7861386139 0 0 0 0.9821782178 8.634588395e+10 8.634588395e+10 1 > 1.178217822 1.129377287e+11 1.129377287e+11 1 1.374257426 0 0 0 > 1.57029703 0 0 0 1.766336634 0 0 0 1.962376238 0 0 0 2.158415842 0 0 0 > 2.354455446 0 0 0 2.55049505 1.045974734e+11 1.045974734e+11 1 > 2.746534653 0 0 0 2.942574257 8.997598489e+10 8.997598489e+10 1 > 3.138613861 7.835386438e+10 7.835386438e+10 1 3.334653465 > 1.420521026e+11 1.004534555e+11 2 3.530693069 0 0 0 3.726732673 0 0 0 > 3.922772277 4.930911027e+10 4.930911027e+10 1 4.118811881 0 0 0 > 4.314851485 0 0 0 4.510891089 0 0 0 4.706930693 0 0 0 4.902970297 0 0 > 0 5.099009901 0 0 0 5.295049505 0 0 0 5.491089109 0 0 0 5.687128713 0 > 0 0 5.883168317 2.834814784e+10 2.005320461e+10 2 6.079207921 0 0 0 > 6.275247525 0 0 0 6.471287129 0 0 0 6.667326733 1.878195926e+10 > 1.328092168e+10 2 6.863366337 0 0 0 7.059405941 0 0 0 7.255445545 0 0 > 0 7.451485149 0 0 0 7.647524752 5150986989 5150986989 1 7.843564356 0 > 0 0 8.03960396 4013292994 4013292994 1 8.235643564 3595007505 > 3595007505 1 8.431683168 0 0 0 8.627722772 0 0 0 8.823762376 0 0 0 > 9.01980198 0 0 0 9.215841584 2189836065 2189836065 1 9.411881188 > 1988533204 1988533204 1 9.607920792 0 0 0 9.803960396 0 0 0 10 > 1492967095 1492967095 1 10.1960396 0 0 0 10.39207921 0 0 0 10.58811881 > 0 0 0 10.78415842 0 0 0 10.98019802 0 0 0 11.17623762 0 0 0 > 11.37227723 848524385.4 848524385.4 1 11.56831683 776540913.4 > 776540913.4 1 11.76435644 704975245.4 704975245.4 1 11.96039604 0 0 0 > 12.15643564 0 0 0 12.35247525 0 0 0 12.54851485 0 0 0 12.74455446 0 0 > 0 12.94059406 0 0 0 13.13663366 0 0 0 13.33267327 0 0 0 13.52871287 0 > 0 0 13.72475248 361109386.4 361109386.4 1 13.92079208 0 0 0 > 14.11683168 0 0 0 14.31287129 0 0 0 14.50891089 272324491.7 > 272324491.7 1 14.7049505 0 0 0 14.9009901 241800376.7 241800376.7 1 > 15.0970297 224371882.4 224371882.4 1 15.29306931 203464827.5 > 203464827.5 1 15.48910891 0 0 0 15.68514851 182210050 182210050 1 > 15.88118812 173421371.5 173421371.5 1 16.07722772 0 0 0 16.27326733 0 > 0 0 16.46930693 0 0 0 16.66534653 140822062.6 140822062.6 1 > 16.86138614 0 0 0 17.05742574 124243190.4 124243190.4 1 17.25346535 0 > 0 0 17.44950495 0 0 0 17.64554455 0 0 0 17.84158416 0 0 0 18.03762376 > 91358644.93 91358644.93 1 18.23366337 90222429.45 90222429.45 1 > 18.42970297 0 0 0 18.62574257 0 0 0 18.82178218 0 0 0 19.01782178 0 0 > 0 19.21386139 0 0 0 19.40990099 65966180.97 65966180.97 1 19.60594059 > 0 0 0 19.8019802 0 0 0 > > Holds for the rest of the dat-files and for simulations with higer n > numbers > I just took n = 1000 for demonstration purposes. > > Best > Richard > > On 18/04/2023 12:07, Peter Kj?r Willendrup wrote: >> Hi Richard, >> >> >> Hmm, no this sounds strange? >> >> Could you help by providing a little bit more context? I.e. >> >> * What are you running? >> * How? >> * Where do you read off the resulting Ncount? >> >> Best, >> Peter >> >>> On 18 Apr 2023, at 11.58, Richard Wagner wrote: >>> >>> Dear McStas Experts and Community >>> >>> Is there a reason that the in Mcstas 3.3 Ncount is twice as high >>> then the "Ray count" selected? >>> >>> eg.:/-n 1000/ -> /# Ncount: 2000 / >>> >>> Best >>> >>> Richard >>> >>> -- >>> *Richard Wagner* >>> Postdoctoral Research Engineer >>> Nuclear and Particle Physics Group >>> Institut Laue-Langevin - ILL >>> 71, avenue des Martyrs >>> CS 20156 >>> 38042 Grenoble Cedex 9 >>> France >>> >>> www.ill.eu >>> >>> _______________________________________________ >>> mcstas-users mailing list >>> mcstas-users at mcstas.org >>> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users >> > -- > *Richard Wagner* > Postdoctoral Research Engineer > Nuclear and Particle Physics Group > Institut Laue-Langevin - ILL > 71, avenue des Martyrs > CS 20156 > 38042 Grenoble Cedex 9 > France > > www.ill.eu > > > _______________________________________________ > mcstas-users mailing list > mcstas-users at mcstas.org > https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- signature / ___|__/\_| | ? | ____|_ _| | ? ? ?FARHI Emmanuel \___ \\ | | ? | ?_| ?| || | ? ? ?Div Exp/Data Reduction and Analysis Team ?___) /_ ?_| |___| |___ | || |___ ? Tel : +33 (1) 69 35 96 04 |____/ ?\/ |_____|_____|___|_____| ?Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Tue Apr 18 15:13:35 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Tue, 18 Apr 2023 13:13:35 +0000 Subject: [mcstas-users] Ncount doubled? McStas 3.3 In-Reply-To: References: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> <5a69f2e6-a6ea-ca90-de22-8df5f7bd9e5f@ill.fr> Message-ID: <3A885D1A-367E-4C7B-9F97-F19E13A3E2AB@fysik.dtu.dk> Hi both, OK, thanks for testing. Looking on my machine here with McStas 3.3, it seems the the first entry in mccode.sim (i.e. the ?simulation level?) is OK, whereas the entries for any monitor after has been doubled: McStas simulation description file for BNL_H8. Date: Tue Apr 18 12:02:56 2023 Program: begin instrument: BNL_H8 File: BNL_H8_20230418_120254/mccode Source: BNL_H8.instr Parameters: lambda(double) Trace_enabled: yes Default_main: yes Embedded_runtime: yes end instrument begin simulation: BNL_H8_20230418_120254 Format: McCode with text headers URL: http://www.mccode.org Creator: Instrument: BNL_H8.instr Ncount: 1000000 Trace: no Gravitation: no Seed: 1681812175442876 Directory: BNL_H8_20230418_120254 Param: lambda=2.36 end simulation begin data Date: Tue Apr 18 12:02:57 2023 (1681812177) type: array_2d(20, 20) Source: BNL_H8 (BNL_H8.instr) component: D0_Source position: 0 0 0.0001 title: PSD monitor Ncount: 2000000 filename: D0_Source.psd statistics: X0=-0.00187139; dX=0.864864; Y0=0.0044862; dY=1.56205; signal: Min=6.0781e-06; Max=1.04372e-05; Mean=7.97501e-06; values: 0.00319 1.39945e-05 51960 xvar: X yvar: Y xlabel: X position [cm] ylabel: Y position [cm] zvar: I zlabel: Signal per bin xylimits: -1.5 1.5 -2.7 2.7 variables: I I_err N end data ... I would think this ?only" a header / summary data - issue, but of course annoying. I don?t believe the actual number of simulated events is actually doubled. Will investigate further during the next days and report back. Best, Peter On 18 Apr 2023, at 13.19, Emmanuel FARHI wrote: I can confirm this also holds for McXtrace, but only for the 'legacy' code. McXtrace 3.x is OK. Emmanuel. Le 18/04/2023 ? 13:07, Richard Wagner a ?crit : Hi Peter, as an example I took the BTsimple.instr from the template section. The command to run McStas is: mcrun BTsimple.instr -d BTsimple_20230418_115509 -n 1000 lambda=10 dlambda=9.9 maxhd=3 maxvd=3 gw=0.1 gh=0.1 gL=50 gm=6 delta1=0 delta2=0 and the reads (just as an example) BT_in.dat # Format: McCode with text headers # URL: http://www.mccode.org # Creator: # Instrument: BTsimple.instr # Ncount: 2000 # Trace: no # Gravitation: no # Seed: 1681811710726221 # Directory: /Users/wagnerrichard/BTsimple_20230418_115509 # Param: lambda=10 # Param: dlambda=9.9 # Param: maxhd=3 # Param: maxvd=3 # Param: gw=0.1 # Param: gh=0.1 # Param: gL=50 # Param: gm=6 # Param: delta1=0 # Param: delta2=0 # Date: Tue Apr 18 11:55:10 2023 (1681811710) # type: array_1d(101) # Source: BTsimple (BTsimple.instr) # component: BT_in # position: 0 0 2 # title: Wavelength monitor # Ncount: 2000 # filename: BT_in.dat # statistics: X0=2.95806; dX=1.79349; # signal: Min=0; Max=1.42052e+11; Mean=7.26371e+09; # values: 7.33634e+11 2.44642e+11 34 # xvar: L # yvar: (I,I_err) # xlabel: Wavelength [AA] # ylabel: Intensity # xlimits: 0.1 19.9 # variables: L I I_err N 0.198019802 0.06290653129 0.06290653129 1 0.3940594059 0 0 0 0.5900990099 0 0 0 0.7861386139 0 0 0 0.9821782178 8.634588395e+10 8.634588395e+10 1 1.178217822 1.129377287e+11 1.129377287e+11 1 1.374257426 0 0 0 1.57029703 0 0 0 1.766336634 0 0 0 1.962376238 0 0 0 2.158415842 0 0 0 2.354455446 0 0 0 2.55049505 1.045974734e+11 1.045974734e+11 1 2.746534653 0 0 0 2.942574257 8.997598489e+10 8.997598489e+10 1 3.138613861 7.835386438e+10 7.835386438e+10 1 3.334653465 1.420521026e+11 1.004534555e+11 2 3.530693069 0 0 0 3.726732673 0 0 0 3.922772277 4.930911027e+10 4.930911027e+10 1 4.118811881 0 0 0 4.314851485 0 0 0 4.510891089 0 0 0 4.706930693 0 0 0 4.902970297 0 0 0 5.099009901 0 0 0 5.295049505 0 0 0 5.491089109 0 0 0 5.687128713 0 0 0 5.883168317 2.834814784e+10 2.005320461e+10 2 6.079207921 0 0 0 6.275247525 0 0 0 6.471287129 0 0 0 6.667326733 1.878195926e+10 1.328092168e+10 2 6.863366337 0 0 0 7.059405941 0 0 0 7.255445545 0 0 0 7.451485149 0 0 0 7.647524752 5150986989 5150986989 1 7.843564356 0 0 0 8.03960396 4013292994 4013292994 1 8.235643564 3595007505 3595007505 1 8.431683168 0 0 0 8.627722772 0 0 0 8.823762376 0 0 0 9.01980198 0 0 0 9.215841584 2189836065 2189836065 1 9.411881188 1988533204 1988533204 1 9.607920792 0 0 0 9.803960396 0 0 0 10 1492967095 1492967095 1 10.1960396 0 0 0 10.39207921 0 0 0 10.58811881 0 0 0 10.78415842 0 0 0 10.98019802 0 0 0 11.17623762 0 0 0 11.37227723 848524385.4 848524385.4 1 11.56831683 776540913.4 776540913.4 1 11.76435644 704975245.4 704975245.4 1 11.96039604 0 0 0 12.15643564 0 0 0 12.35247525 0 0 0 12.54851485 0 0 0 12.74455446 0 0 0 12.94059406 0 0 0 13.13663366 0 0 0 13.33267327 0 0 0 13.52871287 0 0 0 13.72475248 361109386.4 361109386.4 1 13.92079208 0 0 0 14.11683168 0 0 0 14.31287129 0 0 0 14.50891089 272324491.7 272324491.7 1 14.7049505 0 0 0 14.9009901 241800376.7 241800376.7 1 15.0970297 224371882.4 224371882.4 1 15.29306931 203464827.5 203464827.5 1 15.48910891 0 0 0 15.68514851 182210050 182210050 1 15.88118812 173421371.5 173421371.5 1 16.07722772 0 0 0 16.27326733 0 0 0 16.46930693 0 0 0 16.66534653 140822062.6 140822062.6 1 16.86138614 0 0 0 17.05742574 124243190.4 124243190.4 1 17.25346535 0 0 0 17.44950495 0 0 0 17.64554455 0 0 0 17.84158416 0 0 0 18.03762376 91358644.93 91358644.93 1 18.23366337 90222429.45 90222429.45 1 18.42970297 0 0 0 18.62574257 0 0 0 18.82178218 0 0 0 19.01782178 0 0 0 19.21386139 0 0 0 19.40990099 65966180.97 65966180.97 1 19.60594059 0 0 0 19.8019802 0 0 0 Holds for the rest of the dat-files and for simulations with higer n numbers I just took n = 1000 for demonstration purposes. Best Richard On 18/04/2023 12:07, Peter Kj?r Willendrup wrote: Hi Richard, Hmm, no this sounds strange? Could you help by providing a little bit more context? I.e. * What are you running? * How? * Where do you read off the resulting Ncount? Best, Peter On 18 Apr 2023, at 11.58, Richard Wagner wrote: Dear McStas Experts and Community Is there a reason that the in Mcstas 3.3 Ncount is twice as high then the "Ray count" selected? eg.: -n 1000 -> # Ncount: 2000 Best Richard -- Richard Wagner Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- Richard Wagner Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- / ___|__/\_| | | ____|_ _| | FARHI Emmanuel \___ \\ | | | _| | || | Div Exp/Data Reduction and Analysis Team ___) /_ _| |___| |___ | || |___ Tel : +33 (1) 69 35 96 04 |____/ \/ |_____|_____|___|_____| Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmanuel.farhi at synchrotron-soleil.fr Tue May 2 17:34:54 2023 From: emmanuel.farhi at synchrotron-soleil.fr (Emmanuel FARHI) Date: Tue, 2 May 2023 17:34:54 +0200 Subject: [mcstas-users] Job offer: Python/nodeJS at Synchrotron SOLEIL near Paris for the MX beamlines Message-ID: Temporary position at Synchrotron SOLEIL (18 months) *Python/NodeJS programmer* *Background* SOLEIL is the French synchrotron radiation center, located on the Saclay plateau near Paris. It is a multidisciplinary instrument and a research laboratory, whose mission is to conduct research programs using synchrotron radiation, to develop state-of-the-art instrumentation on the beamlines and to put them available to the scientific community. The SOLEIL synchrotron, a unique tool for both academic research and industrial applications, opened in 2008. It is used annually by several thousand French and foreign researchers, across a wide range of disciplines such as physics, biology, chemistry, astrophysics, environment, earth sciences, etc. SOLEIL relies on a remarkable radiation source both in terms of brilliance and stability. This Very Large Research Infrastructure (TGIR), a partner of the University of Paris-Saclay, is constituted as a ?civil? company founded jointly by the CNRS and the CEA. The SOLEIL synchrotron, in the field of structural biology, operates two X-ray diffraction beamlines for macromolecular crystallography (MX), a small-angle scattering beamline in solution and soon an electron cryomicroscope. The beamlines feature a high degree of automation through advanced robotics, and are driven by software developed in a collaboration (MXCuBE, Journal of Synchrotron Radiation 17(5):700-7). The latest version, the MXCuBE3 web application (https://github.com/mxcube/), is specially designed to perform advanced experiments remotely. *Tasks* Your main mission will be to carry out, in close collaboration with the PROXIMA-1 and PROXIMA-2A beamlines, the migration of the current version in production of MXCuBE (QT) to MXCuBEv3 (web), test the new interface and implement it as a service. *Responsibilities* * Gain an understanding of the experiments conducted on the MX beamlines, and of the operation of MXCUBE through consortium meetings with the other developers of the code; * Migrate the current python code from the back-end (hardware repository) to the new python code redesign (mxcubecore); harmonization of the code between the two beamlines. * Migrate the HMIs of the two PROXIMA-1 and PROXIMA-2A lines to the MXCuBEv3 web version; * Testing and production of the MXCuBEv3 web version on both lines; * Develop some new features in the MXCuBEv3 HMI. *Training and experience* Required level: master 1/2 or higher. A professional experience of at least 3 years will be appreciated. Essential basic knowledge: Python programming; Web development skills: Javascript, Node.js React or equivalent. Any additional knowledge and/or skills: Management of scientific equipment. Required qualities: Curiosity ; Good communication skills. *General conditions of practice* The candidate will work within the biocrystallography teams on the PROXIMA 1 and PROXIMA 2A beamlines. You are invited to apply by sending your letter and curriculum at FALDUTI Virginie with the reference "EXP-915". -- signature / ___|__/\_| | ? | ____|_ _| | ? ? ?FARHI Emmanuel \___ \\ | | ? | ?_| ?| || | ? ? ?Div Exp/Data Reduction and Analysis Team ?___) /_ ?_| |___| |___ | || |___ ? Tel : +33 (1) 69 35 96 04 |____/ ?\/ |_____|_____|___|_____| ?Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Wed May 10 16:45:57 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Wed, 10 May 2023 14:45:57 +0000 Subject: [mcstas-users] Ncount doubled? McStas 3.3 In-Reply-To: <3A885D1A-367E-4C7B-9F97-F19E13A3E2AB@fysik.dtu.dk> References: <8aa24762-1e1e-9215-8139-40b5cd13298e@ill.fr> <992C3873-952B-410C-A814-E3B6BD058B7E@fysik.dtu.dk> <5a69f2e6-a6ea-ca90-de22-8df5f7bd9e5f@ill.fr> <3A885D1A-367E-4C7B-9F97-F19E13A3E2AB@fysik.dtu.dk> Message-ID: Hi all, I can now report that the cause of the issue has been located and fixed in the development tree toward the next McStas 3.x and McXtrace 3.x releases. You can also rest assured that the issue was of a cosmetic nature only, only affecting output headers, not the actual number of simulated / saved events. Best, Peter On 18 Apr 2023, at 15.13, Peter Kj?r Willendrup wrote: Hi both, OK, thanks for testing. Looking on my machine here with McStas 3.3, it seems the the first entry in mccode.sim (i.e. the ?simulation level?) is OK, whereas the entries for any monitor after has been doubled: McStas simulation description file for BNL_H8. Date: Tue Apr 18 12:02:56 2023 Program: begin instrument: BNL_H8 File: BNL_H8_20230418_120254/mccode Source: BNL_H8.instr Parameters: lambda(double) Trace_enabled: yes Default_main: yes Embedded_runtime: yes end instrument begin simulation: BNL_H8_20230418_120254 Format: McCode with text headers URL: http://www.mccode.org Creator: Instrument: BNL_H8.instr Ncount: 1000000 Trace: no Gravitation: no Seed: 1681812175442876 Directory: BNL_H8_20230418_120254 Param: lambda=2.36 end simulation begin data Date: Tue Apr 18 12:02:57 2023 (1681812177) type: array_2d(20, 20) Source: BNL_H8 (BNL_H8.instr) component: D0_Source position: 0 0 0.0001 title: PSD monitor Ncount: 2000000 filename: D0_Source.psd statistics: X0=-0.00187139; dX=0.864864; Y0=0.0044862; dY=1.56205; signal: Min=6.0781e-06; Max=1.04372e-05; Mean=7.97501e-06; values: 0.00319 1.39945e-05 51960 xvar: X yvar: Y xlabel: X position [cm] ylabel: Y position [cm] zvar: I zlabel: Signal per bin xylimits: -1.5 1.5 -2.7 2.7 variables: I I_err N end data ... I would think this ?only" a header / summary data - issue, but of course annoying. I don?t believe the actual number of simulated events is actually doubled. Will investigate further during the next days and report back. Best, Peter On 18 Apr 2023, at 13.19, Emmanuel FARHI wrote: I can confirm this also holds for McXtrace, but only for the 'legacy' code. McXtrace 3.x is OK. Emmanuel. Le 18/04/2023 ? 13:07, Richard Wagner a ?crit : Hi Peter, as an example I took the BTsimple.instr from the template section. The command to run McStas is: mcrun BTsimple.instr -d BTsimple_20230418_115509 -n 1000 lambda=10 dlambda=9.9 maxhd=3 maxvd=3 gw=0.1 gh=0.1 gL=50 gm=6 delta1=0 delta2=0 and the reads (just as an example) BT_in.dat # Format: McCode with text headers # URL: http://www.mccode.org # Creator: # Instrument: BTsimple.instr # Ncount: 2000 # Trace: no # Gravitation: no # Seed: 1681811710726221 # Directory: /Users/wagnerrichard/BTsimple_20230418_115509 # Param: lambda=10 # Param: dlambda=9.9 # Param: maxhd=3 # Param: maxvd=3 # Param: gw=0.1 # Param: gh=0.1 # Param: gL=50 # Param: gm=6 # Param: delta1=0 # Param: delta2=0 # Date: Tue Apr 18 11:55:10 2023 (1681811710) # type: array_1d(101) # Source: BTsimple (BTsimple.instr) # component: BT_in # position: 0 0 2 # title: Wavelength monitor # Ncount: 2000 # filename: BT_in.dat # statistics: X0=2.95806; dX=1.79349; # signal: Min=0; Max=1.42052e+11; Mean=7.26371e+09; # values: 7.33634e+11 2.44642e+11 34 # xvar: L # yvar: (I,I_err) # xlabel: Wavelength [AA] # ylabel: Intensity # xlimits: 0.1 19.9 # variables: L I I_err N 0.198019802 0.06290653129 0.06290653129 1 0.3940594059 0 0 0 0.5900990099 0 0 0 0.7861386139 0 0 0 0.9821782178 8.634588395e+10 8.634588395e+10 1 1.178217822 1.129377287e+11 1.129377287e+11 1 1.374257426 0 0 0 1.57029703 0 0 0 1.766336634 0 0 0 1.962376238 0 0 0 2.158415842 0 0 0 2.354455446 0 0 0 2.55049505 1.045974734e+11 1.045974734e+11 1 2.746534653 0 0 0 2.942574257 8.997598489e+10 8.997598489e+10 1 3.138613861 7.835386438e+10 7.835386438e+10 1 3.334653465 1.420521026e+11 1.004534555e+11 2 3.530693069 0 0 0 3.726732673 0 0 0 3.922772277 4.930911027e+10 4.930911027e+10 1 4.118811881 0 0 0 4.314851485 0 0 0 4.510891089 0 0 0 4.706930693 0 0 0 4.902970297 0 0 0 5.099009901 0 0 0 5.295049505 0 0 0 5.491089109 0 0 0 5.687128713 0 0 0 5.883168317 2.834814784e+10 2.005320461e+10 2 6.079207921 0 0 0 6.275247525 0 0 0 6.471287129 0 0 0 6.667326733 1.878195926e+10 1.328092168e+10 2 6.863366337 0 0 0 7.059405941 0 0 0 7.255445545 0 0 0 7.451485149 0 0 0 7.647524752 5150986989 5150986989 1 7.843564356 0 0 0 8.03960396 4013292994 4013292994 1 8.235643564 3595007505 3595007505 1 8.431683168 0 0 0 8.627722772 0 0 0 8.823762376 0 0 0 9.01980198 0 0 0 9.215841584 2189836065 2189836065 1 9.411881188 1988533204 1988533204 1 9.607920792 0 0 0 9.803960396 0 0 0 10 1492967095 1492967095 1 10.1960396 0 0 0 10.39207921 0 0 0 10.58811881 0 0 0 10.78415842 0 0 0 10.98019802 0 0 0 11.17623762 0 0 0 11.37227723 848524385.4 848524385.4 1 11.56831683 776540913.4 776540913.4 1 11.76435644 704975245.4 704975245.4 1 11.96039604 0 0 0 12.15643564 0 0 0 12.35247525 0 0 0 12.54851485 0 0 0 12.74455446 0 0 0 12.94059406 0 0 0 13.13663366 0 0 0 13.33267327 0 0 0 13.52871287 0 0 0 13.72475248 361109386.4 361109386.4 1 13.92079208 0 0 0 14.11683168 0 0 0 14.31287129 0 0 0 14.50891089 272324491.7 272324491.7 1 14.7049505 0 0 0 14.9009901 241800376.7 241800376.7 1 15.0970297 224371882.4 224371882.4 1 15.29306931 203464827.5 203464827.5 1 15.48910891 0 0 0 15.68514851 182210050 182210050 1 15.88118812 173421371.5 173421371.5 1 16.07722772 0 0 0 16.27326733 0 0 0 16.46930693 0 0 0 16.66534653 140822062.6 140822062.6 1 16.86138614 0 0 0 17.05742574 124243190.4 124243190.4 1 17.25346535 0 0 0 17.44950495 0 0 0 17.64554455 0 0 0 17.84158416 0 0 0 18.03762376 91358644.93 91358644.93 1 18.23366337 90222429.45 90222429.45 1 18.42970297 0 0 0 18.62574257 0 0 0 18.82178218 0 0 0 19.01782178 0 0 0 19.21386139 0 0 0 19.40990099 65966180.97 65966180.97 1 19.60594059 0 0 0 19.8019802 0 0 0 Holds for the rest of the dat-files and for simulations with higer n numbers I just took n = 1000 for demonstration purposes. Best Richard On 18/04/2023 12:07, Peter Kj?r Willendrup wrote: Hi Richard, Hmm, no this sounds strange? Could you help by providing a little bit more context? I.e. * What are you running? * How? * Where do you read off the resulting Ncount? Best, Peter On 18 Apr 2023, at 11.58, Richard Wagner wrote: Dear McStas Experts and Community Is there a reason that the in Mcstas 3.3 Ncount is twice as high then the "Ray count" selected? eg.: -n 1000 -> # Ncount: 2000 Best Richard -- Richard Wagner Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- Richard Wagner Postdoctoral Research Engineer Nuclear and Particle Physics Group Institut Laue-Langevin - ILL 71, avenue des Martyrs CS 20156 38042 Grenoble Cedex 9 France www.ill.eu _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -- / ___|__/\_| | | ____|_ _| | FARHI Emmanuel \___ \\ | | | _| | || | Div Exp/Data Reduction and Analysis Team ___) /_ _| |___| |___ | || |___ Tel : +33 (1) 69 35 96 04 |____/ \/ |_____|_____|___|_____| Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From zengzr at ihep.ac.cn Fri May 12 11:17:16 2023 From: zengzr at ihep.ac.cn (=?UTF-8?B?5pu+5pm66JOJ?=) Date: Fri, 12 May 2023 17:17:16 +0800 (GMT+08:00) Subject: [mcstas-users] problem of saving file with McStas 3.2 Message-ID: <64635b6.7759.1880f4010e8.Coremail.zengzr@ihep.ac.cn> Hi, I reinstalled the McStas with the version of 3.2. But the instrument file can't be compiled properly. The files was created by saving another old file which was previously run properly.In addition, if I make any change to the old file and save it, the new file was not run properly too. May I ask for some help? Thanks very much! PS: the information for the error was as following: " loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline82_20230512_165013" INFO: Regenerating c-file: #beamline82.c ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- Info: 'Al_window' is a contributed component. Warning: DECLARE block contains 101 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= INFO: Recompiling: #beamline82.exe #beamline82.c: In function 'mcuse_dir': #beamline82.c:3629:8: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration] if(mkdir(dirname, 0777)) { ^ #beamline82.c: In function 'sighandler': #beamline82.c:5535:64: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] printf("\n# " MCCODE_STRING ": [pid %i] Signal %i detected", getpid(), sig); ^ #beamline82.c: At top level: #beamline82.c:8215:3: error: expected specifier-qualifier-list before 'return' return vecy[idx]; ^ #beamline82.c: In function 'class_SNS_source2_init': #beamline82.c:12169:20: error: expected ')' before '->' token #define fp (_comp->_parameters.fp) ^ #beamline82.c:12185:9: note: in expansion of macro 'fp' FILE *fp; ^ #beamline82.c:12190:3: error: 'Pvec' undeclared (first use in this function) Pvec=malloc(500*sizeof(double)); ^ #beamline82.c:12190:3: note: each undeclared identifier is reported only once for each function it appears in #beamline82.c:12191:3: error: 'inxvec' undeclared (first use in this function) inxvec=malloc(500*sizeof(double)); ^ #beamline82.c:12192:3: error: 'inyvec' undeclared (first use in this function) inyvec=malloc(500*sizeof(double)); ^ #beamline82.c:12193:3: error: 'tcol' undeclared (first use in this function) tcol=malloc(200*sizeof(double)); ^ #beamline82.c:12194:3: error: 'Ecol' undeclared (first use in this function) Ecol=malloc(200*sizeof(double)); ^ #beamline82.c:12195:3: error: 'tyval' undeclared (first use in this function) tyval=malloc(500*sizeof(double)); ^ #beamline82.c:12196:3: error: 'txval' undeclared (first use in this function) txval=malloc(500*sizeof(double)); ^ #beamline82.c:12209:45: error: 'filename' undeclared (first use in this function) printf("%s%s\n","Loading moderator file ",filename); ^ #beamline82.c:12210:4: warning: implicit declaration of function 'SNS_source2_load' [-Wimplicit-function-declaration] SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12210:74: error: 'ntvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12210:82: error: 'nEvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12216:2: error: 'INorm2' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12216:9: warning: implicit declaration of function 'integ1' [-Wimplicit-function-declaration] INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12216:16: error: 'xonly' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12217:3: warning: implicit declaration of function 'Pcalc' [-Wimplicit-function-declaration] Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12217:47: error: 'idxstart' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12217:57: error: 'idxstop' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12228:7: warning: implicit declaration of function 'tPcalc' [-Wimplicit-function-declaration] tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:14: error: 'txonly' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:52: error: 'tidxstart' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:63: error: 'tidxstop' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12235:4: error: 'EPmax' undeclared (first use in this function) EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c:12235:10: warning: implicit declaration of function 'quadfuncint' [-Wimplicit-function-declaration] EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c:12236:4: error: 'EPmin' undeclared (first use in this function) EPmin=quadfuncint(Emin/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c: In function 'class_SNS_source2_trace': #beamline82.c:13067:3: error: 'hdiv' undeclared (first use in this function) hdiv=theta; ^ #beamline82.c:13068:3: error: 'vdiv' undeclared (first use in this function) vdiv=phi; ^ #beamline82.c:13072:11: error: 'EPmin' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline82.c:13072:27: error: 'EPmax' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline82.c:13074:10: warning: implicit declaration of function 'zero_find' [-Wimplicit-function-declaration] Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:20: error: 'Pfunc' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:32: error: 'inxvec' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:39: error: 'idxstart' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:56: error: 'idxstop' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13078:16: error: 'nEvals' undeclared (first use in this function) while((idx1_parameters.line) ^ #beamline82.c:16517:0: note: this is the location of the previous definition #define line mcdis_line ^ #beamline82.c: In function 'class_Arm_display': #beamline82.c:16618:3: warning: implicit declaration of function 'line' [-Wimplicit-function-declaration] line(0,0,0,0.2,0,0); ^ start mcrun #beamline82.instr -d C:\mcstas-3.2\source_test\#beamline82_20230512_165017 -n 1000000 Instrument opened: #beamline8.instr loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline8_20230512_170946" INFO: Using existing c-file: #beamline8.c INFO: Using existing binary: #beamline8.exe INFO: === begin instrument: CSNS_img Creator: McStas 2.7.1 - Oct. 04, 2021 Source: #beamline8.instr Parameters: Lmin(double) Lmax(double) source_size(double) dist(double) moderator(string) Trace_enabled: yes Default_main: yes Embedded_runtime: yes end instrument begin simulation: . Format: McCode with text headers URL: http://www.mccode.org Creator: McStas 2.7.1 - Oct. 04, 2021 Instrument: #beamline8.instr Ncount: 1000000 Trace: no Gravitation: no Seed: 1683886311 Directory: . Param: Lmin=0.005 Param: Lmax=40 Param: source_size=0.1 Param: dist=2.32 Param: moderator=MCSTAS-DPHM-BL8.dat end simulation start mcrun #beamline8.instr -d C:\mcstas-3.2\source_test\#beamline8_20230512_170948 -n 1000000 Lmin=0.005 Lmax=40 source_size=0.1 dist=2.32 moderator=MCSTAS-DPHM-BL8.dat loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline8_20230512_171041" INFO: Regenerating c-file: #beamline8.c ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- Info: 'Al_window' is a contributed component. Warning: DECLARE block contains 101 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= INFO: Recompiling: #beamline8.exe #beamline8.c: In function 'mcuse_dir': #beamline8.c:3629:8: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration] if(mkdir(dirname, 0777)) { ^ #beamline8.c: In function 'sighandler': #beamline8.c:5535:64: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] printf("\n# " MCCODE_STRING ": [pid %i] Signal %i detected", getpid(), sig); ^ #beamline8.c: At top level: #beamline8.c:7992:3: error: expected specifier-qualifier-list before 'return' return vecy[idx]; ^ #beamline8.c: In function 'class_SNS_source2_init': #beamline8.c:8582:20: error: expected ')' before '->' token #define fp (_comp->_parameters.fp) ^ #beamline8.c:8598:9: note: in expansion of macro 'fp' FILE *fp; ^ #beamline8.c:8603:3: error: 'Pvec' undeclared (first use in this function) Pvec=malloc(500*sizeof(double)); ^ #beamline8.c:8603:3: note: each undeclared identifier is reported only once for each function it appears in #beamline8.c:8604:3: error: 'inxvec' undeclared (first use in this function) inxvec=malloc(500*sizeof(double)); ^ #beamline8.c:8605:3: error: 'inyvec' undeclared (first use in this function) inyvec=malloc(500*sizeof(double)); ^ #beamline8.c:8606:3: error: 'tcol' undeclared (first use in this function) tcol=malloc(200*sizeof(double)); ^ #beamline8.c:8607:3: error: 'Ecol' undeclared (first use in this function) Ecol=malloc(200*sizeof(double)); ^ #beamline8.c:8608:3: error: 'tyval' undeclared (first use in this function) tyval=malloc(500*sizeof(double)); ^ #beamline8.c:8609:3: error: 'txval' undeclared (first use in this function) txval=malloc(500*sizeof(double)); ^ #beamline8.c:8622:45: error: 'filename' undeclared (first use in this function) printf("%s%s\n","Loading moderator file ",filename); ^ #beamline8.c:8623:4: warning: implicit declaration of function 'SNS_source2_load' [-Wimplicit-function-declaration] SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8623:74: error: 'ntvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8623:82: error: 'nEvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8629:2: error: 'INorm2' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8629:9: warning: implicit declaration of function 'integ1' [-Wimplicit-function-declaration] INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8629:16: error: 'xonly' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8630:3: warning: implicit declaration of function 'Pcalc' [-Wimplicit-function-declaration] Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8630:47: error: 'idxstart' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8630:57: error: 'idxstop' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8641:7: warning: implicit declaration of function 'tPcalc' [-Wimplicit-function-declaration] tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:14: error: 'txonly' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:52: error: 'tidxstart' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:63: error: 'tidxstop' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8648:4: error: 'EPmax' undeclared (first use in this function) EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c:8648:10: warning: implicit declaration of function 'quadfuncint' [-Wimplicit-function-declaration] EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c:8649:4: error: 'EPmin' undeclared (first use in this function) EPmin=quadfuncint(Emin/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c: In function 'class_SNS_source2_trace': #beamline8.c:9041:3: error: 'hdiv' undeclared (first use in this function) hdiv=theta; ^ #beamline8.c:9042:3: error: 'vdiv' undeclared (first use in this function) vdiv=phi; ^ #beamline8.c:9046:11: error: 'EPmin' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline8.c:9046:27: error: 'EPmax' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline8.c:9048:10: warning: implicit declaration of function 'zero_find' [-Wimplicit-function-declaration] Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:20: error: 'Pfunc' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:32: error: 'inxvec' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:39: error: 'idxstart' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:56: error: 'idxstop' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9052:16: error: 'nEvals' undeclared (first use in this function) while((idx1_parameters.line) ^ #beamline8.c:10156:0: note: this is the location of the previous definition #define line mcdis_line ^ #beamline8.c: In function 'class_Arm_display': #beamline8.c:10257:3: warning: implicit declaration of function 'line' [-Wimplicit-function-declaration] line(0,0,0,0.2,0,0); ^ start mcrun #beamline8.instr -d C:\mcstas-3.2\source_test\#beamline8_20230512_171044 -n 1000000 " -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkwi at fysik.dtu.dk Fri May 12 14:22:01 2023 From: pkwi at fysik.dtu.dk (=?utf-8?B?UGV0ZXIgS2rDpnIgV2lsbGVuZHJ1cA==?=) Date: Fri, 12 May 2023 12:22:01 +0000 Subject: [mcstas-users] problem of saving file with McStas 3.2 In-Reply-To: <64635b6.7759.1880f4010e8.Coremail.zengzr@ihep.ac.cn> References: <64635b6.7759.1880f4010e8.Coremail.zengzr@ihep.ac.cn> Message-ID: <386FEC4F-B8B0-4079-9543-02BD0D4F5968@fysik.dtu.dk> Hello, It looks like you are porting a McStas 2.x instrument to 3.x, but this is hard to fully judge just from the error messages. :-) Please first check that you have followed all recommendations for the process by consulting https://github.com/McStasMcXtrace/McCode/wiki/HOWTO%3A-Modifying-a-McStas-2-instrument-for-use-under-McStas-3 If this is not enough to make the instrument run, please send along your .instr file plus any needed local .comp file and/or datafiles. Best Peter Willendrup Peter Kj?r Willendrup Forskningsingeni?r, Specialkonsulent DTU Physics [image001.gif] Technical University of Denmark [image002.gif] Department of Physics Fysikvej Building 307 DK-2800 Kongens Lyngby Main office at ESS DMSC COBIS, Ole Maal?es vej 3, 2200 K?benhavn N, Denmark Direct +45 2125 4612 Mobil +45 2125 4612 Fax +45 4593 2399 pkwi at fysik.dtu.dk On 12 May 2023, at 11.17, ??? wrote: Hi, I reinstalled the McStas with the version of 3.2. But the instrument file can't be compiled properly. The files was created by saving another old file which was previously run properly.In addition, if I make any change to the old file and save it, the new file was not run properly too. May I ask for some help? Thanks very much! PS: the information for the error was as following: " loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline82_20230512_165013" INFO: Regenerating c-file: #beamline82.c ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- Info: 'Al_window' is a contributed component. Warning: DECLARE block contains 101 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= INFO: Recompiling: #beamline82.exe #beamline82.c: In function 'mcuse_dir': #beamline82.c:3629:8: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration] if(mkdir(dirname, 0777)) { ^ #beamline82.c: In function 'sighandler': #beamline82.c:5535:64: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] printf("\n# " MCCODE_STRING ": [pid %i] Signal %i detected", getpid(), sig); ^ #beamline82.c: At top level: #beamline82.c:8215:3: error: expected specifier-qualifier-list before 'return' return vecy[idx]; ^ #beamline82.c: In function 'class_SNS_source2_init': #beamline82.c:12169:20: error: expected ')' before '->' token #define fp (_comp->_parameters.fp) ^ #beamline82.c:12185:9: note: in expansion of macro 'fp' FILE *fp; ^ #beamline82.c:12190:3: error: 'Pvec' undeclared (first use in this function) Pvec=malloc(500*sizeof(double)); ^ #beamline82.c:12190:3: note: each undeclared identifier is reported only once for each function it appears in #beamline82.c:12191:3: error: 'inxvec' undeclared (first use in this function) inxvec=malloc(500*sizeof(double)); ^ #beamline82.c:12192:3: error: 'inyvec' undeclared (first use in this function) inyvec=malloc(500*sizeof(double)); ^ #beamline82.c:12193:3: error: 'tcol' undeclared (first use in this function) tcol=malloc(200*sizeof(double)); ^ #beamline82.c:12194:3: error: 'Ecol' undeclared (first use in this function) Ecol=malloc(200*sizeof(double)); ^ #beamline82.c:12195:3: error: 'tyval' undeclared (first use in this function) tyval=malloc(500*sizeof(double)); ^ #beamline82.c:12196:3: error: 'txval' undeclared (first use in this function) txval=malloc(500*sizeof(double)); ^ #beamline82.c:12209:45: error: 'filename' undeclared (first use in this function) printf("%s%s\n","Loading moderator file ",filename); ^ #beamline82.c:12210:4: warning: implicit declaration of function 'SNS_source2_load' [-Wimplicit-function-declaration] SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12210:74: error: 'ntvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12210:82: error: 'nEvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline82.c:12216:2: error: 'INorm2' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12216:9: warning: implicit declaration of function 'integ1' [-Wimplicit-function-declaration] INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12216:16: error: 'xonly' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline82.c:12217:3: warning: implicit declaration of function 'Pcalc' [-Wimplicit-function-declaration] Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12217:47: error: 'idxstart' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12217:57: error: 'idxstop' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline82.c:12228:7: warning: implicit declaration of function 'tPcalc' [-Wimplicit-function-declaration] tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:14: error: 'txonly' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:52: error: 'tidxstart' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12228:63: error: 'tidxstop' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline82.c:12235:4: error: 'EPmax' undeclared (first use in this function) EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c:12235:10: warning: implicit declaration of function 'quadfuncint' [-Wimplicit-function-declaration] EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c:12236:4: error: 'EPmin' undeclared (first use in this function) EPmin=quadfuncint(Emin/1000.0,xylength,inxvec,Pvec); ^ #beamline82.c: In function 'class_SNS_source2_trace': #beamline82.c:13067:3: error: 'hdiv' undeclared (first use in this function) hdiv=theta; ^ #beamline82.c:13068:3: error: 'vdiv' undeclared (first use in this function) vdiv=phi; ^ #beamline82.c:13072:11: error: 'EPmin' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline82.c:13072:27: error: 'EPmax' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline82.c:13074:10: warning: implicit declaration of function 'zero_find' [-Wimplicit-function-declaration] Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:20: error: 'Pfunc' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:32: error: 'inxvec' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:39: error: 'idxstart' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13074:56: error: 'idxstop' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline82.c:13078:16: error: 'nEvals' undeclared (first use in this function) while((idx1_parameters.line) ^ #beamline82.c:16517:0: note: this is the location of the previous definition #define line mcdis_line ^ #beamline82.c: In function 'class_Arm_display': #beamline82.c:16618:3: warning: implicit declaration of function 'line' [-Wimplicit-function-declaration] line(0,0,0,0.2,0,0); ^ start mcrun #beamline82.instr -d C:\mcstas-3.2\source_test\#beamline82_20230512_165017 -n 1000000 Instrument opened: #beamline8.instr loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline8_20230512_170946" INFO: Using existing c-file: #beamline8.c INFO: Using existing binary: #beamline8.exe INFO: === begin instrument: CSNS_img Creator: McStas 2.7.1 - Oct. 04, 2021 Source: #beamline8.instr Parameters: Lmin(double) Lmax(double) source_size(double) dist(double) moderator(string) Trace_enabled: yes Default_main: yes Embedded_runtime: yes end instrument begin simulation: . Format: McCode with text headers URL: http://www.mccode.org Creator: McStas 2.7.1 - Oct. 04, 2021 Instrument: #beamline8.instr Ncount: 1000000 Trace: no Gravitation: no Seed: 1683886311 Directory: . Param: Lmin=0.005 Param: Lmax=40 Param: source_size=0.1 Param: dist=2.32 Param: moderator=MCSTAS-DPHM-BL8.dat end simulation start mcrun #beamline8.instr -d C:\mcstas-3.2\source_test\#beamline8_20230512_170948 -n 1000000 Lmin=0.005 Lmax=40 source_size=0.1 dist=2.32 moderator=MCSTAS-DPHM-BL8.dat loading system configuration INFO: No output directory specified (--dir) INFO: Using directory: "#beamline8_20230512_171041" INFO: Regenerating c-file: #beamline8.c ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- Info: 'Al_window' is a contributed component. Warning: DECLARE block contains 101 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= INFO: Recompiling: #beamline8.exe #beamline8.c: In function 'mcuse_dir': #beamline8.c:3629:8: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration] if(mkdir(dirname, 0777)) { ^ #beamline8.c: In function 'sighandler': #beamline8.c:5535:64: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] printf("\n# " MCCODE_STRING ": [pid %i] Signal %i detected", getpid(), sig); ^ #beamline8.c: At top level: #beamline8.c:7992:3: error: expected specifier-qualifier-list before 'return' return vecy[idx]; ^ #beamline8.c: In function 'class_SNS_source2_init': #beamline8.c:8582:20: error: expected ')' before '->' token #define fp (_comp->_parameters.fp) ^ #beamline8.c:8598:9: note: in expansion of macro 'fp' FILE *fp; ^ #beamline8.c:8603:3: error: 'Pvec' undeclared (first use in this function) Pvec=malloc(500*sizeof(double)); ^ #beamline8.c:8603:3: note: each undeclared identifier is reported only once for each function it appears in #beamline8.c:8604:3: error: 'inxvec' undeclared (first use in this function) inxvec=malloc(500*sizeof(double)); ^ #beamline8.c:8605:3: error: 'inyvec' undeclared (first use in this function) inyvec=malloc(500*sizeof(double)); ^ #beamline8.c:8606:3: error: 'tcol' undeclared (first use in this function) tcol=malloc(200*sizeof(double)); ^ #beamline8.c:8607:3: error: 'Ecol' undeclared (first use in this function) Ecol=malloc(200*sizeof(double)); ^ #beamline8.c:8608:3: error: 'tyval' undeclared (first use in this function) tyval=malloc(500*sizeof(double)); ^ #beamline8.c:8609:3: error: 'txval' undeclared (first use in this function) txval=malloc(500*sizeof(double)); ^ #beamline8.c:8622:45: error: 'filename' undeclared (first use in this function) printf("%s%s\n","Loading moderator file ",filename); ^ #beamline8.c:8623:4: warning: implicit declaration of function 'SNS_source2_load' [-Wimplicit-function-declaration] SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8623:74: error: 'ntvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8623:82: error: 'nEvals' undeclared (first use in this function) SNS_source2_load(filename,inxvec,inyvec,0,2,&xylength,tcol,Ecol,Imat,&ntvals,&nEvals); ^ #beamline8.c:8629:2: error: 'INorm2' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8629:9: warning: implicit declaration of function 'integ1' [-Wimplicit-function-declaration] INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8629:16: error: 'xonly' undeclared (first use in this function) INorm2=integ1(xonly,Emin/1000.0,Emax/1000.0,0.001); ^ #beamline8.c:8630:3: warning: implicit declaration of function 'Pcalc' [-Wimplicit-function-declaration] Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8630:47: error: 'idxstart' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8630:57: error: 'idxstop' undeclared (first use in this function) Pcalc(xonly,llim,hlim,inxvec,Pvec,xylength,&idxstart,&idxstop); ^ #beamline8.c:8641:7: warning: implicit declaration of function 'tPcalc' [-Wimplicit-function-declaration] tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:14: error: 'txonly' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:52: error: 'tidxstart' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8641:63: error: 'tidxstop' undeclared (first use in this function) tPcalc(txonly,ltlim,htlim,tcol,tPvec,ntvals,&tidxstart,&tidxstop); ^ #beamline8.c:8648:4: error: 'EPmax' undeclared (first use in this function) EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c:8648:10: warning: implicit declaration of function 'quadfuncint' [-Wimplicit-function-declaration] EPmax=quadfuncint(Emax/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c:8649:4: error: 'EPmin' undeclared (first use in this function) EPmin=quadfuncint(Emin/1000.0,xylength,inxvec,Pvec); ^ #beamline8.c: In function 'class_SNS_source2_trace': #beamline8.c:9041:3: error: 'hdiv' undeclared (first use in this function) hdiv=theta; ^ #beamline8.c:9042:3: error: 'vdiv' undeclared (first use in this function) vdiv=phi; ^ #beamline8.c:9046:11: error: 'EPmin' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline8.c:9046:27: error: 'EPmax' undeclared (first use in this function) randp=EPmin+rand01()*(EPmax-EPmin); ^ #beamline8.c:9048:10: warning: implicit declaration of function 'zero_find' [-Wimplicit-function-declaration] Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:20: error: 'Pfunc' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:32: error: 'inxvec' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:39: error: 'idxstart' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9048:56: error: 'idxstop' undeclared (first use in this function) Eval=zero_find(Pfunc,randp,inxvec[idxstart],inxvec[idxstop],1e-5); ^ #beamline8.c:9052:16: error: 'nEvals' undeclared (first use in this function) while((idx1_parameters.line) ^ #beamline8.c:10156:0: note: this is the location of the previous definition #define line mcdis_line ^ #beamline8.c: In function 'class_Arm_display': #beamline8.c:10257:3: warning: implicit declaration of function 'line' [-Wimplicit-function-declaration] line(0,0,0,0.2,0,0); ^ start mcrun #beamline8.instr -d C:\mcstas-3.2\source_test\#beamline8_20230512_171044 -n 1000000 " _______________________________________________ mcstas-users mailing list mcstas-users at mcstas.org https://mailman2.mcstas.org/mailman/listinfo/mcstas-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 58 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.gif Type: image/gif Size: 1055 bytes Desc: image002.gif URL: From emmanuel.farhi at synchrotron-soleil.fr Tue May 23 10:22:41 2023 From: emmanuel.farhi at synchrotron-soleil.fr (FARHI Emmanuel) Date: Tue, 23 May 2023 10:22:41 +0200 (CEST) Subject: [mcstas-users] python/web developer job offer at Synchrotron SOLEIL, FR Message-ID: <1651789310.42301620.1684830161549.JavaMail.zimbra@synchrotron-soleil.fr> Hello, The SOLEIL Synchrotron near Paris, France is hiring a python/web developer for protein crystallography data acquisition/treatment. The job offer is detailed at: [ https://www-synchrotron--soleil-fr.translate.goog/fr/emplois/developpeureuse-python-et-web?_x_tr_sl=fr&_x_tr_tl=en&_x_tr_hl=fr&_x_tr_pto=wapp | * https://www-synchrotron--soleil-fr.translate.goog/fr/emplois/developpeureuse-python-et-web?_x_tr_sl=fr&_x_tr_tl=en&_x_tr_hl=fr&_x_tr_pto=wapp ] You are invited to apply on the job description page (with letter and curriculum). Emmanuel FARHI, Data Reduction and Analysis Group leader. -- / ___| __/\_ | | | ____|_ _| | FARHI Emmanuel \___ \ \ | | | _| | || | Div Exp/Data Reduction and Analysis Team ___) /_ _ | |___| |___ | || |___ Tel : +33 (1) 69 35 96 04 |____/ \/ |_____|_____|___|_____| Saint-Aubin BP 48 - 91192 GIF/YVETTE CEDEX SYNCHROTRON http://www.synchrotron-soleil.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: