mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
Fix building without MPI
This commit is contained in:
parent
05c01ee884
commit
2072f70f7f
@ -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++)
|
||||||
|
Loading…
Reference in New Issue
Block a user