From 88aa6ba72248584f2fb095fcbe0812cf29abfcfd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 6 Feb 2021 10:58:06 -0500 Subject: [PATCH] Deal with no MPI in sundials/n_vector.templates.h --- include/deal.II/sundials/n_vector.templates.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {}; } -- 2.39.5