Question #695081 on Yade changed:
https://answers.launchpad.net/yade/+question/695081

    Status: Answered => Solved

Su Kan confirmed that the question is solved:
To Janek,

> try without chunksize.

Thanks a lot, it works when VTK is turned off.

But when VTK is turn on (I'm using vtk 8.2.0), the no matching function
error occured,  maybe it will be fixed by the upstream in the future?

```
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.cpp:694:31: error: no 
matching function for call to 'vtkUnsignedCharArray::InsertNextTuple(unsigned 
char [3])'
  694 | pbColors->INSERT_NEXT_TUPLE(c);
      | ^
In file included from /usr/include/vtk/vtkIntArray.h:33,
                 from /usr/include/vtk/vtkCellTypes.h:42,
                 from /usr/include/vtk/vtkPolyData.h:64,
                 from 
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.hpp:15,
                 from 
/tmp/makepkg/yade/src/trunk/pkg/common/Gl1_PotentialBlock.cpp:9,
                 from /tmp/makepkg/yade/src/build/pkg.0.cpp:9:
/usr/include/vtk/vtkAOSDataArrayTemplate.h:214:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate<ValueTypeT>::InsertNextTuple(const float*) [with 
ValueTypeT = unsigned char; vtkIdType = long long int]'
  214 | vtkIdType InsertNextTuple(const float *tuple) override;
      | ^~~~~~~~~~~~~~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:214:42: note: no known conversion 
for argument 1 from 'unsigned char [3]' to 'const float*'
  214 | vtkIdType InsertNextTuple(const float *tuple) override;
      | ~~~~~~~~~~~~~^~~~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:215:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate<ValueTypeT>::InsertNextTuple(const double*) [with 
ValueTypeT = unsigned char; vtkIdType = long long int]'
  215 | vtkIdType InsertNextTuple(const double *tuple) override;
      | ^~~~~~~~~~~~~~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:215:43: note: no known conversion 
for argument 1 from 'unsigned char [3]' to 'const double*'
  215 | vtkIdType InsertNextTuple(const double *tuple) override;
      | ~~~~~~~~~~~~~~^~~~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:218:13: note: candidate: 'vtkIdType 
vtkAOSDataArrayTemplate<ValueTypeT>::InsertNextTuple(vtkIdType, 
vtkAbstractArray*) [with ValueTypeT = unsigned char; vtkIdType = long long int]'
  218 | vtkIdType InsertNextTuple(vtkIdType srcTupleIdx,
      | ^~~~~~~~~~~~~~~
/usr/include/vtk/vtkAOSDataArrayTemplate.h:218:13: note: candidate expects 2 
arguments, 1 provided
```

To Robert,

    Thanks for pointing out this. I'm new here, not familiar with
launchpad. I used these links just to make my post shorter, and get the
codes highlighted. I also selected the save forever option on the
pastebin site (so others can see it).

Well, I won't use external links in this forum in the future.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to