Problem 1942 - No check of validity of G4LEVELGAMMADATA and G4RADIOACTIVEDATA
Summary: No check of validity of G4LEVELGAMMADATA and G4RADIOACTIVEDATA
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models/de_excitation (show other problems)
Version: 10.3
Hardware: All All
: P4 critical
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2017-02-21 10:30 CET by Alberto.Ribon
Modified: 2018-02-07 11:53 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 Alberto.Ribon 2017-02-21 10:30:09 CET
I have realized that in G4 10.3 (but the same is true also in G4 10.1.p03, so I guess it is a long-standing problem) Geant4 runs without crashing, and without any error message, when one or both of the following environmental variables: 

  G4LEVELGAMMADATA
  G4RADIOACTIVEDATA

are defined but point to a wrong place.

In other words, currently there is only the check that these environmental variables are not null strings. Instead, there should be a check that they point to the correct place (as it is correctly the case for the other environmental variables).

When any of the two above environmental variables point to an incorrect place, Geant4 should crash immediately (as it does correctly for the other environmental variables).
Comment 1 Vladimir.Ivantchenko 2017-03-20 15:58:41 CET
The check for G4LEVELGAMMADATA is committed to the repository. It is not obvious how to add a check for G4RADIOACTIVEDATA, because no data are uploaded at initialisation. Needs clarification from the code authors.
Comment 2 dennis.herbert.wright 2017-12-12 03:03:08 CET
I'll have a look at the radioactive decay model.
Comment 3 dennis.herbert.wright 2017-12-13 01:10:09 CET
Added check in G4RadioactiveDecay that G4RADIOACTIVEDATA is pointing to the right directory.