mailr15623 - /1.3/multi/test_implementation2.py


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

Header


Content

Posted by edward on March 23, 2012 - 17:57:
Author: bugman
Date: Fri Mar 23 17:57:31 2012
New Revision: 15623

URL: http://svn.gna.org/viewcvs/relax?rev=15623&view=rev
Log:
The 2nd test implementation's slave command now uses the fetch_data() API 
function.

This is to obtain the invariant data pre-sent by the master to the slaves.


Modified:
    1.3/multi/test_implementation2.py

Modified: 1.3/multi/test_implementation2.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/multi/test_implementation2.py?rev=15623&r1=15622&r2=15623&view=diff
==============================================================================
--- 1.3/multi/test_implementation2.py (original)
+++ 1.3/multi/test_implementation2.py Fri Mar 23 17:57:31 2012
@@ -285,6 +285,9 @@
         @type completed:    bool
         """
 
+        # Get the invariant data from this slave's data store.
+        vect = fetch_data('vect')
+
         # Perform some random useless time-consuming stuff.
         num_calcs = 0
         for i in range(self.N):
@@ -292,7 +295,7 @@
             R_random_hypersphere(self.R)
 
             # Rotate the vector.
-            new_vect = dot(self.R, processor.data_store.vect)
+            new_vect = dot(self.R, vect)
 
             # The length sum.
             self.length += norm(new_vect)




Related Messages


Powered by MHonArc, Updated Fri Mar 23 19:00:02 2012