<div dir="ltr">Thanks a lot. I just realised that I had not split the line into two. It now works perfectly.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 11, 2017 at 11:44 AM, Klaus Weide <span dir="ltr"><<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 11 Oct 2017, Dinesh Kandel wrote:<br>
<br>
> Thank you Klaus. I made changes you suggested. However, I am getting error<br>
> with one of the changes you suggested. I tried with/without changing<br>
> MPI_TYPE_STRUCT<br>
> to MPI_TYPE_CREATE_STRUCT, but both seem to give the same error. Do you<br>
> have any idea why this is so?<br>
<br>
</span>Did you change the declaration of the 'offsets' array, but only it, to<br>
integer(kind=MPI_ADDRESS_KIND) ? In place of the original line<br>
<br>
integer :: count, blockcounts(4), offsets(5), oldtypes(4), acctSegMpiType<br>
<br>
you should now have two lines like this:<br>
<br>
integer :: count, blockcounts(4), oldtypes(4), acctSegMpiType<br>
integer(kind=MPI_ADDRESS_KIND) :: offsets(5)<br>
<br>
If that is what you did, it SHOULD work... (It does for me, though I did<br>
not have a problem with the original version either, given the library<br>
versions with which I was testing.)<br>
<br>
If it doesn't, it may indicate a problem with different MPI versions<br>
existing on your system, which hcould also be a cause for the other<br>
problem that you reported.<br>
<span class="HOEnZb"><font color="#888888"><br>
Klaus<br>
</font></span></blockquote></div><br></div>