Problem 746 - Missing comma in G4IonisParamMat.cc
Summary: Missing comma in G4IonisParamMat.cc
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 7.0
Hardware: All All
: P4 trivial
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2005-05-04 18:23 CEST by aso
Modified: 2005-05-10 12:30 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description aso 2005-05-04 18:23:24 CEST
I found that the comma is missing in a array statement in
G4IonisParamMat::FindMeanExcitationEnergy( ).
The name of the array is "name", and after the element  "C_8H_10",
a comma is missing. so that we can not access to the excitation energy
for solid materials.

----------------------------
G4double G4IonisParamMat::FindMeanExcitationEnergy(const G4String& chFormula)
{
   ---- Snipped ----

  const size_t numberOfMolecula = 79 ;

  static G4String name[numberOfMolecula] = {

    // gas
    "NH_3",       "C_4H_10",    "CO_2",       "C_2H_6",      "C_7H_16",
    "C_6H_14",    "CH_4",       "NO",         "N_2O",        "C_8H_18",
    "C_5H_12",    "C_3H_8",     "H_2O-Gas",

    // liquid
    "C_3H_6O",    "C_6H_5NH_2",  "C_6H_6",    "C_4H_9OH",    "CCl_4",
    "C_6H_5Cl",   "CHCl_3",      "C_6H_12",   "C_6H_4Cl_2",  "C_4Cl_2H_8O",
    "C_2Cl_2H_4", "(C_2H_5)_2O", "C_2H_5OH",  "C_3H_5(OH)_3","C_7H_16",
    "C_6H_14",    "CH_3OH",      "C_6H_5NO_2","C_5H_12",     "C_3H_7OH",
    "C_5H_5N",    "C_8H_8",      "C_2Cl_4",   "C_7H_8",      "C_2Cl_3H",
    "H_2O",       "C_8H_10"
                        ^^^^^^  Here a comma is missing!!
    //solid
    "C_5H_5N_5",  "C_5H_5N_5O",  "(C_6H_11NO)-nylon",  "C_25H_52",
----- Snipped -----
Comment 1 Michel.Maire 2005-05-10 12:30:59 CEST
Thanks for reporting the problem. The file is corrected, and will be in the next
release.
            Michel Maire