Skip to content

Commit 5e0b122

Browse files
committed
Remove EOL whitespace in updated synchdmlc files
1 parent 11cf3b8 commit 5e0b122

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

HEN_HOUSE/doc/src/pirs509a-beamnrc/pirs509a-beamnrc.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -8555,7 +8555,7 @@ \subsubsection{SYNCHDMLC}
85558555
The default cross-sections for each leaf type are shown in Figure~\ref{synchdmlc_fig}. The width of
85568556
each vertical region is specified as back projected to {\tt ZMIN}. Thus, for any width, $w_i$,
85578557
the user inputs the value, $w_i\times\left(\frac{{\tt ZMIN}}{Z_i}\right)$, where $Z_i$ is the value of Z
8558-
where $w_i$ is defined. For example, for any leaf type, to define the groove width, $wg$,
8558+
where $w_i$ is defined. For example, for any leaf type, to define the groove width, $wg$,
85598559
the user would input $wg\times\left(\frac{{\tt ZMIN}}{zg}\right)$.
85608560

85618561
Similar to DYNVMLC and SYNCVMLC, leaf ends can be straight, focused ({\tt ENDTYPE}=1) or cylindrical

HEN_HOUSE/omega/beamnrc/CMs/SYNCHDMLC_cm.mortran

+16-16
Original file line numberDiff line numberDiff line change
@@ -495,17 +495,17 @@
495495
"I>
496496
"I> Repeat 14 until coordinates of all leaves are defined once. Leaves
497497
"I> are numbered 1,2,...TOT_LEAF_$SYNCHDMLC, where numbering goes from leaf
498-
"I> 1 to leaf TOT_LEAF_$SYNCHDMLC. Convention is -ve to +ve
499-
"I> (ORIENT_$SYNCHDMLC=0,2) or +ve to -ve (ORIENT_$SYNCHDMLC=1,3)
498+
"I> 1 to leaf TOT_LEAF_$SYNCHDMLC. Convention is -ve to +ve
499+
"I> (ORIENT_$SYNCHDMLC=0,2) or +ve to -ve (ORIENT_$SYNCHDMLC=1,3)
500500
"I>
501501
"I> 14a NEG_$SYNCHDMLC, POS_$SYNCHDMLC, NUM_$SYNCHDMLC (2F15.5,I5)
502502
"I>
503-
"I> NEG_$SYNCHDMLC: Min. Y (ORIENT_$SYNCHDMLC=0,2) or X
504-
"I> (ORIENT_$SYNCHDMLC=1,3) of front opening in leaf I (ie
505-
"I> the opening at ZMIN_$SYNCHDMLC) if ENDTYPE=1, or of
503+
"I> NEG_$SYNCHDMLC: Min. Y (ORIENT_$SYNCHDMLC=0,2) or X
504+
"I> (ORIENT_$SYNCHDMLC=1,3) of front opening in leaf I (ie
505+
"I> the opening at ZMIN_$SYNCHDMLC) if ENDTYPE=1, or of
506506
"I> rounded end of leaf I if ENDTYPE=0.
507-
"I> POS_$SYNCHDMLC: Max. Y (ORIENT_$SYNCHDMLC=0,2) or X
508-
"I> (ORIENT_$SYNCHDMLC=1,3) of front opening in leaf I if
507+
"I> POS_$SYNCHDMLC: Max. Y (ORIENT_$SYNCHDMLC=0,2) or X
508+
"I> (ORIENT_$SYNCHDMLC=1,3) of front opening in leaf I if
509509
"I> ENDTYPE=1, or of rounded end of leaf I if ENDTYPE=0.
510510
"I> NUM_$SYNCHDMLC: Apply NEG_$SYNCHDMLC and POS_$SYNCHDMLC to leaves
511511
"I> I,...,I+NUM_$SYNCHDMLC-1. Defaults to 1 if set <=0.
@@ -709,7 +709,7 @@
709709
"V>{p1} the value to compare with ustep
710710
"V> if {p1}+1.0e-5 < ustep shift it, otherwise set it to ustep
711711
"V> Note: if above condition failed, this used to leave {p1}
712-
"V> unshifted, which led to transport errors
712+
"V> unshifted, which led to transport errors
713713
;
714714
REPLACE {$GEO_SHIFT_1_(#)} WITH {
715715
;IF({P1}~=0.00 ) [
@@ -1084,13 +1084,13 @@ DOUBLE PRECISION XYL(2), XYFL(2), ZFL, UVL(2), XoN, XoP, Zo, TEMP1, TEMP2,
10841084
IF(ORIENT_$SYNCHDMLC=0)[
10851085
XYL(1)=X(NP); XYL(2)=Y(NP);UVL(1)=U(NP);UVL(2)=V(NP);
10861086
]
1087-
ELSEIF(ORIENT_$SYNCHDMLC=1)[
1087+
ELSEIF(ORIENT_$SYNCHDMLC=1)[
10881088
XYL(1)=Y(NP); XYL(2)=X(NP);UVL(1)=V(NP);UVL(2)=U(NP);
10891089
]
10901090
ELSEIF(ORIENT_$SYNCHDMLC=2)[
10911091
XYL(1)=-X(NP); XYL(2)=Y(NP);UVL(1)=-U(NP);UVL(2)=V(NP);
10921092
]
1093-
ELSEIF(ORIENT_$SYNCHDMLC=3)[
1093+
ELSEIF(ORIENT_$SYNCHDMLC=3)[
10941094
XYL(1)=-Y(NP); XYL(2)=X(NP);UVL(1)=-V(NP);UVL(2)=U(NP);
10951095
]
10961096
IF (IDIR=1) [
@@ -2705,7 +2705,7 @@ IF(MODE_$SYNCHDMLC=1|MODE_$SYNCHDMLC=2)["dynamic or step-and-shoot leaf inputs"
27052705
LEAFPOS_$SYNCHDMLC((TOT_LEAF_$SYNCHDMLC-K+1)+
27062706
(I-1)*TOT_LEAF_$SYNCHDMLC) = tmp_coord;
27072707
]
2708-
]
2708+
]
27092709
]
27102710
CLOSE(UNIT=mlc_unit);
27112711

@@ -2777,7 +2777,7 @@ IF(ORIENT_$SYNCHDMLC>=2)[
27772777
LEAFA_$SYNCHDMLC(I) = LEAFA_$SYNCHDMLC(TOT_LEAF_$SYNCHDMLC-I+1);
27782778
LEAFA_$SYNCHDMLC(TOT_LEAF_$SYNCHDMLC-I+1) = tmp_coord;
27792779
]
2780-
]
2780+
]
27812781

27822782
IF(ENDTYPE_$SYNCHDMLC=1)[
27832783
DO I=1, TOT_LEAF_$SYNCHDMLC [
@@ -3709,8 +3709,8 @@ IF(LEAFIS~=0) [
37093709
"target leaf"
37103710
IF(LEAFIS~=TOT_LEAF_$SYNCHDMLC & ((((NY=5|NY=6) & (NZ=7|NZ=8|NZ=9)) &
37113711
XYL1>SURPARA1_$SYNCHDMLC(LEAFIS+1,1)*(Z(NP)-ZFOCUS_$SYNCHDMLC(1))) |
3712-
(I_LEAF_ALT_DEF_$SYNCHDMLC(LEAFTYPE_$SYNCHDMLC(LEAFIS),1,6)=1 &
3713-
NY=6 & NZ>1 &
3712+
(I_LEAF_ALT_DEF_$SYNCHDMLC(LEAFTYPE_$SYNCHDMLC(LEAFIS),1,6)=1 &
3713+
NY=6 & NZ>1 &
37143714
XYL1>SURPARA1_$SYNCHDMLC(LEAFIS+1,3)*(Z(NP)-ZFOCUS_$SYNCHDMLC(1))))) [
37153715
LEAFIS=LEAFIS+1;
37163716
TEMP1=SURPARA1_$SYNCHDMLC(LEAFIS,1)*(Z(NP)-ZFOCUS_$SYNCHDMLC(1));
@@ -3800,9 +3800,9 @@ IF(LEAFIS~=0) [
38003800
]
38013801
];
38023802
]
3803-
ELSEIF(LEAFIS ~=1 & NY<=2 &
3803+
ELSEIF(LEAFIS ~=1 & NY<=2 &
38043804
((LEAFTYPE_$SYNCHDMLC(LEAFIS) = 3 & NZ<=3) |
3805-
(LEAFTYPE_$SYNCHDMLC(LEAFIS) = 5 & NZ<=4)))[
3805+
(LEAFTYPE_$SYNCHDMLC(LEAFIS) = 5 & NZ<=4)))[
38063806
"here we are in an isocenter leaf
38073807
"check if particle is in region of previous leaf"
38083808
IF(XYL1<SURPARA1_$SYNCHDMLC(LEAFIS-1,7)*

HEN_HOUSE/omega/beamnrc/CMs/SYNCHDMLC_macros.mortran

+7-7
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
824824
ELSEIF(NY=3)[
825825
IF(NZ=1)[ZLHS=1; ZRHS=2;]
826826
ELSEIF(NZ<=5)[ZLHS=2; ZRHS=6;]
827-
ELSEIF(NZ=6)[ZLHS=6; ZRHS=7;]
827+
ELSEIF(NZ=6)[ZLHS=6; ZRHS=7;]
828828
ELSEIF(NZ=7)[ZLHS=7; ZRHS=8;]
829829
ELSEIF(NZ=8)[ZLHS=8; ZRHS=9;]
830830
ELSE[ZLHS=9; ZRHS=10;]
@@ -856,7 +856,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
856856
ELSEIF(NZ=6)[ZLHS=6; ZRHS=7;]
857857
ELSE[ZLHS=7; ZRHS=10;]
858858
]
859-
]
859+
]
860860
]
861861
};
862862

@@ -1231,7 +1231,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
12311231
]
12321232
]
12331233
]
1234-
]
1234+
]
12351235
ELSE[
12361236
"Isocenter Quarter"
12371237
IF(NZ=1) [
@@ -1290,7 +1290,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
12901290
]
12911291
]
12921292
ELSEIF(NZ=4)[
1293-
IF(I_LEAF_ALT_DEF_$SYNCHDMLC(5,2,4)=1)[
1293+
IF(I_LEAF_ALT_DEF_$SYNCHDMLC(5,2,4)=1)[
12941294
IF(NY<=5)[
12951295
LHS=1; J=LEAFIS;
12961296
RHS=6; I=LEAFIS;
@@ -1309,7 +1309,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
13091309
IF(ZFL>ZREG_$SYNCHDMLC(J,7))[
13101310
LHS = 5;
13111311
]
1312-
ELSE[
1312+
ELSE[
13131313
LHS = 7;
13141314
]
13151315
]
@@ -1319,7 +1319,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
13191319
LHS=3; J=LEAFIS;
13201320
RHS=7; I=LEAFIS;
13211321
]
1322-
]
1322+
]
13231323
]
13241324
ELSEIF(NZ<=7)[
13251325
LHS=1; J=LEAFIS;
@@ -1346,7 +1346,7 @@ IF(LEAFTYPE_$SYNCHDMLC(LEAFIS)=2 | LEAFTYPE_$SYNCHDMLC(LEAFIS)=4) [
13461346
ELSE[
13471347
LHS=3; J=LEAFIS;
13481348
RHS=7; I=LEAFIS;
1349-
]
1349+
]
13501350
]
13511351
ELSE[
13521352
IF(NY=1)[

HEN_HOUSE/omega/progs/gui/beamnrc/synchdmlc.tcl

+7-7
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ proc draw_SYNCHDMLC { id } {
23692369
NOTE: This is a dynamic or step-and-shoot delivery, with leaf opening\
23702370
coordinates defined in a file. Leaf opening coordinates are shown for the\
23712371
first field defined in this file."\
2372-
-font $helvfont -width 300
2372+
-font $helvfont -width 300
23732373
} else {
23742374
.synchdmlc$id.show.frm.can create text 160 160 -text "xz\
23752375
cross-section shows only those leaves that\
@@ -2379,7 +2379,7 @@ NOTE: This is a dynamic or step-and-shoot delivery, with leaf opening\
23792379
is shown. The xy view is at a plane at Z=ZMIN\
23802380
(straight leaf ends) or Z=ZMIN+ZTHICK/2 (cylindrical\
23812381
leaf ends)."\
2382-
-font $helvfont -width 300
2382+
-font $helvfont -width 300
23832383
}
23842384

23852385
set xscale [expr $width/double(abs($xrange(1)-$xrange(0)))]
@@ -2673,7 +2673,7 @@ proc add_SYNCHDMLC_xy {id xscale yscale xmin ymin l m parent_w} {
26732673

26742674
set a [expr ($neg($i)-$xmin)*$xscale+$l]
26752675
if {$cmval($id,2,0)==3} {
2676-
set b [expr (-$lstart-$ymin)*$yscale+$m]
2676+
set b [expr (-$lstart-$ymin)*$yscale+$m]
26772677
} else {
26782678
set b [expr ($lstart-$ymin)*$yscale+$m]
26792679
}
@@ -3247,8 +3247,8 @@ proc add_SYNCHDMLC_sides {id yscale zscale ymin zmin zmax l m parent_w} {
32473247
for {set i 1} {$i <= $nleaf($id)/2} {incr i} {
32483248
set tmp_coord $neg($i)
32493249
set neg($i) $neg([expr $nleaf($id)-$i+1])
3250-
set neg([expr $nleaf($id)-$i+1]) $tmp_coord
3251-
set tmp_coord $pos($i)
3250+
set neg([expr $nleaf($id)-$i+1]) $tmp_coord
3251+
set tmp_coord $pos($i)
32523252
set pos($i) $pos([expr $nleaf($id)-$i+1])
32533253
set pos([expr $nleaf($id)-$i+1]) $tmp_coord
32543254
}
@@ -3629,7 +3629,7 @@ proc add_SYNCHDMLC_sides {id yscale zscale ymin zmin zmax l m parent_w} {
36293629
if {$cmval($id,2,0)==2 || $cmval($id,2,0)==3} {
36303630
set y($j) [expr -1*$y($j)]
36313631
}
3632-
3632+
36333633
# set y and z scale and relative position
36343634
set y($j) [expr ($y($j)-$ymin)*$yscale+$l]
36353635
set z($j) [expr ($z($j)-$zmin)*$zscale+$m]
@@ -3744,7 +3744,7 @@ are automaticaly "flipped," so that opening coordinates for leaf i are instead\
37443744
applied to leaf N-i+1, where N is the total no. of leaves. See the BEAMnrc\
37453745
Manual for more details.}
37463746
help_dialog $w.help "Help" $text info 0 OK
3747-
}
3747+
}
37483748

37493749
proc help_screwdist { w } {
37503750

0 commit comments

Comments
 (0)