Changeset 16546
- Timestamp:
- 10/25/13 12:03:15 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/SubDomain.cpp
r13036 r16546 15 15 void SubDomain::Set(const Mesh & Th ,long i,Mesh & ThNew){ 16 16 *this = Th.subdomains[i]; 17 if 17 if( head-Th.triangles<0 || head-Th.triangles>=Th.nbt){ 18 18 _error_("head-Th.triangles<0 || head-Th.triangles>=Th.nbt"); 19 19 } 20 20 head = ThNew.triangles + Th.GetId(head) ; 21 if (edge-Th.edges<0 || edge-Th.edges>=Th.nbe);{21 if(edge-Th.edges<0 || edge-Th.edges>=Th.nbe){ 22 22 _error_("edge-Th.edges<0 || edge-Th.edges>=Th.nbe"); 23 23 } -
issm/trunk-jpl/src/c/bamg/VertexOnGeom.cpp
r12821 r16546 38 38 *this = rec; 39 39 meshvertex = ThNew.vertices + Th.GetId(meshvertex); 40 if (gv)40 if(gv){ 41 41 if (curvilincoord < 0 ) 42 42 gv = ThNew.Gh.vertices + Th.Gh.GetId(gv); 43 43 else 44 44 ge = ThNew.Gh.edges + Th.Gh.GetId(ge); 45 } 45 46 46 47 } -
issm/trunk-jpl/src/c/kml/KML_Document.cpp
r15104 r16546 95 95 /* loop over and process fields within opening and closing tags */ 96 96 97 while (kstri=KMLFileToken(fid, 98 &ncom,&pcom)) { 97 while((kstri=KMLFileToken(fid, &ncom,&pcom))) { 99 98 if (!strncmp(kstri,"</Document",10)) { 100 99 xDelete<char>(kstri); … … 114 113 this->AddCommnt(ncom,pcom); 115 114 116 for (ncom ; ncom>0; ncom--)115 for (ncom=ncom; ncom>0; ncom--) 117 116 xDelete<char>(pcom[ncom-1]); 118 117 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_File.cpp
r15104 r16546 96 96 /* loop over and process fields within opening and closing tags */ 97 97 98 while (kstri=KMLFileToken(fid, 99 &ncom,&pcom)) { 98 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 100 99 if (!strncmp(kstri,"</kml", 5)) { 101 100 xDelete<char>(kstri); … … 115 114 this->AddCommnt(ncom,pcom); 116 115 117 for (ncom; ncom>0; ncom--) 118 xDelete<char>(pcom[ncom-1]); 116 for(; ncom>0; ncom--) xDelete<char>(pcom[ncom-1]); 119 117 xDelete<char*>(pcom); 120 118 -
issm/trunk-jpl/src/c/kml/KML_Folder.cpp
r15104 r16546 95 95 /* loop over and process fields within opening and closing tags */ 96 96 97 while (kstri=KMLFileToken(fid, 98 &ncom,&pcom)) { 97 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 99 98 if (!strncmp(kstri,"</Folder", 8)) { 100 99 xDelete<char>(kstri); … … 114 113 this->AddCommnt(ncom,pcom); 115 114 116 for (ncom; ncom>0; ncom--) 117 xDelete<char>(pcom[ncom-1]); 115 for (ncom=ncom; ncom>0; ncom--) xDelete<char>(pcom[ncom-1]); 118 116 xDelete<char*>(pcom); 119 117 -
issm/trunk-jpl/src/c/kml/KML_GroundOverlay.cpp
r15104 r16546 122 122 /* loop over and process fields within opening and closing tags */ 123 123 124 while (kstri=KMLFileToken(fid, 125 &ncom,&pcom)) { 124 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 126 125 if (!strncmp(kstri,"</GroundOverlay",15)) { 127 126 xDelete<char>(kstri); … … 154 153 this->AddCommnt(ncom,pcom); 155 154 156 for (ncom; ncom>0; ncom--)155 for(ncom=ncom; ncom>0; ncom--) 157 156 xDelete<char>(pcom[ncom-1]); 158 157 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Icon.cpp
r15104 r16546 134 134 /* loop over and process fields within opening and closing tags */ 135 135 136 while (kstri=KMLFileToken(fid, 137 &ncom,&pcom)) { 136 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 138 137 if (!strncmp(kstri,"</Icon", 6)) { 139 138 xDelete<char>(kstri); … … 170 169 this->AddCommnt(ncom,pcom); 171 170 172 for (ncom; ncom>0; ncom--)171 for(ncom=ncom; ncom>0; ncom--) 173 172 xDelete<char>(pcom[ncom-1]); 174 173 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_LatLonBox.cpp
r15104 r16546 109 109 /* loop over and process fields within opening and closing tags */ 110 110 111 while (kstri=KMLFileToken(fid, 112 &ncom,&pcom)) { 111 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 113 112 if (!strncmp(kstri,"</LatLonBox",11)) { 114 113 xDelete<char>(kstri); … … 149 148 this->AddCommnt(ncom,pcom); 150 149 151 for (ncom ; ncom>0; ncom--)150 for (ncom=ncom; ncom>0; ncom--) 152 151 xDelete<char>(pcom[ncom-1]); 153 152 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_LineString.cpp
r15843 r16546 129 129 /* loop over and process fields within opening and closing tags */ 130 130 131 while (kstri=KMLFileToken(fid, 132 &ncom,&pcom)) { 131 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 133 132 if (!strncmp(kstri,"</LineString",12)) { 134 133 xDelete<char>(kstri); … … 165 164 this->AddCommnt(ncom,pcom); 166 165 167 for (ncom ; ncom>0; ncom--)166 for (ncom=ncom; ncom>0; ncom--) 168 167 xDelete<char>(pcom[ncom-1]); 169 168 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_LineStyle.cpp
r15104 r16546 101 101 /* loop over and process fields within opening and closing tags */ 102 102 103 while (kstri=KMLFileToken(fid, 104 &ncom,&pcom)) { 103 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 105 104 if (!strncmp(kstri,"</LineStyle",11)) { 106 105 xDelete<char>(kstri); … … 125 124 this->AddCommnt(ncom,pcom); 126 125 127 for (ncom; ncom>0; ncom--)126 for(ncom=ncom; ncom>0; ncom--) 128 127 xDelete<char>(pcom[ncom-1]); 129 128 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_LinearRing.cpp
r15843 r16546 127 127 /* loop over and process fields within opening and closing tags */ 128 128 129 while (kstri=KMLFileToken(fid,&ncom,&pcom)){129 while((kstri=KMLFileToken(fid,&ncom,&pcom))){ 130 130 if (!strncmp(kstri,"</LinearRing",12)){ 131 131 xDelete<char>(kstri); … … 153 153 this->AddCommnt(ncom,pcom); 154 154 155 for(ncom ; ncom>0; ncom--)155 for(ncom=ncom; ncom>0; ncom--) 156 156 xDelete<char>(pcom[ncom-1]); 157 157 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_MultiGeometry.cpp
r15104 r16546 134 134 /* loop over and process fields within opening and closing tags */ 135 135 136 while (kstri=KMLFileToken(fid, 137 &ncom,&pcom)) { 136 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 138 137 if (!strncmp(kstri,"</MultiGeometry",15)) { 139 138 xDelete<char>(kstri); … … 183 182 this->AddCommnt(ncom,pcom); 184 183 185 for (ncom; ncom>0; ncom--)184 for(ncom=ncom; ncom>0; ncom--) 186 185 xDelete<char>(pcom[ncom-1]); 187 186 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Placemark.cpp
r15104 r16546 135 135 /* loop over and process fields within opening and closing tags */ 136 136 137 while (kstri=KMLFileToken(fid, 138 &ncom,&pcom)) { 137 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 139 138 if (!strncmp(kstri,"</Placemark",11)) { 140 139 xDelete<char>(kstri); … … 184 183 this->AddCommnt(ncom,pcom); 185 184 186 for (ncom; ncom>0; ncom--)185 for(ncom=ncom; ncom>0; ncom--) 187 186 xDelete<char>(pcom[ncom-1]); 188 187 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Point.cpp
r15104 r16546 114 114 /* loop over and process fields within opening and closing tags */ 115 115 116 while (kstri=KMLFileToken(fid, 117 &ncom,&pcom)) { 116 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 118 117 if (!strncmp(kstri,"</Point", 7)) { 119 118 xDelete<char>(kstri); … … 140 139 this->AddCommnt(ncom,pcom); 141 140 142 for (ncom; ncom>0; ncom--)141 for(ncom=ncom; ncom>0; ncom--) 143 142 xDelete<char>(pcom[ncom-1]); 144 143 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_PolyStyle.cpp
r15104 r16546 107 107 /* loop over and process fields within opening and closing tags */ 108 108 109 while (kstri=KMLFileToken(fid, 110 &ncom,&pcom)) { 109 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 111 110 if (!strncmp(kstri,"</PolyStyle",11)) { 112 111 xDelete<char>(kstri); … … 135 134 this->AddCommnt(ncom,pcom); 136 135 137 for (ncom; ncom>0; ncom--)136 for(ncom=ncom; ncom>0; ncom--) 138 137 xDelete<char>(pcom[ncom-1]); 139 138 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Polygon.cpp
r15104 r16546 169 169 /* loop over and process fields within opening and closing tags */ 170 170 171 while (kstri=KMLFileToken(fid, 172 &ncom,&pcom)) { 171 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 173 172 if (!strncmp(kstri,"</Polygon", 9)) { 174 173 xDelete<char>(kstri); … … 197 196 /* loop over and process fields within outer boundary */ 198 197 199 while (kstrj=KMLFileToken(fid, 200 &ncom,&pcom)) { 198 while((kstrj=KMLFileToken(fid, &ncom,&pcom))){ 201 199 if (!strncmp(kstrj,"</outerBoundaryIs",17)) { 202 200 xDelete<char>(kstrj); … … 224 222 /* loop over and process fields within inner boundaries */ 225 223 226 while (kstrj=KMLFileToken(fid, 227 &ncom,&pcom)) { 224 while((kstrj=KMLFileToken(fid, &ncom,&pcom))){ 228 225 if (!strncmp(kstrj,"</innerBoundaryIs",17)) { 229 226 xDelete<char>(kstrj); … … 255 252 this->AddCommnt(ncom,pcom); 256 253 257 for (ncom; ncom>0; ncom--)254 for(ncom=ncom; ncom>0; ncom--) 258 255 xDelete<char>(pcom[ncom-1]); 259 256 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Style.cpp
r15104 r16546 180 180 /* loop over and process fields within opening and closing tags */ 181 181 182 while (kstri=KMLFileToken(fid, 183 &ncom,&pcom)) { 182 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 184 183 if (!strncmp(kstri,"</Style", 7)) { 185 184 xDelete<char>(kstri); … … 229 228 this->AddCommnt(ncom,pcom); 230 229 231 for (ncom; ncom>0; ncom--)230 for(ncom=ncom; ncom>0; ncom--) 232 231 xDelete<char>(pcom[ncom-1]); 233 232 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/kml/KML_Unknown.cpp
r15104 r16546 43 43 KML_Object::Echo(); 44 44 45 if (value )45 if(value){ 46 46 if(flag) _printf0_(" value: \"" << value << "\"\n"); 47 else 48 if(flag) _printf0_(" value: [none]\n"); 47 } 48 else{ 49 if(flag) _printf0_(" value: [none]\n"); 50 } 49 51 50 52 return; … … 79 81 if(flag) _printf0_(indent << " value: \"" << vtoken); 80 82 81 while (vtoken=strtok(NULL,nl))83 while((vtoken=strtok(NULL,nl))) 82 84 if(flag) _printf0_("\n" << indent << " " << vtoken); 83 85 if(flag) _printf0_("\"\n"); … … 110 112 fprintf(filout,"%s %s\n",indent,vtoken); 111 113 112 while (vtoken=strtok(NULL,nl))114 while((vtoken=strtok(NULL,nl))) 113 115 fprintf(filout,"%s %s\n",indent,vtoken); 114 116 … … 146 148 /* loop over and process fields within opening and closing tags */ 147 149 148 while (kstri=KMLFileToken(fid, 149 &ncom,&pcom)) { 150 while((kstri=KMLFileToken(fid, &ncom,&pcom))){ 150 151 // _printf0_("KML_Unknown::Read -- kstri=" << kstri << ".\n"); 151 152 if (!strncmp(&kstri[0],"</", 2) && … … 183 184 this->AddCommnt(ncom,pcom); 184 185 185 for (ncom; ncom>0; ncom--)186 for(ncom=ncom; ncom>0; ncom--) 186 187 xDelete<char>(pcom[ncom-1]); 187 188 xDelete<char*>(pcom); -
issm/trunk-jpl/src/c/modules/KMLFileReadx/KMLFileReadx.cpp
r15104 r16546 22 22 /* read kml file */ 23 23 24 while (kstr=KMLFileToken(fid, 25 NULL,NULL)) { 24 while((kstr=KMLFileToken(fid, NULL,NULL))){ 26 25 if (!strncmp(kstr,"<?xml" ,5)) { 27 26 kxml=new KML_File(); -
issm/trunk-jpl/src/c/modules/KMLMeshWritex/KMLMeshWritex.cpp
r15104 r16546 56 56 sprintf(klsty->color ,"ff000000"); 57 57 sprintf(klsty->colormode ,"normal"); 58 klsty->width ,lwidth;58 klsty->width =lwidth; 59 59 kpsty=new KML_PolyStyle(); 60 60 sprintf(kpsty->color ,"00ffffff");
Note:
See TracChangeset
for help on using the changeset viewer.