[vtk-developers] VTK/Examples/Infovis/Cxx/ParallelBFS.cxx
Mathieu Malaterre
mathieu.malaterre at gmail.com
Thu Oct 1 09:40:28 EDT 2009
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();
More information about the vtk-developers
mailing list