From: turcksin Date: Tue, 4 Jun 2013 14:44:57 +0000 (+0000) Subject: Fix a bug when using 32bits global indices. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=078bcfdf5fe27cd0348dfb5c3a42101a348fec86;p=dealii-svn.git Fix a bug when using 32bits global indices. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29749 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/sparsity_tools.cc b/deal.II/source/lac/sparsity_tools.cc index fda4a412e5..95435d3984 100644 --- a/deal.II/source/lac/sparsity_tools.cc +++ b/deal.II/source/lac/sparsity_tools.cc @@ -452,7 +452,11 @@ namespace SparsityTools for (map_vec_t::iterator it=send_data.begin(); it!=send_data.end(); ++it, ++idx) MPI_Isend(&(it->second[0]), it->second.size(), +#ifdef DEAL_II_USE_LARGE_INDEX_TYPE MPI_UNSIGNED_LONG_LONG, +#else + MPI_UNSIGNED, +#endif it->first, 124, mpi_comm,