Skip to content

Commit

Permalink
Refs #3854 check for no matching RunNumbers
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Jan 13, 2012
1 parent 38548a9 commit 55d1e08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/Framework/Crystal/src/PeakIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ namespace Mantid
if(peak.getRunNumber() == inputW->getRunNumber() && wi < Numberwi) MaxPeaks = i;
}
}
if (MaxPeaks < 0)
{
g_log.error("RunNumbers of InPeaksWorkspace and InputWorkspace do not match");
return;
}

Progress prog(this, MinPeaks, 1.0, MaxPeaks);
PARALLEL_FOR3(inputW, peaksW, outputW)
Expand Down

0 comments on commit 55d1e08

Please sign in to comment.