Skip to content

Commit

Permalink
Update for ITAPS interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed May 23, 2011
1 parent c9a37dd commit 305e4a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/dohpmesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ extern const char *const iBase_TagValueTypeName[];
if (PetscUnlikely(err)) { \
dErr _l_ret = err; \
char _l_desc[512] = "Description not available"; \
iMesh_getDescription(mesh,_l_desc,&err,sizeof(_l_desc)); \
iMesh_getDescription(mesh,_l_desc,sizeof(_l_desc)); \
dERROR(PETSC_COMM_SELF,1,"iMesh(%d) %s: %s",_l_ret,iBase_ErrorString[_l_ret],_l_desc); \
} \
} while (0)
#define dIGCHK(geom,err) do { \
if (PetscUnlikely(err)) { \
dErr _l_ret = err; \
char _l_desc[512] = "Description not available"; \
iGeom_getDescription(geom,_l_desc,&err,sizeof(_l_desc)); \
iGeom_getDescription(geom,_l_desc,sizeof(_l_desc)); \
dERROR(PETSC_COMM_SELF,1,"iGeom(%d) %s: %s",_l_ret,iBase_ErrorString[_l_ret],_l_desc); \
} \
} while (0)
#define dIRCHK(rel,err) do { \
if (PetscUnlikely(err)) { \
dErr _l_ret = err; \
char _l_desc[512] = "Description not available"; \
iRel_getDescription(rel,_l_desc,&err,sizeof(_l_desc)); \
iRel_getDescription(rel,_l_desc,sizeof(_l_desc)); \
dERROR(PETSC_COMM_SELF,1,"iRel(%d) %s: %s",_l_ret,iBase_ErrorString[_l_ret],_l_desc); \
} \
} while (0)
Expand Down
6 changes: 3 additions & 3 deletions src/tools/dohpblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ int main(int argc, char *argv[])
iRel_PairHandle pair;
iBase_EntityHandle brick;
iGeom_newGeom(geom_options,&geom,&err,sizeof geom_options);dIGCHK(geom,err);
iRel_newRel(0,&assoc,&err,0);dIRCHK(assoc,err);
iRel_createPair(assoc,geom,0,iRel_IGEOM_IFACE,mesh,1,iRel_IMESH_IFACE,&pair,&err);dIGCHK(assoc,err);
iRel_create(0,&assoc,&err,0);dIRCHK(assoc,err);
iRel_createPair(assoc,geom,0,iRel_IGEOM_IFACE,iRel_ACTIVE,mesh,1,iRel_IMESH_IFACE,iRel_ACTIVE,&pair,&err);dIGCHK(assoc,err);
iGeom_createBrick(geom,box.x1-box.x0,box.y1-box.y0,box.z1-box.z0,&brick,&err);dIGCHK(geom,err);
iGeom_moveEnt(geom,brick,0.5*(box.x0+box.x1),0.5*(box.y0+box.y1),0.5*(box.z0+box.z1),&err);dIGCHK(geom,err);
err = PrintBoundingBox(geom,brick,"brick");dCHK(err);
Expand Down Expand Up @@ -525,7 +525,7 @@ int main(int argc, char *argv[])
}
iGeom_save(geom,outgeom,geom_save_options,&err,sizeof outgeom,sizeof geom_save_options);dIGCHK(geom,err);
iGeom_dtor(geom,&err);dIGCHK(geom,err);
iRel_dtor(assoc,&err);dIRCHK(assoc,err);
iRel_destroy(assoc,&err);dIRCHK(assoc,err);
}

iMesh_save(mesh,0,outfile,outopts,&err,(int)sizeof(outfile),(int)strlen(outopts));dICHK(mesh,err);
Expand Down

0 comments on commit 305e4a6

Please sign in to comment.