[vtk-developers] vtkCommunicator missing 64-bit methods?

Thompson, David C dcthomp at sandia.gov
Fri Mar 30 01:45:55 EDT 2007


Hey everybody,

I recently noticed that vtkCommunicator (and its two
descendants vtkMPICommunicator and vtkSocketCommunicator)
were missing Send() and Receive() methods for 64-bit
integer arrays. I would like to add these methods to the
3 classes for both vtkTypeInt64 and vtkTypeUInt64. I have
a working implementation for vtkTypeUInt64, but the signed
integer version is a little trickier because if
VTK_USE_64BIT_IDS is turned on, these methods are defined:

virtual int Send( vtkIdType* data, int length, int remoteHandle, int tag );
virtual int Receive( vtkIdType* data, int length, int remoteHandle, int tag );

If I replace the above with

virtual int Send( vtkTypeInt64* data, int length, int remoteHandle, int tag );
virtual int Receive( vtkTypeInt64* data, int length, int remoteHandle, int tag );

whenever 64-bit integer types exist, will that cause
problems (i.e., are there compilers which can't resolve
that a 64-bit vtkIdType and vtkTypeInt64 are identical)?

    Comments? Objections?
    David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20070329/015b71d7/attachment.html>


More information about the vtk-developers mailing list