Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
79433a5
Add mccode-antlr in runtime deps to allow CI testing from McCode repo
willend Aug 25, 2026
06afc79
Attempt enabling mcstas-antlr testing in basic workflow
willend Aug 25, 2026
1a9088a
Add ${{ matrix.cogen }} in suffix and port to 'testsuite'
willend Aug 25, 2026
fec238c
Add 'cogen' field in job name
willend Aug 25, 2026
3b4a793
Patch mcrun/mccode.py to support multi-line CFLAGS= from mcstas-antlr
willend Aug 25, 2026
f488fb6
Remove K&R style init in SNS_source_analytic
willend Aug 26, 2026
1bc9342
Drop SNS_analytic_test use of GETPATH(data) - instrument-specific fil…
willend Aug 26, 2026
3324819
Drop use of GETPATH(data) in Gallmeier_SNS_decoupled_poisoned by loca…
willend Aug 26, 2026
2d542f9
Add local file for Granroth_SNS_decoupled_poisoned.instr
willend Aug 26, 2026
1b673c8
Remove GETPATH() usage in Granroth_SNS_decoupled_poisoned by local in…
willend Aug 26, 2026
a9f98b9
Get rid of meaningless GETPATH() in ESS_BEER_MCPL
willend Aug 26, 2026
1b8da91
Remove Tools_ONION use of GETPATH by local input file
willend Aug 26, 2026
af94765
Apply clangformat to SNS_source_analytic
willend Aug 26, 2026
f984a80
Workaround, fix later: ignore warnings (raised as errors?) from mccod…
willend Aug 26, 2026
8b5f40c
Use single quotes
willend Aug 26, 2026
35c86ad
Correct tar filename
willend Aug 26, 2026
524165c
Use labels 'classic' and 'antlr' as cogen identifiers
willend Aug 26, 2026
6183d32
Path correction
willend Aug 27, 2026
da486e8
Correct tar output path in testsuite
willend Aug 27, 2026
7ecb5ea
Inject -I to mcstas-antlr
willend Aug 27, 2026
33feb83
Invert order of setting up mcstas-antlr
willend Aug 27, 2026
a4d356f
Attempt enabling mcxtrace-antlr in basictest
willend Aug 27, 2026
b0de79d
Better set up for McXtrace...
willend Aug 27, 2026
7e0c2f6
Make mcrun tolerate spaces (as in arguments for) COGEN
willend Aug 27, 2026
9c018d1
Fix tar filename copy-paste problem in McXtrace basic workflow
willend Aug 27, 2026
9121a7f
Attempt injecting MCCODEANTLR_FLAGS_NEXUS env var from mcstas / mccod…
willend Aug 27, 2026
8f03efa
Pick the right field...
willend Aug 27, 2026
7fc7ad5
Use MCCODEANTLR_FLAGS__NEXUS to let mcstas-/mcxtrace-antlr know our c…
willend Aug 27, 2026
bee9e22
Disable mcxtrace-antlr test for now, needs revision relating to allow…
willend Aug 27, 2026
ab226e5
Merge branch 'main' into enable-mcstas-antlr-CI
willend Aug 27, 2026
81ea5ea
Remove extra junk chars in %include statement - should let mcstas-ant…
willend Aug 27, 2026
d94d281
Comment never-executed Monitor with WHEN clause disliked by mcstas-antlr
willend Aug 27, 2026
906e7a7
Remove meaningless WHEN(1==1)
willend Aug 27, 2026
3aa69cd
Remove trailing comment after %include clause, disliked by mcstas-antlr
willend Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 33 additions & 14 deletions .github/workflows/mcstas-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
matrix:
include:
# --- built from source via cmake ---
- { method: source, os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: source, os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: source, os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
- { method: source, os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
# --- built via conda ---
- { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: conda, os: macos-latest, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: '2' }
- { method: conda, os: windows-latest, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi', nmpi: 'auto' }
- { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
- { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'antlr'}
- { method: conda, os: macos-latest, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: '2', cogen: 'classic'}
- { method: conda, os: windows-latest, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi', nmpi: 'auto', cogen: 'classic'}

name: ${{ matrix.os }}.${{ matrix.method }}.${{ matrix.CC || 'default' }}.${{ matrix.mpi }}
name: ${{ matrix.os }}.${{ matrix.method }}.${{ matrix.cogen }}.${{ matrix.CC || 'default' }}.${{ matrix.mpi }}
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.CC }}
Expand Down Expand Up @@ -264,6 +265,24 @@ jobs:
run: |
./src/devel/bin/mccode-build-conda -m mcstas -s $PWD/src -b $PWD/build_mcstas

- name: Setup mcstas-antlr
id: setup-mcstas-antlr
if: matrix.cogen == 'antlr'
continue-on-error: true
run: |
# Cache checkout src/ with mccode-antlr
if [ "${{ matrix.cogen }}" == "antlr" ];
then
# Set up config file to use mcstas-antlr
MCCODE_CONFIG=`mcrun --write-user-config | cut -f4 -d\ `
sed -i.bak s+\"MCCOGEN\"\:\ \"mcstas\",+\"MCCOGEN\"\:\ \"mcstas-antlr\ -I\$\{CONDA_PREFIX\}/share/mcstas/resources\",+g ${MCCODE_CONFIG}
grep -H COGEN ${MCCODE_CONFIG}
MCCODEANTLR_FLAGS__NEXUS=`grep NEXUSFLAGS ${MCCODE_CONFIG} |cut -f4 -d\"`
echo "MCCODEANTLR_FLAGS__NEXUS=${MCCODEANTLR_FLAGS__NEXUS}" >> "$GITHUB_ENV"
# Pre-poulate mccode-antlr cache
mccode-antlr cache populate --from-path src/ --flavor mcstas
fi

- name: Validate build output (conda)
id: build-validation
if: always() && matrix.method == 'conda'
Expand Down Expand Up @@ -327,7 +346,7 @@ jobs:
fi
test -n "$(command -v mcstas${EXESUFFIX})"
mcstas${EXESUFFIX} --version
mctest${SUFFIX} --instr=Test_RNG_rand01 --testdir=run_rngtest --suffix=${{ matrix.method }} --uid=${RUNNER_TRACKING_ID}
mctest${SUFFIX} --instr=Test_RNG_rand01 --testdir=run_rngtest --suffix=${{ matrix.cogen }}_${{ matrix.method }} --uid=${RUNNER_TRACKING_ID}
export SUM=`find run_rngtest -name rngout.dat | xargs -n1 grep -v \# | ${MD5SUM} | cut -f1 -d\ `
export EXPECTED="f192ce4609e2225bf9d42ce9c5fa5a86"
if [ "${EXPECTED}" == "${SUM}" ];
Expand Down Expand Up @@ -355,8 +374,8 @@ jobs:
fi
test -n "$(command -v mcstas${EXESUFFIX})"
mcstas${EXESUFFIX} --version
mctest${SUFFIX} --instr=BNL_H8,ISIS_CRISP,templateSANS_Mantid,NCrystal_example,ESS_BEER_MCPL,Test_MCPL_input,Test_MCPL_output,Test_KDSource --testdir=run_basictests --suffix=${{ matrix.method }} --uid=${RUNNER_TRACKING_ID}
mctest${SUFFIX} --mpi=${{ matrix.nmpi }} --instr=BNL_H8,ISIS_CRISP,templateSANS_Mantid,NCrystal_example,ESS_BEER_MCPL,Test_MCPL_input,Test_MCPL_output,Test_KDSource --testdir=run_basictests --suffix=${{ matrix.method }}_${{ matrix.mpi }} --uid=${RUNNER_TRACKING_ID}
mctest${SUFFIX} --instr=BNL_H8,ISIS_CRISP,templateSANS_Mantid,NCrystal_example,ESS_BEER_MCPL,Test_MCPL_input,Test_MCPL_output,Test_KDSource --testdir=run_basictests --suffix=${{ matrix.cogen }}_${{ matrix.method }} --uid=${RUNNER_TRACKING_ID}
mctest${SUFFIX} --mpi=${{ matrix.nmpi }} --instr=BNL_H8,ISIS_CRISP,templateSANS_Mantid,NCrystal_example,ESS_BEER_MCPL,Test_MCPL_input,Test_MCPL_output,Test_KDSource --testdir=run_basictests --suffix=${{ matrix.cogen }}_${{ matrix.method }}_${{ matrix.mpi }} --uid=${RUNNER_TRACKING_ID}

- name: Check for modified instruments
id: instr-test
Expand Down Expand Up @@ -412,7 +431,7 @@ jobs:
NUMMATCH=`find src/mcstas-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
if [ "$NUMMATCH" -gt "0" ];
then
${MCTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir run_mctest --comp=${comp} --suffix=CHANGES_${comp}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MCTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MCTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir run_mctest --comp=${comp} --suffix=${{ matrix.cogen }}_CHANGES_${comp}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MCTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
else
echo No matching tests found
fi
Expand Down Expand Up @@ -441,7 +460,7 @@ jobs:
export SCOPE=" "
fi
mkdir -p run_mctest && cd run_mctest
${MCTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir $PWD $SCOPE --suffix=CHANGES_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MCTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MCTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir $PWD $SCOPE --suffix=CHANGES_${{ matrix.cogen }}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MCTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MCVIEWTEST_EXECUTABLE} --nobrowse $PWD
fi

Expand All @@ -454,15 +473,15 @@ jobs:
set -x
# Clear out binaries from sim dir and tar up artifact
ls | grep run_ | xargs -n1 ./src/devel/bin/mccode-simdir-cleanfiles -d
tar cvfz mcstas-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz run_*
tar cvfz mmcstas-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz run_*

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
path: "mcstas-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz"
name: mcstas-artefacts-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
path: "mmcstas-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz"

- name: Setup tmate session for manual debugging
uses: mxschmitt/action-tmate@v3
Expand Down
35 changes: 27 additions & 8 deletions .github/workflows/mcstas-conda-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, mpi: 'openmpi', nmpi: 'auto' }
- { os: macos-latest, mpi: 'openmpi', nmpi: '2' }
- { os: windows-latest, mpi: 'msmpi', nmpi: 'auto' }
- { os: ubuntu-latest, mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
- { os: ubuntu-latest, mpi: 'openmpi', nmpi: 'auto', cogen: 'antlr'}
- { os: macos-latest, mpi: 'openmpi', nmpi: '2', cogen: 'classic'}
- { os: windows-latest, mpi: 'msmpi', nmpi: 'auto', cogen: 'classic'}

name: ${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite
name: ${{ matrix.os }}.${{ matrix.mpi }}.${{ matrix.cogen }}.conda-testsuite
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -60,6 +61,24 @@ jobs:
run: |
./src/devel/bin/mccode-build-conda -m mcstas -s $PWD/src -b $PWD/build_mcstas

- name: Setup mcstas-antlr
id: setup-mcstas-antlr
if: matrix.cogen == 'antlr'
continue-on-error: true
run: |
# Cache checkout src/ with mccode-antlr
if [ "${{ matrix.cogen }}" == "antlr" ];
then
# Set up config file to use mcstas-antlr
MCCODE_CONFIG=`mcrun --write-user-config | cut -f4 -d\ `
sed -i.bak s+\"MCCOGEN\"\:\ \"mcstas\",+\"MCCOGEN\"\:\ \"mcstas-antlr\ -I\$\{CONDA_PREFIX\}/share/mcstas/resources\",+g ${MCCODE_CONFIG}
grep -H COGEN ${MCCODE_CONFIG}
MCCODEANTLR_FLAGS__NEXUS=`grep NEXUSFLAGS ${MCCODE_CONFIG} |cut -f4 -d\"`
echo "MCCODEANTLR_FLAGS__NEXUS=${MCCODEANTLR_FLAGS__NEXUS}" >> "$GITHUB_ENV"
# Pre-poulate mccode-antlr cache
mccode-antlr cache populate --from-path src/ --flavor mcstas
fi

- name: Validate build output
id: build-validation
if: always()
Expand Down Expand Up @@ -107,7 +126,7 @@ jobs:
export TMPDIR=${HOME}/tmp
fi
# Run the test with 2 core mpi
${MCTEST_EXECUTABLE} --verbose --testdir $PWD --suffix ${{ matrix.os }}_${{ matrix.mpi }} --mpi=${{ matrix.nmpi }} --uid=${RUNNER_TRACKING_ID}
${MCTEST_EXECUTABLE} --verbose --testdir $PWD --suffix ${{ matrix.cogen }}_${{ matrix.os }}_${{ matrix.mpi }} --mpi=${{ matrix.nmpi }} --uid=${RUNNER_TRACKING_ID}
- name: 'Tar output files'
id: tar-package
if: always()
Expand All @@ -117,15 +136,15 @@ jobs:
set -x
# Clear out binaries from sim dir and tar up artifact
ls | grep run_ | xargs -n1 ./src/devel/bin/mccode-simdir-cleanfiles -d
tar cvfz mcstas-${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite_output.tgz run_test-suite
tar cvfz mcstas-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite_output.tgz run_test-suite

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite
path: "mcstas-${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite_output.tgz"
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.cogen }}.${{ matrix.mpi }}.conda-testsuite
path: "mcstas-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.mpi }}.conda-testsuite_output.tgz"

- name: Setup tmate session for manual debugging
uses: mxschmitt/action-tmate@v3
Expand Down
43 changes: 31 additions & 12 deletions .github/workflows/mcxtrace-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
matrix:
include:
# --- built from source via cmake ---
- { method: source, os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: source, os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: source, os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
- { method: source, os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
# --- built via conda ---
- { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto' }
- { method: conda, os: macos-latest, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: '2' }
- { method: conda, os: windows-latest, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi', nmpi: 'auto' }
- { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'classic'}
# - { method: conda, os: ubuntu-latest, CC: gcc, CXX: g++, python: '3.13', mpi: 'openmpi', nmpi: 'auto', cogen: 'antlr'}
- { method: conda, os: macos-latest, CC: clang, CXX: clang++, python: '3.13', mpi: 'openmpi', nmpi: '2', cogen: 'classic'}
- { method: conda, os: windows-latest, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi', nmpi: 'auto', cogen: 'classic'}

name: ${{ matrix.os }}.${{ matrix.method }}.${{ matrix.CC || 'default' }}.${{ matrix.mpi }}
name: ${{ matrix.os }}.${{ matrix.method }}.${{ matrix.cogen }}.${{ matrix.CC || 'default' }}.${{ matrix.mpi }}
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.CC }}
Expand Down Expand Up @@ -271,6 +272,24 @@ jobs:
run: |
./src/devel/bin/mccode-build-conda -m mcxtrace -s $PWD/src -b $PWD/build_mcxtrace

- name: Setup mcxtrace-antlr
id: setup-mcxtrace-antlr
if: matrix.cogen == 'antlr'
continue-on-error: true
run: |
# Cache checkout src/ with mccode-antlr
if [ "${{ matrix.cogen }}" == "antlr" ];
then
# Set up config file to use mcxtrace-antlr
MCCODE_CONFIG=`mxrun --write-user-config | cut -f4 -d\ `
sed -i.bak s+\"MCCOGEN\"\:\ \"mcxtrace\",+\"MCCOGEN\"\:\ \"mcxtrace-antlr\ -I\$\{CONDA_PREFIX\}/share/mcxtrace/resources\",+g ${MCCODE_CONFIG}
grep -H COGEN ${MCCODE_CONFIG}
MCCODEANTLR_FLAGS__NEXUS=`grep NEXUSFLAGS ${MCCODE_CONFIG} |cut -f4 -d\"`
echo "MCCODEANTLR_FLAGS__NEXUS=${MCCODEANTLR_FLAGS__NEXUS}" >> "$GITHUB_ENV"
# Pre-poulate mccode-antlr cache
mccode-antlr cache populate --from-path src/ --flavor mcxtrace
fi

- name: Validate build output (conda)
id: build-validation
if: always() && matrix.method == 'conda'
Expand Down Expand Up @@ -363,7 +382,7 @@ jobs:
test -n "$(command -v mcxtrace${EXESUFFIX})"
mcxtrace${EXESUFFIX} --version
mxtest${SUFFIX} --instr=JJ_SAXS,ESRF_BM29,Test_MCPL_input,Test_MCPL_output,Test_Absorption --testdir=run_basictests --suffix=${{ matrix.method }} --uid=${RUNNER_TRACKING_ID}
mxtest${SUFFIX} --mpi=${{ matrix.nmpi }} --instr=JJ_SAXS,ESRF_BM29,Test_MCPL_input,Test_MCPL_output,Test_Absorption --testdir=run_basictests --suffix=${{ matrix.method }}_${{ matrix.mpi }} --uid=${RUNNER_TRACKING_ID}
mxtest${SUFFIX} --mpi=${{ matrix.nmpi }} --instr=JJ_SAXS,ESRF_BM29,Test_MCPL_input,Test_MCPL_output,Test_Absorption --testdir=run_basictests --suffix=${{ matrix.cogen }}_${{ matrix.method }}_${{ matrix.mpi }} --uid=${RUNNER_TRACKING_ID}

- name: Check for modified instruments
id: instr-test
Expand Down Expand Up @@ -419,7 +438,7 @@ jobs:
NUMMATCH=`find src/mcxtrace-comps -name \*.instr -exec grep -H ${comp} \{\} \; | cut -f1 -d: | sort | uniq | wc -l`
if [ "$NUMMATCH" -gt "0" ];
then
${MXTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir run_mxtest --comp=${comp} --suffix=CHANGES_${comp}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MXTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MXTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir run_mxtest --comp=${comp} --suffix=${{ matrix.cogen }}_CHANGES_${comp}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MXTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
else
echo No matching tests found
fi
Expand Down Expand Up @@ -448,7 +467,7 @@ jobs:
export SCOPE=" "
fi
mkdir -p run_mxtest && cd run_mxtest
${MXTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir $PWD $SCOPE --suffix=CHANGES_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MXTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MXTEST_EXECUTABLE} --mpi=${{ matrix.nmpi }} --testdir $PWD $SCOPE --suffix=CHANGES_${{ matrix.cogen }}_${{ matrix.method }}_${{ matrix.CC || 'default' }}_${{ matrix.mpi }} $PERMISSIVE --verbose --uid=${RUNNER_TRACKING_ID} || { echo "${MXTEST_EXECUTABLE} failed with exit code $?"; exit 1; }
${MXVIEWTEST_EXECUTABLE} --nobrowse $PWD
fi

Expand All @@ -461,15 +480,15 @@ jobs:
set -x
# Clear out binaries from sim dir and tar up artifact
ls | grep run_ | xargs -n1 ./src/devel/bin/mccode-simdir-cleanfiles -d
tar cvfz mcxtrace-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz run_*
tar cvfz mcxtrace-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz run_*

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v6
if: always()
with:
name: mcxtrace-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
path: "mcxtrace-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz"
name: mcxtrace-artefacts-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
path: "mcxtrace-${{ matrix.cogen }}.${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}_output.tgz"

- name: Setup tmate session for manual debugging
uses: mxschmitt/action-tmate@v3
Expand Down
2 changes: 1 addition & 1 deletion devel/bin/mccode-create-conda-yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_deplist( cfg ):
return deps

#The rest are run-time deps:
deps += ['python','c-compiler','pyaml','numpy','psutil']
deps += ['python','c-compiler','pyaml','numpy','psutil','mccode-antlr']
if cfg.is_unix:
deps += ['bash']
if cfg.is_win:
Expand Down
4 changes: 3 additions & 1 deletion mcstas-comps/contrib/SANSPDBFast.comp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ NOACC

SHARE
%{
%include "read_table-lib"; // for Open_File
// for Open_File
%include "read_table-lib"

#include <gsl/gsl_sf_legendre.h>
#include <gsl/gsl_sf_bessel.h>
%include "mccode-complex-lib"

#ifndef SANSPDB
#define SANSPDB
#define SANSPDBOrderOfHarmonics 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ COMPONENT sans_spheres = SANS_spheres2(xwidth=0.02,
singlesp=0,
Qmind = 0.00003,
Qmaxd = 0.001)
WHEN (1==1) AT (0, 0, 2.25) RELATIVE src
AT (0, 0, 2.25) RELATIVE src

/*
COMPONENT px4 = COPY(px1)(filename="px4")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ COMPONENT Monitor2_xy4 = Monitor_nD(
WHEN (Guide == 4)
AT (0, 0, length+2) RELATIVE Guide_Position

/* PW 20260827: I no longer rememeber what (temporary?) purpose this monitor may have had -
Visualisation? Debugging?
Commenting it now, courtesy of mcstas-antlr that evaluates the WHEN condition as
literal WHEN(false) withoout false having a definiton.
... interestingly a simlar WHEN clause is parsed correctly in ESS_butterfly_MCPL_test? */

/*
COMPONENT dummy = PSD_monitor_4PI(filename="junk", radius=length+1.1, restore_neutron=1)
WHEN (1==0 ) AT (0,0,0) ABSOLUTE
WHEN (1==0) AT (0,0,0) ABSOLUTE
*/

END
2 changes: 1 addition & 1 deletion mcstas-comps/union/Union_abs_logger_nD.comp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ SHARE
#error "The Union_init component must be included before this Union_abs_logger_nD component"
#endif

%include "monitor_nd-lib" // Internally avoids double import
%include "monitor_nd-lib"
%include "read_table-lib"
%include "interoff-lib"

Expand Down
Loading
Loading