Problem 1535

Summary: Incorrect unit is misinterpreted and accepted with wrong value
Product: Geant4 Reporter: asai
Component: intercomsAssignee: Koichi Murakami <Koichi.Murakami>
Status: RESOLVED FIXED    
Severity: critical CC: asai
Priority: P5    
Version: 9.3   
Hardware: All   
OS: All   

Description asai 2013-11-21 02:32:37 CET
G4UIcmdWith3VectorAndUnit and G4UIcmdWithADoubleAndUnit behave incorrectly when incorrect unit is specified. For example of a particle gun command
 /gun/energy 10 km
is accepted without any warning message and sets the energy to 10000 GeV.

The fix will be included in Geant4 version 10.0, and will potentially be back-ported.
Comment 1 asai 2013-11-21 02:35:09 CET
The fix will be included in Geant4 version 10.0, and will potentially be back-ported.