Skip to content

Commit 4b8bf79

Browse files
committed
Enable missing default for --tof-trains
1 parent 134cc3c commit 4b8bf79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common/lib/share/mccode-r.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ static long mcstartdate = 0; /* start simulation time */
6161
static int mcdisable_output_files = 0; /* --no-output-files */
6262
mcstatic int mcgravitation = 0; /* use gravitation flag, for PROP macros */
6363
mcstatic int NTOF = 0; /* Number of TOF "sub-particles" in a TOF_TRAIN */
64+
#ifdef TOF_TRAIN
65+
NTOF=10; /* Default to 10 TOF "sub-particles" in a TOF_TRAIN */
66+
#endif
6467
mcstatic int mcusedefaults = 0; /* assume default value for all parameters */
6568
mcstatic int mcdotrace = 0; /* flag for --trace and messages for DISPLAY */
6669
mcstatic int mcnexus_embed_idf = 0; /* flag to embed xml-formatted IDF file for Mantid */
@@ -4517,6 +4520,9 @@ mchelp(char *pgmname)
45174520
" kernel run (default: 2147483647)\n"
45184521
"\n"
45194522
#endif
4523+
#ifdef TOF_TRAIN
4524+
" --tof-trains=K Number of TOF \"sub-particles\" (default 10)\n"
4525+
#endif
45204526
"\n"
45214527
" --bufsiz Monitor_nD list/buffer-size (default: 1000000)\n"
45224528
" --format=FORMAT Output data files using FORMAT="

0 commit comments

Comments
 (0)