Changeset 4453 for issm/trunk/src/mex/TriMesh/TriMesh.cpp
- Timestamp:
- 07/07/10 17:35:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/TriMesh/TriMesh.cpp
r3755 r4453 48 48 double** riftsgridsy=NULL; 49 49 50 /* error handling: */51 int noerr=1;52 53 50 /* Triangle structures: */ 54 51 struct triangulateio in,out; … … 99 96 100 97 /*Start reading the domain outline file: */ 101 noerr=DomainOutlineRead(&nprof,&profngrids,&pprofx,&pprofy,domainname); 102 if(!noerr){ 98 if(!DomainOutlineRead(&nprof,&profngrids,&pprofx,&pprofy,domainname)){ 103 99 printf("%s%s%s\n",__FUNCT__," error message reading domain outline ",domainname); 104 100 mexErrMsgTxt(" "); … … 107 103 /*Read rifts file if present: */ 108 104 if(riftname){ 109 noerr=DomainOutlineRead(&numrifts,&riftsnumgrids,&riftsgridsx,&riftsgridsy,riftname); 110 if(!noerr){ 105 if(!DomainOutlineRead(&numrifts,&riftsnumgrids,&riftsgridsx,&riftsgridsy,riftname)){ 111 106 printf("%s%s%s\n",__FUNCT__," error message reading rifts outline ",riftname); 112 107 mexErrMsgTxt(" "); … … 268 263 269 264 /*Associate elements with segments: */ 270 noerr=AssociateSegmentToElement(&segments,out.numberofsegments,index,out.numberoftriangles);265 AssociateSegmentToElement(&segments,out.numberofsegments,index,out.numberoftriangles); 271 266 272 267 /*Order segments so that their normals point outside the domain: */
Note:
See TracChangeset
for help on using the changeset viewer.