Problem 782 - Warning when material not found always printed
Summary: Warning when material not found always printed
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 7.1
Hardware: All All
: P2 minor
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2005-08-12 09:12 CEST by gloria.corti
Modified: 2005-09-01 11:04 CEST (History)
1 user (show)

See Also:


Attachments

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