mailRe: r27842 - /trunk/multi/processor.py


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

Header


Content

Posted by Edward d'Auvergne on June 08, 2015 - 16:47:
On 27 May 2015 at 03:09,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Wed May 27 03:09:52 2015
New Revision: 27842

URL: http://svn.gna.org/viewcvs/relax?rev=27842&view=rev
Log:
In multi.processor(), moving up the debugging print-out of running sets of 
calculatation.

Modified:
    trunk/multi/processor.py

Modified: trunk/multi/processor.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/multi/processor.py?rev=27842&r1=27841&r2=27842&view=diff
==============================================================================
--- trunk/multi/processor.py    (original)
+++ trunk/multi/processor.py    Wed May 27 03:09:52 2015
@@ -604,14 +604,14 @@

             # Loop until the queue of calculations is depleted.
             while len(running_set) != 0:
-                # Get the result.
-                result = self.master_receive_result()
-
                 # Debugging printout.
                 if verbosity.level():
                     print('\nIdle set:    %s' % idle_set)
                     print('Running set: %s' % running_set)

+                # Get the result.
+                result = self.master_receive_result()
+
                 # Shift the processor rank to the idle set.
                 if result.completed:
                     idle_set.add(result.rank)

This change seems reasonable.  Previously it was saying what remained,
but now it is showing what is to be done.

Regards,

Edward



Related Messages


Powered by MHonArc, Updated Mon Jun 08 17:20:15 2015