mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +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
|
||||
{ return Valid() ? mesh->GetCommunicator() : NgMPI_Comm(MPI_COMM_NULL); }
|
||||
{ return Valid() ? mesh->GetCommunicator() : NgMPI_Comm{}; }
|
||||
|
||||
void Ngx_Mesh :: SaveMesh (ostream & ost) const
|
||||
{
|
||||
|
@ -1217,7 +1217,7 @@ namespace netgen
|
||||
mesh->SetMinimalH (mparam.minh);
|
||||
}
|
||||
|
||||
#ifdef PARALLEL
|
||||
#ifdef PARALLELGL
|
||||
MyMPI_SendCmd ("bcastparthread");
|
||||
MyMPI_Bcast (mparam.parthread, MPI_COMM_WORLD);
|
||||
#endif
|
||||
@ -2703,7 +2703,7 @@ void PlayAnimFile(const char* name, int speed, int maxcnt)
|
||||
//cout << "stopped acis, outcome = " << res.ok() << endl;
|
||||
#endif
|
||||
|
||||
#ifdef PARALLEL
|
||||
#ifdef PARALLELGL
|
||||
if (id == 0) MyMPI_SendCmd ("end");
|
||||
MPI_Finalize();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user