]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix get_communicator_by_value for SUNDIALS 7 17872/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 18 Nov 2024 16:37:47 +0000 (11:37 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 18 Nov 2024 16:40:42 +0000 (11:40 -0500)
include/deal.II/sundials/n_vector.templates.h

index 3e54f4874fa911221a6ee28df6461c2805fd2369..8fe20deecce55f9f0680f1ddfb47a107d5ba1c53 100644 (file)
@@ -753,7 +753,7 @@ namespace SUNDIALS
           //
           // Further, we need to cast away const here, as SUNDIALS demands the
           // communicator by value.
-          return const_cast<SUNComm>(get_mpi_communicator<VectorType>(v));
+          return const_cast<SUNComm &>(get_mpi_communicator<VectorType>(v));
         else
           return SUN_COMM_NULL;
 #    endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.