[cig-commits] [commit] add_thermodynamic_potentials: Minor edit (eb13f4d)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue Dec 9 09:53:16 PST 2014


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

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

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

commit eb13f4d137a566db069c0142d136f5401afb4ab6
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Tue Aug 26 00:24:14 2014 +0200

    Minor edit


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

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

diff --git a/burnman/solidsolution.py b/burnman/solidsolution.py
index 1fbf462..c652b92 100644
--- a/burnman/solidsolution.py
+++ b/burnman/solidsolution.py
@@ -8,9 +8,6 @@ import numpy as np
 
 kd = lambda x,y : 1 if x==y else 0
 
-import burnman.symmetric_model as sym
-import burnman.asymmetric_model as asym
-
 class SolidSolution(Mineral):
     """
     This is the base class for all solid solutions. 
@@ -32,7 +29,8 @@ class SolidSolution(Mineral):
     and P derivatives in J/K/mol and m^3/(mol molecule).
     """
 
-    def __init__(self, base_material, molar_fraction, site_occupancy, interaction_parameter, van_laar_parameter):
+    # init sets up matrices to speed up calculations when P, T, X is defined.
+    def __init__(self, base_material, interaction_parameter):
         self.base_material = base_material
         self.molar_fraction = molar_fraction
         assert(len(base_material) == len(molar_fraction))



More information about the CIG-COMMITS mailing list