Problem 1944

Summary: Unnecessary Debug Output in G4MaterialPropertiesTable Destructor
Product: Geant4 Reporter: Laurie Nevay <laurie.nevay>
Component: materialsAssignee: Marc.Verderi
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P4    
Version: 10.3   
Hardware: Apple   
OS: Mac OS X   

Description Laurie Nevay 2017-02-21 16:26:31 CET
In the destructor of G4MaterialPropertiesTable there is a print out of the pointer in a map before being deleted.  This is unnecessary and a little confusing when it crops up in applications.

geant4/source/materials/src/G4MaterialsPropertiesTable.cc - line 71

for (i = MPT.begin(); i != MPT.end(); ++i)
  {
    G4cout << (*i).second << G4endl;
    delete (*i).second;
  }

Just a minor output fix.  Only in Geant4.10.03.

Cheers!
Comment 1 Gabriele Cosmo 2017-02-22 17:39:16 CET
Thanks for reporting this.
The fix will be included in the next patch release.