Fix for missing bcast specialization.

Needed in complex builds.  For issue #2246
This commit is contained in:
Mark Dewing 2020-01-28 11:46:48 -06:00
parent 858d656243
commit 3b7433f707
1 changed files with 6 additions and 0 deletions

View File

@ -684,6 +684,12 @@ inline void Communicate::bcast(double* restrict x, int n)
MPI_Bcast(x, n, MPI_DOUBLE, 0, myMPI);
}
template<>
inline void Communicate::bcast(std::complex<double>* restrict x, int n)
{
MPI_Bcast(x, 2*n, MPI_DOUBLE, 0, myMPI);
}
template<>
inline void Communicate::bcast(float* restrict x, int n)
{