| Summary: | G4GenericMessenger::DeclareMethodWithUnit on G4double truncates input to float | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Wouter Deconinck <wdconinc> |
| Component: | intercoms | Assignee: | asai |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | minor | CC: | wdconinc |
| Priority: | P4 | ||
| Version: | 10.4 | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
Wouter Deconinck
2018-07-26 20:27:38 CEST
Downstream report: https://github.com/JeffersonLab/remoll/issues/130 Thank you for reporting the issue. This has been addressed and the fix has been released with version 10.3-p01 (10.4 also has this fix). Please use /control/useDoublePrecision command. Regards, Makoto *** This problem has been marked as a duplicate of problem 1921 *** I can confirm that adding /control/useDoublePrecision or G4UImanager::UseDoublePrecisionStr(true) does indeed solve this problem. However, I want to note that problem 1921 was referring to output streams while this problem is referring to input. Arguably, truncating input is a more significant issue. I understand your concern, but G4UIcmdWithADoubleAndUnit class actually uses the same strstream conversion mechanism. Thus, this same control command could solve the issue. |