custom parallel source using pythonalgorithm

Hi Harikrishna,

For working in parallel in client-server mode I have in RequestInformation():

def RequestInformation(self, request, inInfoVec, outInfoVec):
                
        outInfo = outInfoVec.GetInformationObject(0)
        outInfo.Set(vtkAlgorithm.CAN_HANDLE_PIECE_REQUEST(), 1)

        ...

and in RequestData():

def RequestData(self, request, inInfoVec, outInfoVec):
                  
        executive = self.GetExecutive()        
        outInfo = executive.GetOutputInformation(0)        
        
        # MPI info:        
        part = outInfo.Get(executive.UPDATE_PIECE_NUMBER())        
        nparts = outInfo.Get(executive.UPDATE_NUMBER_OF_PIECES())        
        nghosts = outInfo.Get(executive.UPDATE_NUMBER_OF_GHOST_LEVELS())

        ...

This will work also without MPI mode (with single pvserver running).

Please let me know if it is still actual for you.

Best Regards,
Pavel