Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 887d41ed authored by frey_m's avatar frey_m
Browse files

use upper case string in OpalSample

parent 7fc96219
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ OpalSample::OpalSample():
"The \"SAMPLING\" statement defines methods used for the optimizer in sample mode.")
, size_m(1)
{
itsAttr[TYPE] = Attributes::makeString
itsAttr[TYPE] = Attributes::makeUpperCaseString
("TYPE", "UNIFORM_INT, UNIFORM, GAUSSIAN, FROMFILE, LATIN_HYPERCUBE");
itsAttr[VARIABLE] = Attributes::makeString
......@@ -115,7 +115,7 @@ void OpalSample::initialize(const std::string &dvarName,
throw OpalException("OpalSample::initialize()",
"Lower bound >= upper bound.");
std::string type = Util::toUpper(Attributes::getString(itsAttr[TYPE]));
std::string type = Attributes::getString(itsAttr[TYPE]);
int seed = Attributes::getReal(itsAttr[SEED]);
size_m = Attributes::getReal(itsAttr[N]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment