<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I have a DM MPI Vec u, I want to scatter it to a sequential Vec w in processor 0. There is a function <span style="font-family: Menlo; font-size: 11px;">VecScatterCreateToZero </span><span style="font-size: 10pt;">allowing
 me to do that. However, the global indices get easily messed up if I do this way. </span>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">So I have to match the IS for u and w. And I think maybe I can use </span><span style="font-family: Menlo; font-size: 11px;">DMCompositeGetGlobalISs </span><span style="font-size: 10pt;">to get the IS, and then call </span><span style="font-family: Menlo; font-size: 11px;">VecScatterCreate(u,is[</span><span style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">0</span><span style="font-family: Menlo; font-size: 11px;">],w,is[</span><span style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);">0</span><span style="font-family: Menlo; font-size: 11px;">],&ctx). </span></div>
<div><span style="font-family: Menlo; font-size: 11px;"><br>
</span></div>
<div>But I'm not sure if I'm doing the right thing, and for now it gives me segmentation fault, memory errors on <span style="font-family: Menlo; font-size: 11px;">DMCompositeGetGlobalISs. </span></div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;">So I need some help on this. </span></div>
<div><br>
</div>
</div>
</body>
</html>