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 d2f2e444 authored by kraus's avatar kraus
Browse files

reenable FROMFILE in random mode

parent b98eaa59
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,10 @@ void OpalSample::initialize(const std::string &dvarName, ...@@ -115,6 +115,10 @@ void OpalSample::initialize(const std::string &dvarName,
sampleMethod_m.reset( new Uniform<double>(lower, upper, seed) ); sampleMethod_m.reset( new Uniform<double>(lower, upper, seed) );
} else if (type == "GAUSSIAN") { } else if (type == "GAUSSIAN") {
sampleMethod_m.reset( new Normal(lower, upper, seed) ); sampleMethod_m.reset( new Normal(lower, upper, seed) );
} else if (type == "FROMFILE") {
std::string fname = Attributes::getString(itsAttr[FNAME]);
sampleMethod_m.reset( new FromFile(fname, dvarName, modulo) );
size_m = static_cast<FromFile*>(sampleMethod_m.get())->getSize();
} else { } else {
throw OpalException("OpalSample::initOpalSample()", throw OpalException("OpalSample::initOpalSample()",
"Unkown sampling method: '" + type + "'."); "Unkown sampling method: '" + type + "'.");
......
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