]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also describe MPI data types. 5389/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 31 Oct 2017 21:45:17 +0000 (15:45 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 3 Nov 2017 17:04:00 +0000 (11:04 -0600)
include/deal.II/base/mpi.templates.h

index f1ca3940201f7504222776d6001fe01a6c3a0d7a..4912534261e5143f9586630bdd06a165246cd3fc 100644 (file)
@@ -92,6 +92,20 @@ namespace Utilities
       {
         return MPI_LONG_DOUBLE;
       }
+
+
+
+      inline MPI_Datatype mpi_type_id (const std::complex<float> *)
+      {
+        return MPI_COMPLEX;
+      }
+
+
+
+      inline MPI_Datatype mpi_type_id (const std::complex<double> *)
+      {
+        return MPI_DOUBLE_COMPLEX;
+      }
 #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.