Skip to content

Commit

Permalink
refs #8095 fixing Unix warnings
Browse files Browse the repository at this point in the history
and correct parallel interrupt region defined
  • Loading branch information
abuts committed Oct 10, 2013
1 parent 0d2b6c3 commit 4b01211
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Code/Mantid/Framework/DataHandling/src/FindDetectorsPar.cpp
Expand Up @@ -150,6 +150,7 @@ FindDetectorsPar::exec()
PARALLEL_FOR_NO_WSP_CHECK()
for (int64_t i = 0; i < nHist; i++)
{
PARALLEL_START_INTERUPT_REGION
Geometry::IDetector_const_sptr spDet;
try{
spDet= inputWS->getDetector(i);
Expand All @@ -167,7 +168,7 @@ FindDetectorsPar::exec()
calcDetPar(spDet,Observer,Detectors[i]);

// make regular progress reports and check for canceling the algorithm
PARALLEL_START_INTERUPT_REGION

if ( i % progStep == 0 ){
progress.report();
}
Expand Down Expand Up @@ -296,9 +297,9 @@ void AvrgDetector::returnAvrgDetPar(DetParameters &avrgDet)
// return undefined detector parameters if no average detector is defined;
if(m_nComponents==0)return;

avrgDet.azimutAngle = m_AzimutSum/m_nComponents;
avrgDet.polarAngle = m_PolarSum/m_nComponents;
avrgDet.secondaryFlightPath = m_FlightPathSum/m_nComponents;
avrgDet.azimutAngle = m_AzimutSum/double(m_nComponents);
avrgDet.polarAngle = m_PolarSum/double(m_nComponents);
avrgDet.secondaryFlightPath = m_FlightPathSum/double(m_nComponents);

avrgDet.azimWidth =(m_AzimMax-m_AzimMin);
avrgDet.polarWidth=(m_PolarMax-m_PolarMin);
Expand Down

0 comments on commit 4b01211

Please sign in to comment.