mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-25 22:22:03 +05:00
parallel computing
This commit is contained in:
parent
d705856ed0
commit
6770f8f1aa
@ -71,6 +71,7 @@ int main(int argc, char ** argv)
|
|||||||
// MPI_Init(&argc, &argv);
|
// MPI_Init(&argc, &argv);
|
||||||
|
|
||||||
int required = MPI_THREAD_MULTIPLE;
|
int required = MPI_THREAD_MULTIPLE;
|
||||||
|
// int required = 0;
|
||||||
int provided;
|
int provided;
|
||||||
MPI_Init_thread(&argc, &argv, required, &provided);
|
MPI_Init_thread(&argc, &argv, required, &provided);
|
||||||
|
|
||||||
|
@ -98,8 +98,6 @@ void ParallelRun()
|
|||||||
MPI_Comm_size(MPI_COMM_WORLD, &ntasks);
|
MPI_Comm_size(MPI_COMM_WORLD, &ntasks);
|
||||||
MPI_Comm_rank(MPI_COMM_WORLD, &id);
|
MPI_Comm_rank(MPI_COMM_WORLD, &id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool test = true;
|
bool test = true;
|
||||||
|
|
||||||
// testout = new ostream(0);
|
// testout = new ostream(0);
|
||||||
@ -195,9 +193,9 @@ void ParallelRun()
|
|||||||
MyMPI_Recv (curDrawable, 0, MPI_TAG_VIS);
|
MyMPI_Recv (curDrawable, 0, MPI_TAG_VIS);
|
||||||
MyMPI_Recv (contextid, 0, MPI_TAG_VIS);
|
MyMPI_Recv (contextid, 0, MPI_TAG_VIS);
|
||||||
|
|
||||||
|
|
||||||
display = XOpenDisplay (displname.c_str());
|
display = XOpenDisplay (displname.c_str());
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PrintMessage (3, "displ - name = ", displname);
|
PrintMessage (3, "displ - name = ", displname);
|
||||||
PrintMessage (3, "display = ", display,
|
PrintMessage (3, "display = ", display,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user