petsc-3.3-p7 2013-05-11

DMDAMultiplyByJacobian1WithAD

Applies a Jacobian function supplied by ADIFOR or ADIC to a vector on each processor that shares a DMDA.

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDAMultiplyByJacobian1WithAD(DM da,Vec u,Vec v,Vec f,void *w)

Input Parameters

da - the DM that defines the grid
vu - Jacobian is computed at this point (ghosted)
v - product is done on this vector (ghosted)
fu - output vector = J(vu)*v (not ghosted)
w - any user data

Notes

This routine does NOT do ghost updates on vu and v upon entry.

Automatically calls DMDAMultiplyByJacobian1WithAdifor() or DMDAMultiplyByJacobian1WithAdic() depending on whether DMDASetLocalAdicMFFunction() or DMDASetLocalAdiforMFFunction() was called.

See Also

DMDAComputeFunction1(), DMDAMultiplyByJacobian1WithAdifor(), DMDAMultiplyByJacobian1WithAdic()

Level:advanced
Location:
src/dm/impls/da/da2.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages