Commit 99deefa2 authored by snuverink_j's avatar snuverink_j
Browse files

fix spelling and output method names

parent ef720067
......@@ -298,7 +298,7 @@ void CCollimator::setGeom() {
geom_m[4].y = geom_m[0].y;
// calculate maximum and mininum r from these
// current implementation not perfect minimum does not need to lie on corner, on in middle
// current implementation not perfect minimum does not need to lie on corner, or in middle
rmin_m = std::hypot(xstart_m, ystart_m);
rmax_m = -std::numeric_limits<double>::max();
for (int i=0; i<4; i++) {
......
......@@ -1006,7 +1006,7 @@ void Cyclotron::getFieldFromFile(const double &scaleFactor) {
// Calculates Radiae of initial grid.
// Calculates Radii of initial grid.
// dimensions in [m]!
void Cyclotron::initR(double rmin, double dr, int nrad) {
BP.rarr.resize(nrad);
......
......@@ -1116,7 +1116,7 @@ void Distribution::createDistributionFromFile(size_t numberOfParticles, double m
if (Ippl::myNode() == 0) {
inputFile.open(fileName.c_str());
if (inputFile.fail())
throw OpalException("Distribution::create()",
throw OpalException("Distribution::createDistributionFromFile",
"Open file operation failed, please check if \""
+ fileName
+ "\" really exists.");
......
......@@ -446,7 +446,7 @@ void OptimizeCmd::execute() {
for (auto itr = dvarCheck.begin(); itr != dvarCheck.end(); ++ itr) {
if (itr->second == 0) {
throw OpalException("SampleCmd::execute()",
throw OpalException("OptimizeCmd::execute()",
"Couldn't find the design variable '" + itr->first + "' in '" + tmplFile + "'!");
}
}
......
......@@ -88,8 +88,8 @@ void OpalSample::initialize(const std::string &dvarName,
bool sequence) {
if ( lower >= upper )
throw OpalException("OpalSample::initOpalSample()",
"Lower bound >= upper bound.");
throw OpalException("OpalSample::initialize()",
"Lower bound >= upper bound.");
std::string type = Util::toUpper(Attributes::getString(itsAttr[TYPE]));
......@@ -110,7 +110,7 @@ void OpalSample::initialize(const std::string &dvarName,
sampleMethod_m.reset( new FromFile(fname, dvarName, modulo) );
size_m = static_cast<FromFile*>(sampleMethod_m.get())->getSize();
} else {
throw OpalException("OpalSample::initOpalSample()",
throw OpalException("OpalSample::initialize()",
"Unknown sampling method: '" + type + "'.");
}
} else {
......@@ -137,7 +137,7 @@ void OpalSample::initialize(const std::string &dvarName,
sampleMethod_m.reset( new FromFile(fname, dvarName, modulo) );
size_m = static_cast<FromFile*>(sampleMethod_m.get())->getSize();
} else {
throw OpalException("OpalSample::initOpalSample()",
throw OpalException("OpalSample::initialize()",
"Unknown sampling method: '" + type + "'.");
}
}
......
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