Problem 1944 - Unnecessary Debug Output in G4MaterialPropertiesTable Destructor
Summary: Unnecessary Debug Output in G4MaterialPropertiesTable Destructor
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 10.3
Hardware: Apple Mac OS X
: P4 trivial
Assignee: Marc.Verderi
URL:
Depends on:
Blocks:
 
Reported: 2017-02-21 16:26 CET by Laurie Nevay
Modified: 2017-02-22 17:39 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.