Mani Chandra <[email protected]> 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.

Attachment: pgp7CZvernC76.pgp
Description: PGP signature

Reply via email to