]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #17872 from masterleinad/fix_sundials_7
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 19 Nov 2024 12:45:54 +0000 (07:45 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 19 Nov 2024 14:26:52 +0000 (09:26 -0500)
include/deal.II/sundials/n_vector.templates.h

index 7671ea7d120cbfab1d766821335bb13fbf29e3d2..24680e569aebbee3ada137c2ca3ec8992c9624a1 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_communicator<VectorType>(v));
+          return const_cast<SUNComm &>(get_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.