Commit fffb8195 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixing assertions in Array and ArrayView.

parent ec45a042
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -921,7 +921,7 @@ template< typename Value, typename Device, typename Index, typename Allocator >
void receive( Array< Value, Device, Index, Allocator >& array, int src, int tag, MPI_Comm comm )
{
#ifdef HAVE_MPI
   TNL_ASSERT( false, "Does not work" );
   TNL_ASSERT_TRUE( false, "Does not work" );
   MPI_Status status;
   Index size;
   MPI_Recv( ( void* ) size, 1, MPI::getDataType< Index >(), src, tag, comm, &status );
+1 −1
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ template< typename Value, typename Device, typename Index >
void send( const ArrayView< Value, Device, Index >& view, int dest, int tag, MPI_Comm comm )
{
#ifdef HAVE_MPI
   TNL_ASSERT( false, "Does not work" );
   TNL_ASSERT_TRUE( false, "Does not work" );
   auto size = view.getSize();
   MPI_Send( ( const void* ) size, 1, MPI::getDataType< Index >(), dest, tag, comm );
   MPI_Send( ( const void* ) view.getData(), view.getSize() * sizeof( Value ), MPI_BYTE, dest, tag, comm );