[petsc-users] Seg fault when using DMDATSSetIFunctionLocal with DMComposite

Jed Brown jedbrown at mcs.anl.gov
Sat Dec 14 10:21:08 CST 2013


Mani Chandra <mc0710 at gmail.com> writes:

> Can the function DMDATSSetIFunctionLocal be used with a global DM which has
> been constructed from many DMs' combined into a DMComposite? 

No, DMDA* functions can only be used with DMDA, not DMCOMPOSITE or any
other DM implementation.

> I put a single DM for each one of the variables that I wanted to solve
> for and combined them in a single one with DMComposite, but the
> timestepping seg faults with the following error
>
> 0x00007ffff69d3786 in VecScatterBegin_SGToSG (ctx=0x924400, x=0x90b640,
> y=0x920340, addv=INSERT_VALUES, mode=SCATTER_FORWARD) at
> /home/mc/Downloads/petsc/src/vec/vec/utils/vscat.c:370
> 370         for (i=0; i<n; i++) yv[tslots[i]]  = xv[fslots[i]];
>
> Would the only way to use a DMComposite with TS be using TSSetIFunction and
> then scatters the DMComposite to individual DMs' inside the function?

Yes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131214/5549a7ad/attachment.pgp>


More information about the petsc-users mailing list