/[escript]/branches/split/escriptcore/src/SplitWorld.cpp
ViewVC logotype

Diff of /branches/split/escriptcore/src/SplitWorld.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4773 by jfenwick, Wed Mar 19 06:19:42 2014 UTC revision 4774 by jfenwick, Wed Mar 19 06:45:39 2014 UTC
# Line 70  object SplitWorld::buildDomains(tuple t, Line 70  object SplitWorld::buildDomains(tuple t,
70      // now add the subworld to the kwargs      // now add the subworld to the kwargs
71      kwargs["escriptworld"]=localworld;      kwargs["escriptworld"]=localworld;
72    
 // std::cerr << "About to call function with:\n";  
 // //extract<std::string> ex(ntup.attr("__str__")());  
 //  std::cerr << extract<std::string>(ntup.attr("__str__")())() << std::endl;  
 // // for (int i=0;i<tsize-1;++i)  
 // // {  
 // //     std::cout << extract<const char*>(ntup[i])() << " ";  
 // // }  
 // std::cerr << std::endl;  
       
73      // pass the whole package to the python call      // pass the whole package to the python call
74      object dobj=tocall(*ntup, **kwargs);      object dobj=tocall(*ntup, **kwargs);
75      extract<Domain_ptr> ex1(dobj);      extract<Domain_ptr> ex1(dobj);
# Line 175  void SplitWorld::runJobs() Line 166  void SplitWorld::runJobs()
166      // now we actually need to run the jobs      // now we actually need to run the jobs
167      // everybody will be executing their localworld's jobs      // everybody will be executing their localworld's jobs
168      int res=localworld->runJobs(err);        int res=localworld->runJobs(err);  
 std::cerr << "Done local jobs" << std::endl;      
169      // now we find out about the other worlds      // now we find out about the other worlds
170      if (!checkResultInt(res, mres, globalcom))      if (!checkResultInt(res, mres, globalcom))
171      {      {
# Line 246  void SplitWorld::distributeJobs() Line 236  void SplitWorld::distributeJobs()
236      int errstat=0;      int errstat=0;
237      try      try
238      {      {
 std::cerr << "Numjobs=" << numjobs << " start=" << start << std::endl;      
239      // No other subworld will be looking at this portion of the array      // No other subworld will be looking at this portion of the array
240      // so jobs will only be created on one subworld      // so jobs will only be created on one subworld
241      for (unsigned int i=start;i<start+numjobs;++i)      for (unsigned int i=start;i<start+numjobs;++i)

Legend:
Removed from v.4773  
changed lines
  Added in v.4774

  ViewVC Help
Powered by ViewVC 1.1.26