From b3fa8d7403236dd25ea323cc31f539b57da39a88 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 4 Sep 2012 01:45:06 +0000 Subject: [PATCH] Make code slightly more elegant and also make it work with the PGI compiler at the same time. git-svn-id: https://svn.dealii.org/trunk@26226 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/sparsity_tools.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deal.II/source/lac/sparsity_tools.cc b/deal.II/source/lac/sparsity_tools.cc index b49dfeefca..83ce108ca9 100644 --- a/deal.II/source/lac/sparsity_tools.cc +++ b/deal.II/source/lac/sparsity_tools.cc @@ -104,7 +104,7 @@ namespace SparsityTools // Use recursive if the number of // partitions is less than or equal to 8 if (n_partitions <= 8) - ierr = METIS_PartGraphRecursive(&n, &ncon, &int_rowstart[0], &int_colnums[0], + ierr = METIS_PartGraphRecursive(&n, &ncon, &int_rowstart[0], &int_colnums[0], NULL, NULL, NULL, &nparts,NULL,NULL,&options[0], &dummy,&int_partition_indices[0]); @@ -495,9 +495,9 @@ namespace SparsityTools MPI_Recv(&recv_buf[0], len, MPI_BYTE, status.MPI_SOURCE, status.MPI_TAG, mpi_comm, &status); - unsigned int *ptr=&recv_buf[0]; - unsigned int *end=&*(--recv_buf.end()); - while (ptr::const_iterator ptr = recv_buf.begin(); + std::vector::const_iterator end = recv_buf.end(); + while (ptr+1