Commit 5cfa1007 authored by kraus's avatar kraus
Browse files

fixing typo and correct possible strings for sampling types

parent 60b4de13
......@@ -34,7 +34,7 @@ OpalSample::OpalSample():
, size_m(1)
{
itsAttr[TYPE] = Attributes::makeString
("TYPE", "UNIFORM_INT, UNIFORM_REAL, SEQUENCE, FROMFILE");
("TYPE", "UNIFORM_INT, UNIFORM, GAUSSIAN, FROMFILE");
itsAttr[VARIABLE] = Attributes::makeString
("VARIABLE", "Name of design variable");
......@@ -111,7 +111,7 @@ void OpalSample::initialize(const std::string &dvarName,
size_m = static_cast<FromFile*>(sampleMethod_m.get())->getSize();
} else {
throw OpalException("OpalSample::initOpalSample()",
"Unkown sampling method: '" + type + "'.");
"Unknown sampling method: '" + type + "'.");
}
} else {
if (type == "UNIFORM_INT") {
......@@ -138,7 +138,7 @@ void OpalSample::initialize(const std::string &dvarName,
size_m = static_cast<FromFile*>(sampleMethod_m.get())->getSize();
} else {
throw OpalException("OpalSample::initOpalSample()",
"Unkown sampling method: '" + type + "'.");
"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