Problem 782

Summary: Warning when material not found always printed
Product: Geant4 Reporter: gloria.corti
Component: materialsAssignee: Michel.Maire
Status: RESOLVED INVALID    
Severity: minor CC: Florence.Ranjard
Priority: P2    
Version: 7.1   
Hardware: All   
OS: All   

Description gloria.corti 2005-08-12 09:12:44 CEST
Before creating a new material I check if it already exist with the
following line:
  G4Material* mat = G4Material::GetMaterial( name );
since I am creating materials as needed and I could have two logical
volumes with the same material.
In my first check I get the print-out:
 ---> warning from G4Material::GetMaterial(). The material: name does
 not exist in the table. Return NULL pointer.
In my case the fact that the pointer is null is fine because I then
create it.
I would like to be able to switch off this message in my normal job,
where as I said is not a problem.
Could the printing of this message be under the control of the user?
Comment 1 Michel.Maire 2005-09-01 11:04:59 CEST
We will investigate the possibility of verboseLevel in Materials category