| Summary: | warning at execution time | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Florence.Ranjard |
| Component: | materials | Assignee: | Michel.Maire |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 3.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
G4Material and associated classes send their warning messages on cerr, not on cout. It is up to you to manage differently these two flows. The warning have been removed on 3 April 2001 -> Geant4 V3.1 |
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