From: Daniel Arndt Date: Sat, 6 Feb 2021 15:58:06 +0000 (-0500) Subject: Deal with no MPI in sundials/n_vector.templates.h X-Git-Tag: v9.3.0-rc1~489^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88aa6ba72248584f2fb095fcbe0812cf29abfcfd;p=dealii.git Deal with no MPI in sundials/n_vector.templates.h --- diff --git a/include/deal.II/sundials/n_vector.templates.h b/include/deal.II/sundials/n_vector.templates.h index a45c4683f9..e7b50b5dae 100644 --- a/include/deal.II/sundials/n_vector.templates.h +++ b/include/deal.II/sundials/n_vector.templates.h @@ -279,7 +279,12 @@ namespace SUNDIALS inline void * get_communicator_as_void_ptr(N_Vector v) { +# ifndef DEAL_II_WITH_MPI + (void)v; + return nullptr; +# else return get_communicator(v); +# endif } } // namespace NVectorOperations @@ -487,7 +492,7 @@ template ::value, int>> MPI_Comm SUNDIALS::internal::NVectorOperations::get_communicator(N_Vector) { - return nullptr; + return {}; }