<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I figured it out. I used wrong base
address. I have to use base instead of offsets(1):<br>
<i>call MPI_GET_ADDRESS(obj , base , ierr)</i><br>
<i>offsets = offsets - base</i><br>
Thanks,<br>
--Ted<br>
<br>
On 05/29/2014 09:40 AM, Ted Sariyski wrote:<br>
</div>
<blockquote cite="mid:538738DD.9090508@craft-tech.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Hi,<br>
<br>
I have difficulties to implement mpi_win/mpi_put. What's strange
is, that when a process N puts data on ROOT, ROOT gets most of the
data correct, with few exceptions. Attached is a small example,
which illustrates the problem and here is a short description.<br>
<ol>
<li>There is an array BP(nBP) of type <i>DR_boundaryPoint_t =
{integer, character*32,real(3),real}</i>. </li>
<li>MPI type <i>MPI_DR_boundaryPoint_t</i> match
DR_boundaryPoint_t<i> </i></li>
<li>ROOT opens a window <i>BP_win</i> for <i>nBP</i> elements
of type <i>MPI_DR_boundaryPoint_t</i></li>
<li>ONE puts <i>BP(3) to root:BP(3)</i><br>
</li>
</ol>
ROOT receives the real fields <i>dist</i> and <i>ori</i>
correctly, but the integer field <i>bcTag</i> is not updated, and
the character field <i>bcName</i> is messed up.<br>
<br>
0: bcTag= 0 dist= 0.9000E+01 bcName=TEST A ori=
0.6000E+01 0.9000E+01 0.1200E+02<br>
1: bcTag= 99 dist= 0.9000E+01 bcName=TEST ori=
0.6000E+01 0.9000E+01 0.1200E+02<br>
<br>
I have no idea what I am doing wrong. Any help will be highly
appreciated.<br>
Thanks in advance,<br>
--Ted<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>