Problem 456 - int/int. pow(**,1/3) could return an unexpected value.
Summary: int/int. pow(**,1/3) could return an unexpected value.
Status: CLOSED REMIND
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: other
Hardware: All All
: P2 critical
Assignee: Hans-Peter.Wellisch
URL:
Depends on:
Blocks:
 
Reported: 2003-02-12 19:32 CET by Koichi Murakami
Modified: 2005-11-26 06:00 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 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.