Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G4double
- G4EmBiasingManager::ApplySecondaryBiasing(....)
- {
- ....
- if(0 == nsplit) {
- if(safety > fSafetyMin) {
- ApplyRangeCut(vd, track, eloss, safety);
- }
- } if(1 == nsplit) {
- weight = ApplyRussianRoulette(vd, index);
- } else {
- G4double tmpEnergy = ....;
- G4ThreeVector tmpMomDir = ....;
- weight = ....;
- pPartChange->SetProposedKineticEnergy(tmpEnergy);
- pPartChange->ProposeMomentumDirection(tmpMomDir);
- }
- ....
- }
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing. _G4processes-archive g4embiasingmanager.cc 299
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment