Distribution FROMFILE: different behaviour OPAL-T and OPAL-Cyc
When the distribution "FROMFILE" is used, the number of particles (N) in the distribution file and in the OPAL input file (NPart) should match.
It could happen that two different numbers are used. In this case OPAL-T and OPAL-Cyc have different behaviour:
- OPAL-T: Warning message, but the simulation still runs
OPAL> --------------------------------------------------
OPAL> Warning!! The number of particles in the initial
OPAL> distribution is 100000.
OPAL>
OPAL> This is different from the number of particles
OPAL> defined by the BEAM command: 10
OPAL>
OPAL> This is often happens when using a FROMFILE type
OPAL> distribution and not matching the number of
OPAL> particles in the particles file(s) with the number
OPAL> given in the BEAM command.
OPAL>
OPAL> The number of particles in the initial distribution
OPAL> (100000) will take precedence.
OPAL> ---------------------------------------------------
- OPAL-Cyc: Error message and the simulation stops
OPAL> *** User error detected by function "TrackRun::execute CYCLOTRON_T"
OPAL> *** in line 46 of file "120_deg_CFM.in" at end of statement:
OPAL> RUN,METHOD="CYCLOTRON-T",BEAM=BEAM_4,FIELDSOLVER=FS1,DISTRIBUTION=DIST1;
OPAL> Number of macro particles and NPART on BEAM are not equal