Import Geant4 11.1.2 source tree

This commit is contained in:
Gabriele Cosmo
2023-06-19 17:17:14 +02:00
parent 84a556a9dc
commit aef78ca386
309 changed files with 35572 additions and 34678 deletions
@@ -720,7 +720,14 @@ void G4GDMLWriteSolids::TessellatedWrite(
}
else // Vertex not found
{
vertexMap.insert(std::make_pair(vertex, ref)); // Cache vertex and ...
if ( ! vertexMap.insert(std::make_pair(vertex, ref)).second )
{
G4ExceptionDescription description;
description << "Failed to insert [vertex, ref] " << vertex << ", "
<< ref << " in map.";
G4Exception("G4GDMLWriteSolids::TessellatedWrite", "WriteError",
JustWarning, description);
}
AddPosition(ref, vertex); // ... add it to define section!
++NumVertex;
}