Problem 233

Summary: warning at execution time
Product: Geant4 Reporter: Florence.Ranjard
Component: materialsAssignee: Michel.Maire
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.0   
Hardware: PC   
OS: Windows   

Description Florence.Ranjard 2001-03-26 04:49:24 CEST
Dear All,

these warnings are OK.
Since before conversion of materials, converters ask Geant4
if the material with such name exist, and  only in the case
if the material does not yet exist the conversion occurs.
Unfortunately Geant4 not only return NULL pointer for
not existing materials but also prints the warnings.
I've reported these warnings to Florence long time ago.
And I hope that G4 team was informed that we want to
skip these warnings.  It is not a new feature of new libraries.
There warning were in ALL  version of GiGa/G4.

  with my best personal regards, Vanya

   Warning from GetMaterial(name). The material: /dd/Materials/Air  does not
> exi
> t in the MaterialTable.  Return NULL pointer
>   Warning from GetElement(name). The element: /dd/Materials/Nitrogen  does
> not
> xist in the ElementTable.  Return NULL pointer
>   Warning from GetMaterial(name). The material: /dd/Materials/Nitrogen  does
> no
>  exist in the MaterialTable.  Return NULL pointer
>   Warning from GetElement(name). The element: /dd/Materials/Oxygen  does not
> ex
> st in the ElementTable.  Return NULL pointer
>   Warning from GetMaterial(name). The material: /dd/Materials/Oxygen  does
> not
> xist in the MaterialTable.  Return NULL pointer
Comment 1 Michel.Maire 2001-03-28 03:55:59 CEST
G4Material and associated classes send their warning messages on cerr, not on
cout. It is up to you to manage differently these two flows.
Comment 2 Michel.Maire 2001-11-26 04:53:59 CET
The warning have been removed on 3 April 2001 -> Geant4 V3.1