Skip to content

Commit

Permalink
Refs #6940 write chisq; remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Vickie Lynch committed Jun 27, 2013
1 parent 13d9353 commit 637673b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Code/Mantid/Framework/MDAlgorithms/src/IntegratePeaksMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ namespace MDAlgorithms
/// Cylinder Length to use around peaks for cylinder
double cylinderLength = getProperty("CylinderLength");
Workspace2D_sptr ws2D;
size_t numSteps;
double deltaQ;
size_t numSteps = 0;
double deltaQ = 0.0;
bool cylinderBool = getProperty("Cylinder");
if (cylinderBool)
{
Expand Down Expand Up @@ -453,7 +453,8 @@ namespace MDAlgorithms
fit_alg->executeAsChildAlg();
MatrixWorkspace_sptr fitWS = fit_alg->getProperty("OutputWorkspace");
std::string fun = fit_alg->getProperty("Function");
g_log.notice() << "Peak " << i <<": " << fun<<"\n";
double chisq = fit_alg->getProperty("OutputChi2overDoF");
g_log.notice() << "Peak " << i <<": Chisq = " << chisq << " " << fun<<"\n";
//Evaluate fit at points
const Mantid::MantidVec& y = fitWS->readY(1);

Expand Down

0 comments on commit 637673b

Please sign in to comment.