Skip to content
Snippets Groups Projects
Commit b6c63990 authored by Harry Jeffery's avatar Harry Jeffery
Browse files

Merge pull request #180 from...

Merge pull request #180 from mantidproject/feature/11031_montecarloabsorption_warn_on_no_intersection

MonteCarloAbsorption warn on no intersection
parents b76295e2 6ad33f53
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment