Skip to content

Commit

Permalink
Merge pull request #180 from mantidproject/feature/11031_montecarloab…
Browse files Browse the repository at this point in the history
…sorption_warn_on_no_intersection

MonteCarloAbsorption warn on no intersection
  • Loading branch information
eXeC64 committed Feb 6, 2015
2 parents b76295e + 6ad33f5 commit b6c6399
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/MonteCarloAbsorption.cpp
Expand Up @@ -452,10 +452,11 @@ void MonteCarloAbsorption::initCaches() {

m_numVolumeElements = m_blocks.size();
g_log.debug() << "Sample + container divided into " << m_numVolumeElements
<< " blocks.";
if (m_numVolumeElements == numPossibleVolElements)
g_log.debug("\n");
else
<< " blocks.\n";
if (m_numVolumeElements == 0) {
throw std::runtime_error("No intersection with sample + container.");
}
if (m_numVolumeElements != numPossibleVolElements)
g_log.debug()
<< " Skipped " << (numPossibleVolElements - m_numVolumeElements)
<< " blocks that do not intersect with the sample + container\n";
Expand Down

0 comments on commit b6c6399

Please sign in to comment.