Changeset 12878 for issm/branches/trunk-jpl-damage/src/modules/MeshProfileIntersection/MeshProfileIntersection.cpp
- Timestamp:
- 08/02/12 17:13:12 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:mergeinfo changed
-
issm/branches/trunk-jpl-damage/src/modules/MeshProfileIntersection/MeshProfileIntersection.cpp
r12060 r12878 54 54 //index 55 55 FetchData(&double_index,&nel,&dummy,INDEX); 56 if(dummy!=3 && dummy!=6)_error _("element triangulation should be of 3 or 6 column width!");56 if(dummy!=3 && dummy!=6)_error2_("element triangulation should be of 3 or 6 column width!"); 57 57 index=(int*)xmalloc(nel*3*sizeof(int)); 58 58 for(i=0;i<nel;i++){ … … 81 81 /* Debugging of contours :{{{1*/ 82 82 /*for(i=0;i<numcontours;i++){ 83 printf("\nContour echo: contour number %i / %i\n",i+1,numcontours);83 _printLine_("\nContour echo: contour number " << i+1 << " / " << numcontours); 84 84 contouri=*(contours+i); 85 printf(" Number of vertices %i\n",contouri->nods);85 _printLine_(" Number of vertices " << contouri->nods); 86 86 for (j=0;j<contouri->nods;j++){ 87 printf(" %lf %lf\n",*(contouri->x+j),*(contouri->y+j));87 _printLine_(" " << *(contouri->x+j) << "f " << *(contouri->y+j) << "f"); 88 88 } 89 89 }*/ … … 102 102 103 103 void MeshProfileIntersectionUsage(void){ 104 printf(" usage:\n");105 printf(" [segments]=MeshProfileIntersection(index,x,y,filename);\n");106 printf(" where:\n");107 printf(" input:\n");108 printf(" index,x,y is a triangulation\n");109 printf(" filename: name of Argus style .exp file containing the segments (can be groups of disconnected segments)\n");110 printf(" output:\n");111 printf(" segments: array made of x1,y1,x2,y2,element_id lines (x1,y1) and (x2,y2) are segment extremitis for a segment \n");112 printf(" belonging to the elemnt_id element. there are as many lines in segments as there are segments intersecting the \n");113 printf(" mesh.\n");104 _printLine_(" usage:"); 105 _printLine_(" [segments]=MeshProfileIntersection(index,x,y,filename);"); 106 _printLine_(" where:"); 107 _printLine_(" input:"); 108 _printLine_(" index,x,y is a triangulation"); 109 _printLine_(" filename: name of Argus style .exp file containing the segments (can be groups of disconnected segments)"); 110 _printLine_(" output:"); 111 _printLine_(" segments: array made of x1,y1,x2,y2,element_id lines (x1,y1) and (x2,y2) are segment extremitis for a segment "); 112 _printLine_(" belonging to the elemnt_id element. there are as many lines in segments as there are segments intersecting the "); 113 _printLine_(" mesh."); 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.