mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
fix deprecated
This commit is contained in:
parent
6b36a2d9d8
commit
25df08f7a4
@ -270,7 +270,8 @@ namespace netgen
|
|||||||
inline void MyMPI_Bcast (NgArray<T, 0> & s, NgMPI_Comm comm)
|
inline void MyMPI_Bcast (NgArray<T, 0> & s, NgMPI_Comm comm)
|
||||||
{
|
{
|
||||||
int size = s.Size();
|
int size = s.Size();
|
||||||
MyMPI_Bcast (size, comm);
|
// MyMPI_Bcast (size, comm);
|
||||||
|
comm.Bcast(size);
|
||||||
// if (MyMPI_GetId(comm) != 0) s.SetSize (size);
|
// if (MyMPI_GetId(comm) != 0) s.SetSize (size);
|
||||||
if (comm.Rank() != 0) s.SetSize (size);
|
if (comm.Rank() != 0) s.SetSize (size);
|
||||||
MPI_Bcast (&s[0], size, GetMPIType<T>(), 0, comm);
|
MPI_Bcast (&s[0], size, GetMPIType<T>(), 0, comm);
|
||||||
|
Loading…
Reference in New Issue
Block a user