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)
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits