[vtk-developers] VTK/Examples/Infovis/Cxx/ParallelBFS.cxx

Randy Heiland heiland at indiana.edu
Mon Oct 5 11:40:50 EDT 2009


Mathieu,

I'm guessing that you found/fixed your seg fault problem, based on  
comments that I just saw in CVS, but I'll mention this page as a  
follow-up:

http://mypage.iu.edu/~heiland/sandia/pbgl/ParallelBFS/

-Randy


Begin forwarded message:

> ------------------------------
>
> Message: 2
> Date: Thu, 1 Oct 2009 15:40:28 +0200
> From: Mathieu Malaterre <mathieu.malaterre at gmail.com>
> Subject: [vtk-developers] VTK/Examples/Infovis/Cxx/ParallelBFS.cxx
> To: vtk-developers at vtk.org
> Message-ID:
> 	<bf0c3b3f0910010640i3ee20779sc953ee8317877826 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi there,
>
>  I am reading :
>
> http://www.sandia.gov/Titan/media/Information_Visualization_in_VTK.pdf
>
>  Looking at page 57, I decided to try the example :
> VTK/Examples/Infovis/Cxx/ParallelBFS.cxx
>
>  It looks like it was removed from compilation, for a reason I do not
> quite understand:
>
> http://public.kitware.com/cgi-bin/viewcvs.cgi/Examples/Infovis/Cxx/CMakeLists.txt?r1=1.2&r2=1.3
>
>  Why can't I just test for the value of VTK_USE_PARALLEL_BGL ?
>
>  Anyway after applying a small patch I tried it on my computer but
> only got a segfault. Steps:
>
> $ lamboot
>
> LAM 7.1.2/MPI 2 C++/ROMIO - Indiana University
>
> $ ./bin/ParallelBFS
> MPI process rank 0 (n0, p20203) caught a SIGSEGV.
> [2]    20203 segmentation fault  ./bin/ParallelBFS
>
> Do I need some special command line options ?
>
> Thanks
> -- 
> Mathieu
>
> $ cvs di Examples
> Index: Examples/Infovis/Cxx/CMakeLists.txt
> ===================================================================
> RCS file: /cvsroot/VTK/VTK/Examples/Infovis/Cxx/CMakeLists.txt,v
> retrieving revision 1.6
> diff -u -r1.6 CMakeLists.txt
> --- Examples/Infovis/Cxx/CMakeLists.txt	17 Oct 2008 21:23:05 -0000	1.6
> +++ Examples/Infovis/Cxx/CMakeLists.txt	1 Oct 2009 13:34:19 -0000
> @@ -33,5 +33,7 @@
>
> # Excluding from build for now because there is currently no way to  
> check
> # if VTK_USE_PARALLEL_BGL is on.
> -#ADD_EXECUTABLE(ParallelBFS ParallelBFS.cxx)
> -#TARGET_LINK_LIBRARIES(ParallelBFS vtkParallel vtkViews)
> +IF(VTK_USE_PARALLEL_BGL)
> +  ADD_EXECUTABLE(ParallelBFS ParallelBFS.cxx)
> +  TARGET_LINK_LIBRARIES(ParallelBFS vtkParallel vtkViews)
> +ENDIF(VTK_USE_PARALLEL_BGL)
> Index: Examples/Infovis/Cxx/ParallelBFS.cxx
> ===================================================================
> RCS file: /cvsroot/VTK/VTK/Examples/Infovis/Cxx/ParallelBFS.cxx,v
> retrieving revision 1.1
> diff -u -r1.1 ParallelBFS.cxx
> --- Examples/Infovis/Cxx/ParallelBFS.cxx	8 Oct 2008 02:04:45 -0000	1.1
> +++ Examples/Infovis/Cxx/ParallelBFS.cxx	1 Oct 2009 13:34:19 -0000
> @@ -76,7 +76,7 @@
>     view->ColorVerticesOn();
>     vtkSmartPointer<vtkRenderWindow> win =
>       vtkSmartPointer<vtkRenderWindow>::New();
> -    view->SetupRenderWindow(win);
> +    //view->SetupRenderWindow(win);
>     view->Update();
>     view->GetRenderer()->ResetCamera();
>     win->GetInteractor()->Initialize();
>
>
> ------------------------------
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
> End of vtk-developers Digest, Vol 66, Issue 1
> *********************************************




More information about the vtk-developers mailing list