Make format of atomic weights struct consistent

In the atomic weights struct in Elements.cpp, ensure that there is no
space before the closing brace of an element and that there is one
space between the longest element name and a 3-digit weight.
This commit is contained in:
Bryan W. Weber 2019-07-25 14:51:58 -04:00 committed by Ray Speth
parent ded50547f9
commit fc01d7f3de

View file

@ -67,124 +67,124 @@ struct isotopeWeightData {
* The size of the table is given by the initial instantiation. * The size of the table is given by the initial instantiation.
*/ */
static struct atomicWeightData atomicWeightTable[] = { static struct atomicWeightData atomicWeightTable[] = {
{"H", "hydrogen", 1.008}, {"H", "hydrogen", 1.008},
{"He", "helium", 4.002602}, {"He", "helium", 4.002602},
{"Li", "lithium", 6.94}, {"Li", "lithium", 6.94},
{"Be", "beryllium", 9.0121831}, {"Be", "beryllium", 9.0121831},
{"B", "boron", 10.81}, {"B", "boron", 10.81},
{"C", "carbon", 12.011 }, {"C", "carbon", 12.011},
{"N", "nitrogen", 14.007}, {"N", "nitrogen", 14.007},
{"O", "oxygen", 15.999 }, {"O", "oxygen", 15.999},
{"F", "fluorine", 18.998403163}, {"F", "fluorine", 18.998403163},
{"Ne", "neon", 20.1797 }, {"Ne", "neon", 20.1797},
{"Na", "sodium", 22.98976928}, {"Na", "sodium", 22.98976928},
{"Mg", "magnesium", 24.305 }, {"Mg", "magnesium", 24.305},
{"Al", "aluminum", 26.9815384}, {"Al", "aluminum", 26.9815384},
{"Si", "silicon", 28.085 }, {"Si", "silicon", 28.085},
{"P", "phosphorus", 30.973761998}, {"P", "phosphorus", 30.973761998},
{"S", "sulfur", 32.06 }, {"S", "sulfur", 32.06},
{"Cl", "chlorine", 35.45 }, {"Cl", "chlorine", 35.45},
{"Ar", "argon", 39.95 }, {"Ar", "argon", 39.95},
{"K", "potassium", 39.0983 }, {"K", "potassium", 39.0983},
{"Ca", "calcium", 40.078 }, {"Ca", "calcium", 40.078},
{"Sc", "scandium", 44.955908}, {"Sc", "scandium", 44.955908},
{"Ti", "titanium", 47.867 }, {"Ti", "titanium", 47.867},
{"V", "vanadium", 50.9415 }, {"V", "vanadium", 50.9415},
{"Cr", "chromium", 51.9961 }, {"Cr", "chromium", 51.9961},
{"Mn", "manganese", 54.938043 }, {"Mn", "manganese", 54.938043},
{"Fe", "iron", 55.845 }, {"Fe", "iron", 55.845},
{"Co", "cobalt", 58.933194 }, {"Co", "cobalt", 58.933194},
{"Ni", "nickel", 58.6934 }, {"Ni", "nickel", 58.6934},
{"Cu", "copper", 63.546 }, {"Cu", "copper", 63.546},
{"Zn", "zinc", 65.38 }, {"Zn", "zinc", 65.38},
{"Ga", "gallium", 69.723 }, {"Ga", "gallium", 69.723},
{"Ge", "germanium", 72.630 }, {"Ge", "germanium", 72.630},
{"As", "arsenic", 74.921595}, {"As", "arsenic", 74.921595},
{"Se", "selenium", 78.971 }, {"Se", "selenium", 78.971},
{"Br", "bromine", 79.904 }, {"Br", "bromine", 79.904},
{"Kr", "krypton", 83.798 }, {"Kr", "krypton", 83.798},
{"Rb", "rubidium", 85.4678 }, {"Rb", "rubidium", 85.4678},
{"Sr", "strontium", 87.62 }, {"Sr", "strontium", 87.62},
{"Y", "yttrium", 88.90584}, {"Y", "yttrium", 88.90584},
{"Zr", "zirconium", 91.224 }, {"Zr", "zirconium", 91.224},
{"Nb", "nobelium", 92.90637}, {"Nb", "nobelium", 92.90637},
{"Mo", "molybdenum", 95.95 }, {"Mo", "molybdenum", 95.95},
{"Tc", "technetium", -1.0 }, {"Tc", "technetium", -1.0},
{"Ru", "ruthenium", 101.07 }, {"Ru", "ruthenium", 101.07},
{"Rh", "rhodium", 102.90549 }, {"Rh", "rhodium", 102.90549},
{"Pd", "palladium", 106.42 }, {"Pd", "palladium", 106.42},
{"Ag", "silver", 107.8682 }, {"Ag", "silver", 107.8682},
{"Cd", "cadmium", 112.414 }, {"Cd", "cadmium", 112.414},
{"In", "indium", 114.818 }, {"In", "indium", 114.818},
{"Sn", "tin", 118.710 }, {"Sn", "tin", 118.710},
{"Sb", "antimony", 121.760 }, {"Sb", "antimony", 121.760},
{"Te", "tellurium", 127.60 }, {"Te", "tellurium", 127.60 },
{"I", "iodine", 126.90447}, {"I", "iodine", 126.90447},
{"Xe", "xenon", 131.293 }, {"Xe", "xenon", 131.293},
{"Cs", "cesium", 132.90545196}, {"Cs", "cesium", 132.90545196},
{"Ba", "barium", 137.327 }, {"Ba", "barium", 137.327},
{"La", "lanthanum", 138.90547 }, {"La", "lanthanum", 138.90547},
{"Ce", "cerium", 140.116 }, {"Ce", "cerium", 140.116},
{"Pr", "praseodymium", 140.90766}, {"Pr", "praseodymium", 140.90766},
{"Nd", "neodymium", 144.242 }, {"Nd", "neodymium", 144.242},
{"Pm", "promethium", -1.0 }, {"Pm", "promethium", -1.0},
{"Sm", "samarium", 150.36 }, {"Sm", "samarium", 150.36},
{"Eu", "europium", 151.964 }, {"Eu", "europium", 151.964},
{"Gd", "gadolinium", 157.25 }, {"Gd", "gadolinium", 157.25},
{"Tb", "terbium", 158.925354}, {"Tb", "terbium", 158.925354},
{"Dy", "dysprosium", 162.500 }, {"Dy", "dysprosium", 162.500},
{"Ho", "holmium", 164.930328}, {"Ho", "holmium", 164.930328},
{"Er", "erbium", 167.259 }, {"Er", "erbium", 167.259},
{"Tm", "thulium", 168.934218}, {"Tm", "thulium", 168.934218},
{"Yb", "ytterbium", 173.045 }, {"Yb", "ytterbium", 173.045},
{"Lu", "lutetium", 174.9668 }, {"Lu", "lutetium", 174.9668},
{"Hf", "hafnium", 178.49 }, {"Hf", "hafnium", 178.49},
{"Ta", "tantalum", 180.94788 }, {"Ta", "tantalum", 180.94788},
{"W", "tungsten", 183.84 }, {"W", "tungsten", 183.84},
{"Re", "rhenium", 186.207 }, {"Re", "rhenium", 186.207},
{"Os", "osmium", 190.23 }, {"Os", "osmium", 190.23 },
{"Ir", "iridium", 192.217 }, {"Ir", "iridium", 192.217},
{"Pt", "platinum", 195.084 }, {"Pt", "platinum", 195.084},
{"Au", "gold", 196.966570}, {"Au", "gold", 196.966570},
{"Hg", "mercury", 200.592 }, {"Hg", "mercury", 200.592},
{"Tl", "thallium", 204.38 }, {"Tl", "thallium", 204.38},
{"Pb", "lead", 207.2 }, {"Pb", "lead", 207.2 },
{"Bi", "bismuth", 208.98040}, {"Bi", "bismuth", 208.98040},
{"Po", "polonium", -1.0 }, {"Po", "polonium", -1.0},
{"At", "astatine", -1.0 }, {"At", "astatine", -1.0},
{"Rn", "radon", -1.0 }, {"Rn", "radon", -1.0},
{"Fr", "francium", -1.0 }, {"Fr", "francium", -1.0},
{"Ra", "radium", -1.0 }, {"Ra", "radium", -1.0},
{"Ac", "actinium", -1.0 }, {"Ac", "actinium", -1.0},
{"Th", "thorium", 232.0377 }, {"Th", "thorium", 232.0377},
{"Pa", "protactinium", 231.03588}, {"Pa", "protactinium", 231.03588},
{"U", "uranium", 238.02891 }, {"U", "uranium", 238.02891},
{"Np", "neptunium", -1.0 }, {"Np", "neptunium", -1.0},
{"Pu", "plutonium", -1.0 }, {"Pu", "plutonium", -1.0},
{"Am", "americium", -1.0 }, {"Am", "americium", -1.0},
{"Cm", "curium", -1.0 }, {"Cm", "curium", -1.0},
{"Bk", "berkelium", -1.0 }, {"Bk", "berkelium", -1.0},
{"Cf", "californium", -1.0 }, {"Cf", "californium", -1.0},
{"Es", "einstiunium", -1.0 }, {"Es", "einstiunium", -1.0},
{"Fm", "fermium", -1.0 }, {"Fm", "fermium", -1.0},
{"Md", "mendelevium", -1.0 }, {"Md", "mendelevium", -1.0},
{"No", "nobelium", -1.0 }, {"No", "nobelium", -1.0},
{"Lr", "lawrencium", -1.0 }, {"Lr", "lawrencium", -1.0},
{"Rf", "rutherfordium", -1.0 }, {"Rf", "rutherfordium", -1.0},
{"Db", "dubnium", -1.0 }, {"Db", "dubnium", -1.0},
{"Sg", "seaborgium", -1.0 }, {"Sg", "seaborgium", -1.0},
{"Bh", "bohrium", -1.0 }, {"Bh", "bohrium", -1.0},
{"Hs", "hassium", -1.0 }, {"Hs", "hassium", -1.0},
{"Mt", "meitnerium", -1.0 }, {"Mt", "meitnerium", -1.0},
{"Ds", "darmstadtium", -1.0 }, {"Ds", "darmstadtium", -1.0},
{"Rg", "roentgenium", -1.0 }, {"Rg", "roentgenium", -1.0},
{"Cn", "copernicium", -1.0 }, {"Cn", "copernicium", -1.0},
{"Nh", "nihonium", -1.0 }, {"Nh", "nihonium", -1.0},
{"Gl", "flerovium", -1.0 }, {"Gl", "flerovium", -1.0},
{"Mc", "moscovium", -1.0 }, {"Mc", "moscovium", -1.0},
{"Lv", "livermorium", -1.0 }, {"Lv", "livermorium", -1.0},
{"Ts", "tennessine", -1.0 }, {"Ts", "tennessine", -1.0},
{"Og", "oganesson", -1.0 }, {"Og", "oganesson", -1.0},
}; };
/*! /*!