Commit 2c7e95d6 authored by Christof Metzger-Kraus's avatar Christof Metzger-Kraus
Browse files

format of error message on version mismatch

parent 5f6d29f9
......@@ -172,10 +172,11 @@ void TrackRun::execute() {
errorMsg << it->second << endl;
}
}
errorMsg << "\nMake sure you do understand these changes and adjust your input file \n"
<< "accordingly. Then add\n"
<< "OPTION, VERSION = " << currentVersion << ";\n"
<< "to your input file. " << endl;
errorMsg << "\n"
<< "* Make sure you do understand these changes and adjust your input file \n"
<< "* accordingly. Then add\n"
<< "* OPTION, VERSION = " << currentVersion << ";\n"
<< "* to your input file. " << endl;
errorMsg << "\n****************************************************************************\n" << endl;
throw OpalException("TrackRun::execute", "Version mismatch");
}
......@@ -930,4 +931,4 @@ double TrackRun::setDistributionParallelT(Beam *beam) {
// Return charge per macroparticle.
return beam->getCharge() * beam->getCurrent() / (beam->getFrequency()*1.0e6) / numberOfParticles;
}
}
\ No newline at end of file
......@@ -11,6 +11,9 @@ namespace Versions {
"* The normalization of the 2-dimensional field maps has changed.\n"
" Instead of normalizing with the overall maximum value of longitudinal\n"
" component Opal now uses the maximum value on axis.\n"
"\n"
"* The parser has been modified to check the type of all variables. All real \n"
" variables have to be prefixed with the keyword REAL.\n"
});
changes.insert({109,
......@@ -23,17 +26,15 @@ namespace Versions {
"\n"
"* OPAL-T: The design energy of dipoles is now expected to be in MeV instead\n"
" of eV.\n"
"\n"
"* OPAL-T: The attribute 'ROTATION' of RBEND and SBEND have been replaced\n"
" by 'PSI'. Can be applyied to all elements to rotate them.\n"
"\n"
" The attribute DISTRIBUTION of the command DISTRIBUTION has been renamed to\n"
" TYPE.\n"
"\n"
" The parser has been modified to check the type of all variables. All real \n"
" variables have to be prefixed with the keyword REAL.\n"
"* The attribute DISTRIBUTION of the command DISTRIBUTION has been renamed to\n"
" TYPE.\n"
"\n"
" The string indicating the orientation (sofar always XYZ) of 3D fieldmaps has\n"
" been dropped.\n"
"* The string indicating the orientation (sofar always XYZ) of 3D fieldmaps has\n"
" been dropped.\n"
});
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment