Skip to content

Commit

Permalink
Use OPTIMIZED evaluator by default when supported.
Browse files Browse the repository at this point in the history
This closes #8.
  • Loading branch information
pavoljuhas committed Oct 18, 2016
1 parent 9b0c8ad commit 5ac0108
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/diffpy/srreal/BaseDebyeSum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ BaseDebyeSum::BaseDebyeSum()
this->setQmax(DEFAULT_QGRID_QMAX);
this->setQstep(DEFAULT_QGRID_QSTEP);
this->setDebyePrecision(DEFAULT_DEBYE_PRECISION);
this->setEvaluatorType(OPTIMIZED);
// attributes
this->registerDoubleAttribute("debyeprecision", this,
&BaseDebyeSum::getDebyePrecision,
Expand Down
1 change: 1 addition & 0 deletions src/diffpy/srreal/BondCalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class BondOp {
BondCalculator::BondCalculator()
{
this->setRmax(DEFAULT_BONDCALCULATOR_RMAX);
this->setEvaluatorType(OPTIMIZED);
mevaluator->setFlag(USEFULLSUM, true);
mevaluator->setFlag(FIXEDSITEINDEX, true);
}
Expand Down
2 changes: 2 additions & 0 deletions src/diffpy/srreal/PDFCalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ PDFCalculator::PDFCalculator()
// cache all internal data according to an empty structure.
// this rebuilds mstructure_cache and mrlimits_cache.
this->setStructure(mstructure);
// setup the OPTIMIZED evaluator last so that its validation passes.
this->setEvaluatorType(OPTIMIZED);
// attributes
this->registerDoubleAttribute("qmin", this,
&PDFCalculator::getQmin, &PDFCalculator::setQmin);
Expand Down

0 comments on commit 5ac0108

Please sign in to comment.