[cig-commits] [commit] add_gibbs_energy: Another bug fix for processchemistry.py (e47cb7b)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Dec 11 17:12:16 PST 2014


Repository : https://github.com/geodynamics/burnman

On branch  : add_gibbs_energy
Link       : https://github.com/geodynamics/burnman/compare/0000000000000000000000000000000000000000...2148b324d3e8aa7b527f831eb397590942563008

>---------------------------------------------------------------

commit e47cb7ba0075ce95af00aebf849db11a6acd4347
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Wed Sep 3 17:07:14 2014 +0200

    Another bug fix for processchemistry.py


>---------------------------------------------------------------

e47cb7ba0075ce95af00aebf849db11a6acd4347
 burnman/processchemistry.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/burnman/processchemistry.py b/burnman/processchemistry.py
index 033536a..e7de384 100644
--- a/burnman/processchemistry.py
+++ b/burnman/processchemistry.py
@@ -205,8 +205,10 @@ def ProcessSolidSolutionChemistry(formulae):
                     if len(element) == 1:
                         nel=1.
                     else: 
-                        nel=float(float(element[1])
-                    solution_formula[element[0]]=solution_formula.get(element[0], 0.0) + float(element[1])
+                        nel=float(float(element[1]))
+                    solution_formula[element[0]]=solution_formula.get(element[0], 0.0) + nel
+
+
 
         solution_formulae.append(solution_formula)
 



More information about the CIG-COMMITS mailing list