[petsc-dev] Overzealous guards in DMGetInjection_DA

2011-02-25 Thread Barry Smith
On Feb 21, 2011, at 3:37 PM, Jed Brown wrote: > ierr = > DMDAGetInfo(dac,&dimc,&Mc,&Nc,&Pc,&mc,&nc,&pc,&dofc,&sc,&wrapc,&stc);CHKERRQ(ierr); > ierr = > DMDAGetInfo(daf,&dimf,&Mf,&Nf,&Pf,&mf,&nf,&pf,&doff,&sf,&wrapf,&stf);CHKERRQ(ierr); > if (dimc != dimf) > SETERRQ2(((PetscObject)daf)->c

[petsc-dev] Overzealous guards in DMGetInjection_DA

2011-02-21 Thread Jed Brown
ierr = DMDAGetInfo(dac,&dimc,&Mc,&Nc,&Pc,&mc,&nc,&pc,&dofc,&sc,&wrapc,&stc);CHKERRQ(ierr); ierr = DMDAGetInfo(daf,&dimf,&Mf,&Nf,&Pf,&mf,&nf,&pf,&doff,&sf,&wrapf,&stf);CHKERRQ(ierr); if (dimc != dimf) SETERRQ2(((PetscObject)daf)->comm,PETSC_ERR_ARG_INCOMP,"Dimensions of DMDA do not match %D %D