<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=koi8-r" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.22967">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi all!</FONT></DIV>
<DIV><FONT size=2 face=Arial>When I run the following easiest
program:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>#include <mpi.h></FONT></DIV>
<DIV><FONT size=2 face=Arial>#include "Gmsh.h"</FONT></DIV>
<DIV><FONT size=2 face=Arial>int main(int argc, char **argv)</FONT></DIV>
<DIV><FONT size=2 face=Arial>{</FONT></DIV>
<DIV><FONT size=2 face=Arial> MPI_Init(&argc, &argv);</FONT></DIV>
<DIV><FONT size=2 face=Arial> GmshInitialize(argc, argv);</FONT></DIV>
<DIV><FONT size=2 face=Arial> GmshFinalize();</FONT></DIV>
<DIV><FONT size=2 face=Arial> MPI_Finalize();</FONT></DIV>
<DIV><FONT size=2 face=Arial> return 0;</FONT></DIV>
<DIV><FONT size=2 face=Arial>}</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have the following error:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>[artemiev-desktop:19676] *** An error occurred in
MPI_Init<BR>[artemiev-desktop:19676] *** on communicator
MPI_COMM_WORLD<BR>[artemiev-desktop:19676] *** MPI_ERR_OTHER: known error not in
list<BR>[artemiev-desktop:19676] *** MPI_ERRORS_ARE_FATAL (your MPI job will now
abort)<BR>--------------------------------------------------------------------------<BR>mpirun
has exited due to process rank 1 with PID 19676 on<BR>node artemiev-desktop
exiting without calling "finalize". This may<BR>have caused other processes in
the application to be<BR>terminated by signals sent by mpirun (as reported
here).<BR>--------------------------------------------------------------------------<BR>--------------------------------------------------------------------------<BR>Calling
MPI_Init or MPI_Init_thread twice is
erroneous.<BR>--------------------------------------------------------------------------<BR>[artemiev-desktop:19674]
1 more process has sent help message help-mpi-errors.txt /
mpi_errors_are_fatal<BR>[artemiev-desktop:19674] Set MCA parameter
"orte_base_help_aggregate" to 0 to see all help / error messages</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I thought that "GmshInitialize" call "MPI_Init".
Therefore I recompiled Gmsh with -DENABLE_MPI=0 option.</FONT></DIV>
<DIV><FONT size=2 face=Arial>But the result was the same.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Could you give a hint about how to use Gmsh API in
parallel program?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Thanks</FONT></DIV>
<DIV><FONT size=2 face=Arial>Mikhail Artemiev</FONT></DIV></BODY></HTML>