Problem 1968 - Bug in G4Ions::FloatLevelBase(G4int flbIdx)
Summary: Bug in G4Ions::FloatLevelBase(G4int flbIdx)
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: particles (show other problems)
Version: 10.3
Hardware: All All
: P4 major
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2017-05-01 20:13 CEST by pldrouin
Modified: 2017-05-03 20:10 CEST (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 pldrouin 2017-05-01 20:13:53 CEST
The order of the floating levels is wrong in G4Ions::FloatLevelBase(G4int flbIdx). X, Y and Z should come before U, V, W, similarly to G4Ions::FloatLevelBaseChar(G4Ions::G4FloatLevelBase flb):

inline
 G4Ions::G4FloatLevelBase G4Ions::FloatLevelBase(G4int flbIdx)
{ 
  static G4Ions::G4FloatLevelBase flb[] =
  { noFloat,
    plusU, plusV, plusW, plusX, plusY, plusZ,
    plusR, plusS, plusT, plusA, plusB, plusC, plusD, plusE };
  return flb[flbIdx];
}

inline
 char G4Ions::FloatLevelBaseChar(G4Ions::G4FloatLevelBase flb)
{ 
  static char flbChar[] = {'\0','X','Y','Z','U','V','W',
                                'R','S','T','A','B','C','D','E'};
  return flbChar[static_cast<G4int>(flb)];
}
Comment 1 asai 2017-05-01 20:37:41 CEST
Thank you for reporting this issue. We will fix it. The fix will be included in the next patch release.
Kind regards,
Makoto