DMAdaptorSetTransferFunction#

Set the callback used by a DMAdaptor to transfer a solution vector from an old DM to the adapted DM

Synopsis#

#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorSetTransferFunction(DMAdaptor adaptor, PetscErrorCode (*tfunc)(DMAdaptor adaptor, DM dm, Vec xin, DM newdm, Vec xout, PetscCtx ctx))

Logically Collective

Input Parameters#

  • adaptor - the DMAdaptor object

  • tfunc - the transfer callback

Calling sequence of tfunc#

  • adaptor - the DMAdaptor object

  • dm - the current DM

  • xin - the current solution

  • newdm - the adapted DM

  • xout - the transferred solution on newdm

  • ctx - application context, set with DMSetApplicationContext()

See Also#

DMAdaptor, DMAdaptorGetTransferFunction(), DMAdaptorAdapt()

Level#

developer

Location#

src/snes/utils/dm/dmadapt.c


Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages