Problem 766 - Typo in G4hLowEnergyIonisation.cc
Summary: Typo in G4hLowEnergyIonisation.cc
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic/lowenergy (show other problems)
Version: 7.0
Hardware: PC Windows
: P2 normal
Assignee: Vladimir.Ivantchenko
URL:
: 819 (view as problem list)
Depends on:
Blocks:
 
Reported: 2005-07-07 05:44 CEST by hans-herbert.fischer
Modified: 2006-02-07 07:50 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description hans-herbert.fischer 2005-07-07 05:44:58 CEST
Compiler MSVC++.NET emits warning:

src\G4hLowEnergyIonisation.cc(836) : warning C4552: '+' : operator has no
effect; expected operator with side-effect
    if(theBarkas && tscaled > highEnergy) {
        fBarkas =
-BarkasTerm(material,tscaled)*std::sqrt(chargeSquare)*chargeSquare;
                + BlochTerm(material,tscaled,chargeSquare);
    }

Indeed lines 835/836 are suspicious and the ";" in line 835 is probably bad.
Cheers Hans-Herbert
Comment 1 Vladimir.Ivantchenko 2005-10-02 23:41:59 CEST
Thanks! It is a typo. Fixed.
Comment 2 Maria.Grazia.Pia 2006-02-07 07:50:59 CET
*** Bug 819 has been marked as a duplicate of this bug. ***
*** 'Vladimir.Ivantchenko@cern.ch' will be responsible for bug 819. ***