@@ -247,10 +247,9 @@ void CSU2ASCIIMeshReaderFEM::ReadSurfaceElementConnectivity() {
247247 /* --- Extract the marker name. Remove spaces returns and tabs
248248 and store the name in markerNames. ---*/
249249 text_line.erase (0 , 11 );
250- string::size_type position;
251250
252251 for (unsigned short iChar = 0 ; iChar < 20 ; iChar++) {
253- position = text_line.find (" " , 0 );
252+ auto position = text_line.find (" " , 0 );
254253 if (position != string::npos) text_line.erase (position, 1 );
255254 position = text_line.find (" \r " , 0 );
256255 if (position != string::npos) text_line.erase (position, 1 );
@@ -262,7 +261,7 @@ void CSU2ASCIIMeshReaderFEM::ReadSurfaceElementConnectivity() {
262261 /* --- Find the section containing the number of surface elements
263262 for this marker and determine this number. ---*/
264263 while (getline (mesh_file, text_line)) {
265- string::size_type position = text_line.find (" MARKER_ELEMS=" , 0 );
264+ auto position = text_line.find (" MARKER_ELEMS=" , 0 );
266265 if (position != string::npos) break ;
267266 }
268267
@@ -307,7 +306,8 @@ void CSU2ASCIIMeshReaderFEM::ReadSurfaceElementConnectivity() {
307306 case QUADRILATERAL:
308307 nDOFsGrid = nDOFEdgeGrid * nDOFEdgeGrid;
309308 thisFace.nCornerPoints = 4 ;
310- thisFace.cornerPoints [2 ] = nPolyGrid * nDOFEdgeGrid;
309+ thisFace.cornerPoints [2 ] = static_cast <unsigned long >(nPolyGrid)
310+ * nDOFEdgeGrid;
311311 thisFace.cornerPoints [3 ] = nDOFsGrid - 1 ;
312312 break ;
313313
0 commit comments