mailr23061 - /trunk/lib/dispersion/b14.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by tlinnet on May 07, 2014 - 16:35:
Author: tlinnet
Date: Wed May  7 16:35:04 2014
New Revision: 23061

URL: http://svn.gna.org/viewcvs/relax?rev=23061&view=rev
Log:
Speed-up by removing integer to float conversion part.


Modified:
    trunk/lib/dispersion/b14.py

Modified: trunk/lib/dispersion/b14.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/dispersion/b14.py?rev=23061&r1=23060&r2=23061&view=diff
==============================================================================
--- trunk/lib/dispersion/b14.py (original)
+++ trunk/lib/dispersion/b14.py Wed May  7 16:35:04 2014
@@ -155,8 +155,8 @@
 
     # The Carver and Richards (1972) alpha_minus short notation.
     alpha_m = deltaR2 + k_AB - k_BA
-    zeta = 2 * dw * alpha_m
-    Psi = alpha_m**2 + 4 * k_BA * k_AB - dw**2
+    zeta = 2.0 * dw * alpha_m
+    Psi = alpha_m**2 + 4.0 * k_BA * k_AB - dw**2
 
     # Repetitive calculations (to speed up calculations).
     dw2 = dw**2




Related Messages


Powered by MHonArc, Updated Wed May 07 17:20:02 2014