2: #include <petsc/private/dmdaimpl.h> 5: /*@C 6: DMDACreatePF - Creates an appropriately dimensioned PF mathematical function object 7: from a DMDA. 9: Collective on DMDA 11: Input Parameter: 12: . da - initial distributed array 14: Output Parameter: 15: . pf - the mathematical function object 17: Level: advanced 20: .keywords: distributed array, grid function 22: .seealso: DMDACreate1d(), DMDACreate2d(), DMDACreate3d(), DMDestroy(), DMCreateGlobalVector() 23: @*/ 24: PetscErrorCode DMDACreatePF(DM da,PF *pf) 25: { 27: DM_DA *dd = (DM_DA*)da->data; 32: PFCreate(PetscObjectComm((PetscObject)da),da->dim,dd->w,pf); 33: return(0); 34: }