mailr23029 - /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 - 09:45:
Author: tlinnet
Date: Wed May  7 09:45:17 2014
New Revision: 23029

URL: http://svn.gna.org/viewcvs/relax?rev=23029&view=rev
Log:
Removed the pre-calculation of "zeta2 = zeta**2" "Psi2 = Psi**2" since it did 
not speed-up things.

This power 2 of zeta and Psi is only done once.

sr #3154: (https://gna.org/support/?3154) Implementation of Baldwin (2014) 
B14 model - 2-site exact solution model for all time scales.

This follows the tutorial for adding relaxation dispersion models at:
http://wiki.nmr-relax.com/Tutorial_for_adding_relaxation_dispersion_models_to_relax#Debugging

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=23029&r1=23028&r2=23029&view=diff
==============================================================================
--- trunk/lib/dispersion/b14.py (original)
+++ trunk/lib/dispersion/b14.py Wed May  7 09:45:17 2014
@@ -160,10 +160,8 @@
 
     # Repetitive calculations (to speed up calculations).
     dw2 = dw**2
-    zeta2 = zeta**2
-    Psi2 = Psi**2
     two_tcp = 2.0 * tcp
-    sqrt_zeta2_Psi2 = sqrt(zeta2 + Psi2)
+    sqrt_zeta2_Psi2 = sqrt(zeta**2 + Psi**2)
 
     # Get the real and imaginary components of the exchange induced shift.
     g3 = g_fact * sqrt( Psi + sqrt_zeta2_Psi2)




Related Messages


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