Skip to content

Commit

Permalink
Add some notes on how to add a new element. I will write some tests t…
Browse files Browse the repository at this point in the history
…o enforce these rules.
  • Loading branch information
baoilleach committed Jul 6, 2017
1 parent 91a3207 commit bf109af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/elementtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,9 @@ ELEMTABLE(115, Mc, 0.00, 1.60, 1.60, 2.00, 6, 288.19, 0.00, 0,
ELEMTABLE(116, Lv, 0.00, 1.60, 1.60, 2.00, 6, 293, 0.00, 0, 0, 0.99, 0.00, 0.08, Livermorium),
ELEMTABLE(117, Ts, 0.00, 1.60, 1.60, 2.00, 6, 294, 0.00, 0, 0, 0.99, 0.00, 0.07, Tennessine),
ELEMTABLE(118, Og, 0.00, 1.60, 1.60, 2.00, 6, 294, 0.00, 0, 0, 0.99, 0.00, 0.06, Oganesson),
// If you add a new element here, please update:
// 1. NUMELEMENTS in elements.cpp
// 2. Add a new const to the end of elements.h
// 3. Update the switch statement for symbol reading in elements.cpp, GetAtomicNum()
// 4. Ditto for the SMILES parser (which has its own switch statement)
// 5. Update the isotope table in elements.cpp, GetExactMass(). Remember to support the '0' value.

0 comments on commit bf109af

Please sign in to comment.