mailr23822 - /branches/disp_spin_speed/target_functions/relax_disp.py


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

Header


Content

Posted by tlinnet on June 11, 2014 - 10:08:
Author: tlinnet
Date: Wed Jun 11 10:08:10 2014
New Revision: 23822

URL: http://svn.gna.org/viewcvs/relax?rev=23822&view=rev
Log:
Clearing the dw_struct before calculation.

Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion 
models for Clustered analysis.

Modified:
    branches/disp_spin_speed/target_functions/relax_disp.py

Modified: branches/disp_spin_speed/target_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/target_functions/relax_disp.py?rev=23822&r1=23821&r2=23822&view=diff
==============================================================================
--- branches/disp_spin_speed/target_functions/relax_disp.py     (original)
+++ branches/disp_spin_speed/target_functions/relax_disp.py     Wed Jun 11 
10:08:10 2014
@@ -559,6 +559,9 @@
         """
 
         # Loop over the dw elements (one per spin).
+        # First clear the data from last call.
+        self.dw_struct[:] = 0.0
+
         for si in range(self.NS):
             # First multiply the spin specific dw with the spin specific 
frequency mask, using temporary storage.
             multiply(dw[si], self.dw_mask[si], self.dw_temp)




Related Messages


Powered by MHonArc, Updated Wed Jun 11 10:20:03 2014