]> https://gitweb.dealii.org/ - dealii.git/commitdiff
explicit instanciation is provided for Utilities::MPI::min and max with ArrayView 9113/head
authorReza Rastak <rastak@stanford.edu>
Sat, 30 Nov 2019 08:46:33 +0000 (00:46 -0800)
committerReza Rastak <rastak@stanford.edu>
Sat, 30 Nov 2019 08:46:33 +0000 (00:46 -0800)
source/base/mpi.inst.in

index efa5a49a348969db1fde92c5519e8e5b5490cca4..73572aea0597439c2b7b845a410c9ca714bed7b6 100644 (file)
@@ -51,12 +51,20 @@ for (S : MPI_SCALARS)
                                       const MPI_Comm &,
                                       std::vector<S> &);
 
+    template void max<S>(const ArrayView<const S> &,
+                         const MPI_Comm &,
+                         const ArrayView<S> &);
+
     template S min<S>(const S &, const MPI_Comm &);
 
     template void min<std::vector<S>>(const std::vector<S> &,
                                       const MPI_Comm &,
                                       std::vector<S> &);
 
+    template void min<S>(const ArrayView<const S> &,
+                         const MPI_Comm &,
+                         const ArrayView<S> &);
+
     // The fixed-length array (i.e., things declared like T(&values)[N])
     // versions of the functions above live in the header file mpi.h since the
     // length (N) is a compile-time constant. Those functions all call

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.