Author: tlinnet Date: Mon May 5 20:19:04 2014 New Revision: 22989 URL: http://svn.gna.org/viewcvs/relax?rev=22989&view=rev Log: Speed-up, by removing repetitive calculations of g4**2. 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=22989&r1=22988&r2=22989&view=diff ============================================================================== --- trunk/lib/dispersion/b14.py (original) +++ trunk/lib/dispersion/b14.py Mon May 5 20:19:04 2014 @@ -153,19 +153,19 @@ ######################################################################### # Repetitive calculations (to speed up calculations). g32 = g3**2 - + g42 = g4**2 #Time independent factors. #N = oG + oE. N = complex(g3, g4) - NNc = g32 + g4**2 + NNc = g32 + g42 # f0. f0 = (dw2 + g32) / NNc # f2. - f2 = (dw2 - g4**2) / NNc + f2 = (dw2 - g42) / NNc # t1 = (-dw + g4) * (complex(-dw, -g3)) / NNc #t1.