Fix building without MPI

This commit is contained in:
Matthias Hochsteger 2024-05-16 11:03:44 +02:00
parent 05c01ee884
commit 2072f70f7f

View File

@ -498,7 +498,6 @@ namespace ngcore
#ifdef PARALLEL #ifdef PARALLEL
if(MPI_Loaded()) if(MPI_Loaded())
comm = NgMPI_Comm(NG_MPI_COMM_WORLD); comm = NgMPI_Comm(NG_MPI_COMM_WORLD);
#endif
if(comm.Size()>1) if(comm.Size()>1)
{ {
auto comm = NgMPI_Comm(NG_MPI_COMM_WORLD); auto comm = NgMPI_Comm(NG_MPI_COMM_WORLD);
@ -528,6 +527,7 @@ namespace ngcore
} }
} }
else else
#endif
{ {
container_nodes.reserve(num_nodes); container_nodes.reserve(num_nodes);
for(int i=0; i<num_nodes; i++) for(int i=0; i<num_nodes; i++)