mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
No need to init MPI in netgen exe (is not supported to run in parallell
anyway)
This commit is contained in:
parent
19731869d3
commit
c2af423a5b
@ -60,23 +60,6 @@ int main(int argc, char ** argv)
|
||||
{
|
||||
netgen::netgen_executable_started = true;
|
||||
|
||||
#ifdef PARALLEL
|
||||
int mpi_required = netgen::NG_MPI_THREAD_MULTIPLE;
|
||||
#ifdef VTRACE
|
||||
mpi_required = NG_MPI_THREAD_SINGLE;
|
||||
#endif
|
||||
int mpi_provided;
|
||||
netgen::InitMPI();
|
||||
netgen::NG_MPI_Init_thread(&argc, &argv, mpi_required, &mpi_provided);
|
||||
|
||||
netgen::NG_MPI_Comm_size(netgen::NG_MPI_COMM_WORLD, &netgen::ntasks);
|
||||
netgen::NG_MPI_Comm_rank(netgen::NG_MPI_COMM_WORLD, &netgen::id);
|
||||
|
||||
if(netgen::ntasks!=1)
|
||||
throw ngcore::Exception("Netgen GUI cannot run MPI-parallel");
|
||||
|
||||
#endif
|
||||
|
||||
if ( netgen::id == 0 )
|
||||
{
|
||||
cout << "NETGEN-" << netgen::netgen_version << endl;
|
||||
@ -103,11 +86,6 @@ int main(int argc, char ** argv)
|
||||
#ifdef DEBUG
|
||||
cout << "You are running the debug version !" << endl;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef PARALLEL
|
||||
cout << "Including MPI version " << netgen::NG_MPI_VERSION << '.' << netgen::NG_MPI_SUBVERSION << endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -276,15 +254,6 @@ int main(int argc, char ** argv)
|
||||
Tcl_Exit(0);
|
||||
}
|
||||
|
||||
#ifdef PARALLEL
|
||||
else
|
||||
{
|
||||
// ParallelRun();
|
||||
netgen::NG_MPI_Finalize();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user