McStasMcXtrace / McCode

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
https://github.com/McStasMcXtrace/McCode/wiki
GNU General Public License v3.0
78 stars 54 forks source link

Complex numbers with visual c / cl.exe #1579

Open willend opened 8 months ago

willend commented 8 months ago

Place holder - complex numbers seems to need some footwork across the code base... https://stackoverflow.com/questions/49055462/complex-double-in-vc

willend commented 8 months ago

In McXtrace, the current test output looks like this through conda/cl.exe: https://tmp.mcxtrace.org/3.4.24_Windows.html

a grep command for errors here: https://tmp.mcxtrace.org/errors.txt

Initial indications are that (at least) this list of instruments is relevant...

Czerny_Turner.c
DBD_IBM_Si_analyzer_BC.c
ESRF_ID01.c
MAXII_711.c
MAXII_811.c
MAXIV_FemtoMAX.c
PBD_BT.c
SOLEIL_DISCO.c
Template_DCM.c
Template_Johann_spec.c
Test_Mirrors.c
Test_Mono.c
Test_mirror_elliptic.c
XFEL_SPB.c

... which is a good portion of the full list of non-compiling instruments:

Czerny_Turner.c
DBD_IBM_Si_analyzer_BC.c
ESRF_ID01.c
JJ_SAXS.c
MAXII_711.c
MAXII_811.c
MAXIV_Bloch.c
MAXIV_FemtoMAX.c
PBD_BT.c
SOLEIL_DISCO.c
Template_1Slit_Diff.c
Template_2Slit_Diff.c
Template_DCM.c
Template_Johann_spec.c
Test_KB.c
Test_ML_elliptic.c
Test_Mirror_toroid.c
Test_Mirrors.c
Test_Mono.c
Test_capillary.c
Test_mirror_elliptic.c
XFEL_SPB.c