<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>I didn't see program_off is used anywhere. Just compile them together does not mean the function in that file will be called.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">--</div><div dir="ltr">Huiwei</div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Feb 5, 2015 at 1:51 AM, Muhammad Ashfaqur Rahman <span dir="ltr"><<a href="mailto:ashfaq226@gmail.com" target="_blank">ashfaq226@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Huiwei Lu,<div><br></div><div>Thank you for your suggestion. I tried for ifort with mpich wrappers (But one set of programs is works only on PGI ). It is still not moving parallel. The 'merged' means I have gathered two sets of programs into one executable and try to run in mpi. Both the programs have their own mpi tags declared, and need to be tailored, i.e., Only one MPI_Initialize, MPI_Finalize etc.</div><div><br></div><div>Please let me know what to do.</div><div><br></div><div>Regards</div><div>Ashfaq</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 5:43 PM, Huiwei Lu <span dir="ltr"><<a href="mailto:huiweilu@mcs.anl.gov" target="_blank">huiweilu@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you change the following to use mpi fortran compiler and try again?<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>FC = mpifort</div></div><div><div>CLMF = mpifort</div></div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Also, what do you mean by "merge" these two programs? I didn't see any interaction between program_off.F90 and aadmn.F.</div><div class="gmail_extra"><br></div><div class="gmail_extra">--<br></div><div class="gmail_extra"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Huiwei</div></div></div></div></div></div><div><div>
<br><div class="gmail_quote">On Tue, Feb 3, 2015 at 7:42 AM, Muhammad Ashfaqur Rahman <span dir="ltr"><<a href="mailto:ashfaq226@gmail.com" target="_blank">ashfaq226@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">Dear </span><span style="font-size:12.8000001907349px">Huiwei Lu,</span><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Many thanks for your email. I have attached here the source code of my programs. These are two models.</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">The Makefile should be looked at.</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Regards</span></div><div style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Ashfaq</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 4:32 PM, Muhammad Ashfaqur Rahman <span dir="ltr"><<a href="mailto:ashfaq226@gmail.com" target="_blank">ashfaq226@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Dear <span style="font-size:12.8000001907349px">Huiwei Lu,</span><div><span style="font-size:12.8000001907349px">Many thanks for your email. I have attached here the source code of my programs. The folder contain two models.</span></div><div><span style="font-size:12.8000001907349px">The Makefile should be looked at.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Regards</span></div><div><span style="font-size:12.8000001907349px">Ashfaq</span></div></div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 3:20 PM, Huiwei Lu <span dir="ltr"><<a href="mailto:huiweilu@mcs.anl.gov" target="_blank">huiweilu@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Ashfaq,<div><br></div><div>If you program already has started with separate parallel instances, how can they becomes serial again?</div><div><br></div><div>Can you give us a sample of minimum code to explain your problem? <br><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--</div><div dir="ltr">Huiwei Lu</div><div dir="ltr">Postdoc Appointee</div><div dir="ltr">Mathematics and Computer Science Division</div><div dir="ltr">Argonne National Laboratory</div><div dir="ltr"><a href="http://www.mcs.anl.gov/~huiweilu/" target="_blank">http://www.mcs.anl.gov/~huiweilu/</a></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div>On Tue, Feb 3, 2015 at 1:22 AM, Muhammad Ashfaqur Rahman <span dir="ltr"><<a href="mailto:ashfaq226@gmail.com" target="_blank">ashfaq226@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Dear All,<div>Take my greetings. I am new in mpich usage. I have problems in parallel run, when two fortran mpi programs are merged to one executable. If these two are separate, then they are running parallel.</div><div><br></div><div>One program has used spmd and another one has used mpich header directly. </div><div><br></div><div>Other issue is that while trying to run the above mentioned merged program in mpich, it's first started with separate parallel instances of same step and then after some steps it becomes serial.</div><div><br></div><div>Please help me in this regards</div><div><br></div><div>Ashfaq</div><div>Ph.D Student</div><div>Dept. of Meteorology </div></div>
<br></div></div>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>
</div></div></div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div>