From b7626906f344cde460afb09a6824b1a86068cc69 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Wed, 9 Sep 2026 16:38:42 +0200 Subject: [PATCH] Adapt two affected instruments for consequences of https://github.com/mccode-dev/McCode/pull/2627 --- mcstas-comps/examples/ILL/ILL_H5/ILL_H5.instr | 2 +- mcstas-comps/examples/ILL/ILL_H5_new/ILL_H5_new.instr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mcstas-comps/examples/ILL/ILL_H5/ILL_H5.instr b/mcstas-comps/examples/ILL/ILL_H5/ILL_H5.instr index 900482980e..9c1c97e32f 100755 --- a/mcstas-comps/examples/ILL/ILL_H5/ILL_H5.instr +++ b/mcstas-comps/examples/ILL/ILL_H5/ILL_H5.instr @@ -944,7 +944,7 @@ EXTEND %{ %} COMPONENT H511_mirror_outdXY = COPY(H511_mirror_ReflectXY)(options="dx limits=[-2 2], dy limits=[-2 2]") -AT (0,0,0) RELATIVE H511_mirror_ReflectXY +WHEN flag==1 AT (0,0,0) RELATIVE H511_mirror_ReflectXY COMPONENT H511_S3 = COPY(H51_S2)(l=3, nelements=2, h1=0.055) AT (0,0,0.755) RELATIVE H511_mirror_outdir diff --git a/mcstas-comps/examples/ILL/ILL_H5_new/ILL_H5_new.instr b/mcstas-comps/examples/ILL/ILL_H5_new/ILL_H5_new.instr index 2aeefe2cf0..46ffe01327 100644 --- a/mcstas-comps/examples/ILL/ILL_H5_new/ILL_H5_new.instr +++ b/mcstas-comps/examples/ILL/ILL_H5_new/ILL_H5_new.instr @@ -1083,7 +1083,7 @@ EXTEND %{ %} COMPONENT H522_mirror_outdXY = COPY(H522_mirror_ReflectXY)(options="dx limits=[-2 2], dy limits=[-2 2]") -AT (0,0,0) RELATIVE H522_mirror_ReflectXY +WHEN flag==1 AT (0,0,0) RELATIVE H522_mirror_ReflectXY /* WASP polarising V-mirror */ COMPONENT WASP_Vpolariser = Pol_guide_vmirror(xwidth = 0.075, yheight = 0.12, @@ -1399,7 +1399,7 @@ EXTEND %{ %} COMPONENT H511_mirror_outdXY = COPY(H511_mirror_ReflectXY)(options="dx limits=[-2 2], dy limits=[-2 2]") -AT (0,0,0) RELATIVE H511_mirror_ReflectXY +WHEN flag==1 AT (0,0,0) RELATIVE H511_mirror_ReflectXY COMPONENT H511_S3 = COPY(H51_S2)(l=3, nelements=2, h1=0.055) AT (0,0,0.755) RELATIVE H511_mirror_outdir