On Tue, 19 Jan 2010 13:49:36 -0500, "(Rebecca) Xuefei YUAN" <xy2102 at 
columbia.edu> wrote:
> However, I do not think DAGetLocalVector()+DAVecGetArray() is a must  
> in my case, I tried DAGetArray() to take over of the above two.  
> However, I have the error message saying

These are just warnings, you can avoid them by using the cast

  ierr = DAGetArray(dafieldother,PETSC_TRUTH,(void**)&fieldother);CHKERRQ(ierr);

But PETSc should just change the type signature so the third argument is
void* so that no cast is required.

Jed

Reply via email to