Commit 4d45fbc5 authored by kraus's avatar kraus

Merge branch '571-option-minbinemitted-and-minstepforrebin-not-working' into 'master'

Resolve "Option MINBINEMITTED and MINSTEPFORREBIN not working"

Closes #571

See merge request OPAL/src!399
parents d5f06b35 97d15e51
......@@ -295,6 +295,8 @@ Option::Option(const std::string &name, Option *parent):
Attributes::setReal(itsAttr[MTSSUBSTEPS], mtsSubsteps);
Attributes::setReal(itsAttr[REMOTEPARTDEL], remotePartDel);
Attributes::setReal(itsAttr[REPARTFREQ], repartFreq);
Attributes::setReal(itsAttr[MINBINEMITTED], minBinEmitted);
Attributes::setReal(itsAttr[MINSTEPFORREBIN], minStepForRebin);
Attributes::setReal(itsAttr[REBINFREQ], rebinFreq);
Attributes::setBool(itsAttr[RHODUMP], rhoDump);
Attributes::setBool(itsAttr[EBDUMP], ebDump);
......@@ -437,6 +439,14 @@ void Option::execute() {
repartFreq = int(Attributes::getReal(itsAttr[REPARTFREQ]));
}
if (itsAttr[MINBINEMITTED]) {
minBinEmitted = int(Attributes::getReal(itsAttr[MINBINEMITTED]));
}
if (itsAttr[MINSTEPFORREBIN]) {
minStepForRebin = int(Attributes::getReal(itsAttr[MINSTEPFORREBIN]));
}
if(itsAttr[REBINFREQ]) {
rebinFreq = int(Attributes::getReal(itsAttr[REBINFREQ]));
}
......
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