Skip to content
Snippets Groups Projects
Commit 8bea372c authored by Andrea Dell'Acqua's avatar Andrea Dell'Acqua
Browse files

Merge branch 'master' into 'master'

small changes in the GDML processor (to avoid crashes with elemenent...

See merge request !177
parents ab8d698a 7b6331f7
No related branches found
No related tags found
1 merge request!177small changes in the GDML processor (to avoid crashes with elemenent...
......@@ -294,7 +294,7 @@ void GeoMaterial::lock ()
if (getNumElements () == 0)
{
throw std::out_of_range ("Attempt to lock a material with no elements");
throw std::out_of_range ("Attempt to lock a material with no elements "+getName());
return;
}
......
......@@ -263,6 +263,7 @@ void GDMLController::registerHandlers()
new MEEHandler("MEE",this);
new atomHandler("atom",this);
new fractionHandler("fraction",this);
new fractionHandler("composite",this);
new isotopeHandler("isotope",this);
new elementHandler("element",this);
new materialHandler("material",this);
......
......@@ -35,7 +35,7 @@ char *toRelease;
toRelease = XMLString::transcode(elem->getNodeName());
string nodeName(toRelease);
XMLString::release(&toRelease);
if (nodeName != string("assembly")) {
if (nodeName != string("assembly") && nodeName != string("set")) {
msglog << MSG::FATAL << "Error in xml/gmx file: assemblyref " << XMLString::transcode(idref) << " referenced a " <<
nodeName << " instead of an assembly.\n";
std::abort();
......
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