Skip to content

Commit

Permalink
One more guard for when iGeom/iRel is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed Jun 14, 2011
1 parent cff6dbb commit 7f37f32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/dohpblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ int main(int argc, char *argv[])
err = PetscOptionsEnd();

err = dMeshGenerateBlock(mesh,root,do_geom);dCHK(err);
#ifdef dHAVE_ITAPS_REL
if (do_geom) {
const char geom_save_options[] = ";TYPE=OCC;";
iGeom_Instance geom;
err = dMeshGetGeometryRelation(mesh,&geom,NULL);dCHK(err);
iGeom_save(geom,outgeom,geom_save_options,&err,sizeof outgeom,sizeof geom_save_options);dIGCHK(geom,err);
}
#endif

err = dMeshGetInstance(mesh,&mi);dCHK(err);
iMesh_save(mi,root,outfile,outopts,&err,(int)sizeof(outfile),(int)strlen(outopts));dICHK(mi,err);
Expand Down

0 comments on commit 7f37f32

Please sign in to comment.