Skip to content

Commit 47caef3

Browse files
authored
Merge pull request #2779 from willend/main
2 parents e083eaf + dacc4b8 commit 47caef3

2 files changed

Lines changed: 4 additions & 22 deletions

File tree

‎mcstas-comps/misc/MCPL_output.comp‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
DEFINE COMPONENT MCPL_output
5252

53-
SETTING PARAMETERS ( string filename=0, int weight_mode=-1, int verbose=0,
53+
SETTING PARAMETERS ( string filename=0, int weight_mode=1, int verbose=0,
5454
int polarisationuse=0, int doubleprec=0,
5555
string userflag="", string userflagcomment="",
5656
buffermax=0 )
@@ -150,16 +150,7 @@ INITIALIZE
150150
mcpl_hdr_add_data (outputfile, "mccode_cmd_line", strlen (clr), clr);
151151
}
152152

153-
if (weight_mode == -1) {
154-
MPI_MASTER (fprintf (stderr,
155-
"\nWarning (%s): weight_mode unspecified so defaulting to 2"
156-
" (classic mode) which will soon become unavailable and tooling"
157-
" might need updating. Please consult"
158-
" https://github.com/mccode-dev/McCode/discussions/2076 for more"
159-
" information.\n",
160-
NAME_CURRENT_COMP););
161-
weight_mode = 2;
162-
} else if (weight_mode == 2) {
153+
if (weight_mode == 2) {
163154
MPI_MASTER (fprintf (stderr,
164155
"\nWarning (%s): weight_mode=2 selected. This mode will"
165156
" soon become unavailable. Please consult"

‎mcxtrace-comps/misc/MCPL_output.comp‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
DEFINE COMPONENT MCPL_output
5454

55-
SETTING PARAMETERS ( string filename=0, int weight_mode=-1, int verbose=0,
55+
SETTING PARAMETERS ( string filename=0, int weight_mode=1, int verbose=0,
5656
int polarisationuse=0, int doubleprec=0,
5757
string userflag="", string userflagcomment="",
5858
buffermax=0 )
@@ -153,16 +153,7 @@ INITIALIZE
153153
mcpl_hdr_add_data (outputfile, "mccode_cmd_line", strlen (clr), clr);
154154
}
155155

156-
if (weight_mode == -1) {
157-
MPI_MASTER (fprintf (stderr,
158-
"\nWarning (%s): weight_mode unspecified so defaulting to 2"
159-
" (classic mode) which will soon become unavailable and tooling"
160-
" might need updating. Please consult"
161-
" https://github.com/mccode-dev/McCode/discussions/2076 for more"
162-
" information.\n",
163-
NAME_CURRENT_COMP););
164-
weight_mode = 2;
165-
} else if (weight_mode == 2) {
156+
if (weight_mode == 2) {
166157
MPI_MASTER (fprintf (stderr,
167158
"\nWarning (%s): weight_mode=2 selected. This mode will"
168159
" soon become unavailable. Please consult"

0 commit comments

Comments
 (0)