Problem 456

Summary: int/int. pow(**,1/3) could return an unexpected value.
Product: Geant4 Reporter: Koichi Murakami <Koichi.Murakami>
Component: processes/hadronic/modelsAssignee: Hans-Peter.Wellisch
Status: CLOSED REMIND    
Severity: critical    
Priority: P2    
Version: other   
Hardware: All   
OS: All   

Description Koichi Murakami 2003-02-12 19:32:58 CET
int/int returns an int. value so that pow(**, 1/3) could return an unexpected value.

As far as I scaned under the directory,
/processes/hadronic/models/cascade/cascade/src, the following files, at least,
could cause problems;

G4BertiniRegionModel.cc : pow(**,1/3), pow(**,2/3)
G4BigBanger.cc : pow(**, int(**)/2))
G4RegionModel.cc : pow(**, 1/3), **/ (4/3* pi ...)
Comment 1 Hans-Peter.Wellisch 2003-02-13 00:45:59 CET
Aatos is currently verifying...
Comment 2 Hans-Peter.Wellisch 2003-03-13 02:19:59 CET
Verified. Luckily, it seems to be all in 'dead-wood' code. It does not affect
the model's physics performance in the (neutron production) plots I did.

Many greetings,

Hans-Peter.