Problem 233 - warning at execution time
Summary: warning at execution time
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 3.0
Hardware: PC Windows
: P2 normal
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2001-03-26 04:49 CEST by Florence.Ranjard
Modified: 2001-11-26 04:53 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 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