<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="MARGIN: 0in 0in 0pt" class=MsoNormal>Dear all,</div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p></div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal>I have a question about MPI programming skills; right now I am working on a FORTRAN program which has many subroutines, and I have not yet figure out a good way to use MPI functions inside those subroutines.</div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p> </o:p></div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal>Usually, we set up the processes number (say, numprocs) and the corresponding process indices (myid) at the beginning of the main program, however, if we call some subroutines, and we want to use some function, for example, MPI_GATER, under that subroutine, we have to use their indices and MPI_COMM_WORLD or other statements, then I found lots of errors were incurred in my Visual Studio. </div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p> </o:p></div>
<div style="MARGIN: 0in 0in 0pt; RIGHT: auto" class=MsoNormal>Does someone have some programming experience like this? any advice and information will be greatly appreciated.</div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p> </o:p></div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal>Regards,</div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal><o:p> </o:p></div>
<div style="MARGIN: 0in 0in 0pt" class=MsoNormal>Zhangping Wei</div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR></div></div></body></html>