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

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue Dec 9 09:56:18 PST 2014


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

On branch  : add_thermodynamic_potentials
Link       : https://github.com/geodynamics/burnman/compare/2e5646d93cedbbf8eae54cc37cffc14e0aa85180...d5ddad03ff9f30f5a4efaddb4e3ec585ea1a7c51

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

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

    Another bug fix for processchemistry.py


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

fb00f8589db64a66941a5267547014258f203f78
 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