Skip to content

Commit

Permalink
iMesh_getNumEntSets() has changed the definition of num_hops
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed Mar 9, 2011
1 parent 6bca9a1 commit 97f9ab8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/fs/impls/cont/cont.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ static dErr dFSBuildSpace_Cont(dFS fs)
iMesh_rmvEntArrFromSet(mi,ents+ghstart,ents_s-ghstart,fs->set.explicit,&ierr);dICHK(mi,ierr);
iMesh_addEntArrToSet(mi,ents+ghstart,ents_s-ghstart,fs->set.ghost,&ierr);dICHK(mi,ierr);
/* Move owned Dirichlet ents from \a explicitSet to \a dirichletSet */
err = dMeshGetNumSubsets(mesh,fs->set.boundaries,1,&nboundaries);dCHK(err);
err = dMeshGetNumSubsets(mesh,fs->set.boundaries,0,&nboundaries);dCHK(err);
if (!nboundaries) goto after_boundaries;
err = dMallocA2(nboundaries,&bdysets,nboundaries,&bstat);dCHK(err);
err = dMeshGetSubsets(mesh,fs->set.boundaries,1,bdysets,nboundaries,NULL);dCHK(err);
err = dMeshGetSubsets(mesh,fs->set.boundaries,0,bdysets,nboundaries,NULL);dCHK(err);
err = dMeshTagSGetData(mesh,fs->tag.bstatus,bdysets,nboundaries,bstat,nboundaries,dDATA_INT);dCHK(err);
for (int i=0; i<nboundaries; i++) {
if (bstat[i] & dFSBSTATUS_DIRICHLET) {
Expand Down
4 changes: 2 additions & 2 deletions src/fs/interface/fsgeom.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ dErr dFSRedimension(dFS fs,dInt bs,dFSClosureMode mode,dFS *infs)
case dFS_INTERIOR: {
dMeshESH *bsets;
dInt nsets;
err = dMeshGetNumSubsets(fs->mesh,fs->set.boundaries,1,&nsets);dCHK(err);
err = dMeshGetNumSubsets(fs->mesh,fs->set.boundaries,0,&nsets);dCHK(err);
err = dMallocA(nsets,&bsets);dCHK(err);
err = dMeshGetSubsets(fs->mesh,fs->set.boundaries,1,bsets,nsets,NULL);dCHK(err);dCHK(err);
err = dMeshGetSubsets(fs->mesh,fs->set.boundaries,0,bsets,nsets,NULL);dCHK(err);dCHK(err);
for (dInt i=0; i<nsets; i++) {
dFSBStatus bstat;
err = dMeshTagSGetData(fs->mesh,fs->tag.bstatus,&bsets[i],1,&bstat,sizeof(bstat),dDATA_BYTE);dCHK(err);
Expand Down
2 changes: 1 addition & 1 deletion src/fs/mesh/impls/pack/pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ static dErr dMeshLoad_Pack(dMesh mesh)

/* Get the interface sets */
iMesh_getTagHandle(mi,PARALLEL_STATUS_TAG_NAME,&pstatusTag,&err,strlen(PARALLEL_STATUS_TAG_NAME));dICHK(mi,err);
iMesh_getNumEntSets(mi,mesh->root,1,&nallset,&err);dICHK(mi,err);
iMesh_getNumEntSets(mi,mesh->root,0,&nallset,&err);dICHK(mi,err);
{
dInt alloc = nallset;
err = dMalloc(nallset*sizeof(dMeshESH),&allset);dCHK(err);
Expand Down
1 change: 1 addition & 0 deletions src/fs/mesh/interface/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ dErr dMeshGetNumSubsets(dMesh mesh,dMeshESH set,dInt hops,dInt *nsubsets)
dFunctionBegin;
dValidHeader(mesh,dMESH_CLASSID,1);
dValidPointer(nsubsets,4);
*nsubsets = -1;
iMesh_getNumEntSets(mesh->mi,set,hops,&n,&ierr);dICHK(mesh->mi,ierr);
*nsubsets = n;
dFunctionReturn(0);
Expand Down

0 comments on commit 97f9ab8

Please sign in to comment.