[Paraview] co-processing script with two datasource ...

u.utku.turuncoglu at be.itu.edu.tr u.utku.turuncoglu at be.itu.edu.tr
Mon Jun 22 15:23:05 EDT 2015


Hi,

Thanks for your help. The driver is running with following code,

    datadescription = vtkCoProcessorPython.vtkCPDataDescription()
    datadescription.SetTimeData(time, step)

    datadescription.AddInput("AtmData1")
    cpscript.RequestDataDescription(datadescription)
    inputdesc1 = datadescription.GetInputDescriptionByName("AtmData1")
    if inputdesc1.GetIfGridIsNecessary() == False:
        return
    inputdesc1.SetGrid(grid1)

    datadescription.AddInput("AtmData2")
    cpscript.RequestDataDescription(datadescription)
    inputdesc2 = datadescription.GetInputDescriptionByName("AtmData2")
    if inputdesc2.GetIfGridIsNecessary() == False:
        return
    inputdesc2.SetGrid(grid2)

    cpscript.DoCoProcessing(datadescription)

So, i just need to replace input with AtmData1 and AtmData2 to match with
coprocessing script. I think that the input port names must watch with the
names with driver code.

Thanks again,
Regards,

--ufuk



More information about the ParaView mailing list