From c2af423a5bf24f590fc6dba2d7ac059594c59ea1 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 14 May 2024 11:26:53 +0200 Subject: [PATCH] No need to init MPI in netgen exe (is not supported to run in parallell anyway) --- ng/ngappinit.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/ng/ngappinit.cpp b/ng/ngappinit.cpp index cfcf5998..bcf0a58e 100644 --- a/ng/ngappinit.cpp +++ b/ng/ngappinit.cpp @@ -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; }