Skip to content

Commit

Permalink
Follow petsc-dev moving the ISLocalToGlobalMapping into PetscLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed May 16, 2011
1 parent 470a11a commit 1d808bb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/vec/vecd.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ static dErr VecDuplicate_Dohp(Vec x,Vec *iny)
* I will be sufficiently involved to notice changes here. Famous last words. */
err = VecCreate(((dObject)x)->comm,&y);dCHK(err);

err = PetscLayoutDestroy(&y->map);dCHK(err);
y->map = x->map;
y->map->refcnt++;
err = PetscLayoutReference(x->map,&y->map);dCHK(err);

err = VecGetArray(yc,&a);dCHK(err);
err = VecCreate_MPI_Private(y,PETSC_FALSE,0,a);dCHK(err);
Expand All @@ -114,14 +112,6 @@ static dErr VecDuplicate_Dohp(Vec x,Vec *iny)

err = PetscOListDuplicate(((dObject)x)->olist,&((dObject)y)->olist);dCHK(err);
err = PetscFListDuplicate(((dObject)x)->qlist,&((dObject)y)->qlist);dCHK(err);
if (x->mapping) {
err = PetscObjectReference((dObject)x->mapping);dCHK(err);
y->mapping = x->mapping;
}
if (x->bmapping) {
err = PetscObjectReference((dObject)x->bmapping);dCHK(err);
y->bmapping = x->bmapping;
}
y->map->bs = x->map->bs;
y->bstash.bs = x->bstash.bs;

Expand Down

0 comments on commit 1d808bb

Please sign in to comment.