<div>i was mistaken about the error, it's exactly just </div>
<div>Fatal error; unknown error handler<br>May be MPI call before MPI_INIT. Error message is MPI_COMM_SIZE and code is 197</div>
<div> </div>
<div> </div>
<div>aslo vtkoutputwindow is displayed with "null communicator" written inside it..</div>
<div> </div>
<div>thanks</div>
<div>Hanan<br> </div>
<div><span class="gmail_quote">On 7/27/06, <b class="gmail_sendername">Hanan Hassanein</b> <<a href="mailto:hanan.hassanein@gmail.com">hanan.hassanein@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Dear sir, </div>
<div> </div>
<div>Among the examples in the path u specified, when i try to run (from the command line) example like parallelIso.cxx, i got the following error:</div>
<div> </div>
<div>MPIRun.exe -np 2 -localonly VTK_MPI.exe</div>
<div><br>Fatal error; unknown error handler<br>May be MPI call before MPI_INIT. Error message is MPI_COMM_SIZE and code is 197</div>
<div>Wait for process 0 to write port to temporary file timed out</div>
<div> </div>
<div> </div>
<div>any help plz, thanks a lot for the hello world code..</div>
<div>by the way, i am new to vtk..</div>
<div> </div>
<div>thanks a lot for your fast response & guiding me..</div>
<div>Hanan</div>
<div> </div>
<div></div>
<div><span class="q"><span class="gmail_quote">On 7/27/06, <b class="gmail_sendername">Kevin H. Hobbs</b> <<a title="mailto:hobbsk@ohiou.edu" onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hobbsk@ohiou.edu" target="_blank">
hobbsk@ohiou.edu</a>> wrote:</span> </span></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"></blockquote></div>
<div><span class="e" id="q_10cb05825d326eae_3">On Thu, 2006-07-27 at 14:37 +0300, Hanan Hassanein wrote:<br>> Dear all,<br>><br>> I tried first using VTKMPI functions, but i couldn't find good <br>> online support like functions or so, i just found 1 example on the vtk
<br>> site named MPIgroups.cxx ( i am using c++ by the way), it wasn't<br>> helpful at all, not commented or so..<br>><br><br>Well there are other examples in <br>VTK/Examples/ParallelProcessing/Generic/Cxx . You can browse to them on
<br>the web from the Doxygen documentation by seraching for MPI in the page<br><a title="http://www.vtk.org/doc/nightly/html/annotated.html" onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/doc/nightly/html/annotated.html" target="_blank">
http://www.vtk.org/doc/nightly/html/annotated.html </a>and following the<br>"Tests" and "Examples" sections.<br><br>> so, i started to try another way, although i know i am trying to<br>> reinvent the wheel, coz i am trying to use both vtk & MPI separately,
<br>> but i got stuck now in sending vtk objects between processors like<br>> vtkactors, coz as u know MPI communication function send/receive<br>> objects of type MPI_datatype, eith it's primitive like MPI_Double, or
<br>> user defined datatype which must be also some combination of MPI<br>> primitive datatypes.<br>><br>><br><br>I think this is a very wrong path. VTK objects contain pointers to other<br>objects, which would not make sense when sent to another machine.
<br><br>Here is a VTK MPI hello world.<br><br>#include "vtkMPIController.h"<br><br>void process(vtkMultiProcessController* controller, void*<br>vtkNotUsed(arg))<br>{<br> int myId = controller->GetLocalProcessId();
<br><br> std::cout << "My process id is ";<br> std::cout << myId << "." << std::endl;<br>}<br><br>int main( int argc, char* argv[] )<br>{<br> vtkMPIController* controller = vtkMPIController::New();
<br> controller->Initialize(&argc, &argv);<br><br><br> controller->SetSingleMethod(process, 0);<br> controller->SingleMethodExecute();<br><br><br> controller->Finalize();<br> controller->Delete();
<br><br> return 0;<br>}<br><br><br><br></span></div>
<div><span class="q">-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.4 (GNU/Linux)<br><br></span></div>
<div>iD8DBQBEyKqgqBtEuW+gRPERAow7AJ90xucUn9M0AsgPhnFwC768mcMWowCeM9/B<br>Ecb9yA7hlPtOoZvbbfnda0c=<br>=aDwN<br>-----END PGP SIGNATURE-----<br><br><br>
<blockquote></blockquote></div></div></blockquote></div>