mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
multithreaded mpi
This commit is contained in:
parent
95726ff4a1
commit
b00666b2da
@ -63,7 +63,10 @@ int main(int argc, char ** argv)
|
||||
{
|
||||
|
||||
#ifdef PARALLEL
|
||||
MPI_Init(&argc, &argv);
|
||||
int required = MPI_THREAD_MULTIPLE;
|
||||
int provided;
|
||||
MPI_Init_thread(&argc, &argv, required, &provided);
|
||||
cout << "requ = " << required << ", provided = " << provided << endl;
|
||||
MPI_Comm_size(MPI_COMM_WORLD, &netgen::ntasks);
|
||||
MPI_Comm_rank(MPI_COMM_WORLD, &netgen::id);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user