<div dir="ltr"><div><div><div><div>Hi all,<br></div>Let's say I have two DMDAs with identical size but with different dofs. <br></div>E.g. da1 with dof=4; da2 with dof=1;<br></div>I have global vectors associated with each one of them, say, gv1 and gv2 respectively.<br>
</div>How can I copy/scatter values of one particular field from gv1 to gv2 ? <br>Looking at the manual it seems I should be able to use sth like following:<br><div class="">VecScatterCreate(Vec gv1, IS iGv1, Vec gv2, IS iGv2, VecScatter *ctx)<br>
VecScatterBegin(VecScatter ctx, Vec gv1,Vec gv2, INSERT_VALUES,SCATTER_FORWARD);<br></div><div class="">But I do not know how to get the Index sets iGv1 and iGv2 in this case.<br></div></div>