mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
fixes for parallel version running sequential
This commit is contained in:
parent
bf59c1d490
commit
0197a3cca1
@ -62,7 +62,7 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
NgMPI_Comm Ngx_Mesh :: GetCommunicator() const
|
NgMPI_Comm Ngx_Mesh :: GetCommunicator() const
|
||||||
{ return Valid() ? mesh->GetCommunicator() : NgMPI_Comm(MPI_COMM_NULL); }
|
{ return Valid() ? mesh->GetCommunicator() : NgMPI_Comm{}; }
|
||||||
|
|
||||||
void Ngx_Mesh :: SaveMesh (ostream & ost) const
|
void Ngx_Mesh :: SaveMesh (ostream & ost) const
|
||||||
{
|
{
|
||||||
|
@ -1217,7 +1217,7 @@ namespace netgen
|
|||||||
mesh->SetMinimalH (mparam.minh);
|
mesh->SetMinimalH (mparam.minh);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLELGL
|
||||||
MyMPI_SendCmd ("bcastparthread");
|
MyMPI_SendCmd ("bcastparthread");
|
||||||
MyMPI_Bcast (mparam.parthread, MPI_COMM_WORLD);
|
MyMPI_Bcast (mparam.parthread, MPI_COMM_WORLD);
|
||||||
#endif
|
#endif
|
||||||
@ -2703,7 +2703,7 @@ void PlayAnimFile(const char* name, int speed, int maxcnt)
|
|||||||
//cout << "stopped acis, outcome = " << res.ok() << endl;
|
//cout << "stopped acis, outcome = " << res.ok() << endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLELGL
|
||||||
if (id == 0) MyMPI_SendCmd ("end");
|
if (id == 0) MyMPI_SendCmd ("end");
|
||||||
MPI_Finalize();
|
MPI_Finalize();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user