From 6770f8f1aaba0dbaba55b59a212cfee885464ab5 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 12 Feb 2012 02:25:26 +0000 Subject: [PATCH] parallel computing --- ng/ngappinit.cpp | 5 +++-- ng/parallelfunc.cpp | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ng/ngappinit.cpp b/ng/ngappinit.cpp index 34abcfdf..cfdc0200 100644 --- a/ng/ngappinit.cpp +++ b/ng/ngappinit.cpp @@ -66,11 +66,12 @@ bool shellmode = false; int main(int argc, char ** argv) { - + #ifdef PARALLEL // MPI_Init(&argc, &argv); int required = MPI_THREAD_MULTIPLE; + // int required = 0; int provided; MPI_Init_thread(&argc, &argv, required, &provided); @@ -140,7 +141,7 @@ int main(int argc, char ** argv) if (verbose) cout << "NETGENDIR = " << ngdir << endl; - + if ( netgen::id == 0 ) { diff --git a/ng/parallelfunc.cpp b/ng/parallelfunc.cpp index c5e7ca5e..528c0dfc 100644 --- a/ng/parallelfunc.cpp +++ b/ng/parallelfunc.cpp @@ -98,8 +98,6 @@ void ParallelRun() MPI_Comm_size(MPI_COMM_WORLD, &ntasks); MPI_Comm_rank(MPI_COMM_WORLD, &id); - - bool test = true; // testout = new ostream(0); @@ -195,9 +193,9 @@ void ParallelRun() MyMPI_Recv (curDrawable, 0, MPI_TAG_VIS); MyMPI_Recv (contextid, 0, MPI_TAG_VIS); - display = XOpenDisplay (displname.c_str()); + /* PrintMessage (3, "displ - name = ", displname); PrintMessage (3, "display = ", display,