From 5b430b57bd6f37aac450979fc298d9b960cbe970 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 22 Jul 2011 23:06:25 +0000 Subject: [PATCH] absolute value vis in parallel --- libsrc/visualization/vssolution.cpp | 16 +++++----------- libsrc/visualization/vssolution.hpp | 2 +- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/libsrc/visualization/vssolution.cpp b/libsrc/visualization/vssolution.cpp index 5c5f61f9..f15ae281 100644 --- a/libsrc/visualization/vssolution.cpp +++ b/libsrc/visualization/vssolution.cpp @@ -994,13 +994,6 @@ namespace netgen par_surfellists.SetSize (ntasks); - /* - for ( int dest = 1; dest < ntasks; dest++ ) - { - MyMPI_Send ("redraw", dest, MPI_TAG_CMD); - MyMPI_Send ("solsurfellist", dest, MPI_TAG_VIS); - } - */ MyMPI_SendCmd ("redraw"); MyMPI_SendCmd ("solsurfellist"); @@ -1197,7 +1190,6 @@ namespace netgen double invn = 1.0 / n; npt = (n+1)*(n+2)/2; - for(SurfaceElementIndex sei = 0; sei < nse; sei++) { const Element2d & el = (*mesh)[sei]; @@ -4125,7 +4117,7 @@ namespace netgen 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 4 + 1, 4 }; MPI_Aint displ[] = { (char*)&usetexture - (char*)this, (char*)&clipsolution - (char*)this, @@ -4142,6 +4134,8 @@ namespace netgen (char*)&numisolines - (char*)this, (char*)&subdivisions - (char*)this, + (char*)&evalfunc - (char*)this, + (char*)&clipplane[0] - (char*)this }; @@ -4149,10 +4143,10 @@ namespace netgen MPI_INT, MPI_INT, MPI_INT, MPI_INT, MPI_INT, MPI_INT, MPI_INT, MPI_INT, MPI_DOUBLE, MPI_DOUBLE, MPI_INT, MPI_INT, - MPI_DOUBLE + MPI_INT, MPI_DOUBLE }; - MPI_Type_create_struct (13, blocklen, displ, types, &type); + MPI_Type_create_struct (14, blocklen, displ, types, &type); MPI_Type_commit ( &type ); MPI_Bcast (this, 1, type, 0, MPI_COMM_WORLD); diff --git a/libsrc/visualization/vssolution.hpp b/libsrc/visualization/vssolution.hpp index 4ee139c6..9bf1b78d 100644 --- a/libsrc/visualization/vssolution.hpp +++ b/libsrc/visualization/vssolution.hpp @@ -100,7 +100,7 @@ public: FUNC_MISES = 3, FUNC_MAIN = 4 }; - EvalFunc evalfunc; + int evalfunc; enum SolType {