in >> keyword;
- unsigned int total_cells, no_cells = 0, type, j = 0;// declaring counters, refer to the order of declaring variables for an idea of what is what!
+ unsigned int total_cells, no_cells = 0, type;// declaring counters, refer to the order of declaring variables for an idea of what is what!
///////////////////Processing the CELLS section that contains cells(cells) and bound_quads(subcelldata)///////////////////////
cells.push_back(CellData<dim>());
- for (j = 0; j < type; j++) //loop to feed data
+ for (unsigned int j = 0; j < type; j++) //loop to feed data
in >> cells.back().vertices[j];
cells.back().material_id = 0;
- for (j = 0; j < type; j++) //loop to feed the data of the vertices to the cell
+ for (unsigned int j = 0; j < type; j++) //loop to feed the data of the vertices to the cell
{
cells.back().vertices[j] = vertex_indices[cells.back().vertices[j]];
}
subcelldata.boundary_quads.push_back(CellData<2>());
- for (j = 0; j < type; j++) //loop to feed the data to the boundary
+ for (unsigned int j = 0; j < type; j++) //loop to feed the data to the boundary
{
in >> subcelldata.boundary_quads.back().vertices[j];
}
{
cells.push_back(CellData<dim>());
- for (j = 0; j < type; j++) //loop to feed data
+ for (unsigned int j = 0; j < type; j++) //loop to feed data
in >> cells.back().vertices[j];
cells.back().material_id = 0;
- for (j = 0; j < type; j++) //loop to feed the data of the vertices to the cell
+ for (unsigned int j = 0; j < type; j++) //loop to feed the data of the vertices to the cell
{
cells.back().vertices[j] = vertex_indices[cells.back().vertices[j]];
}
//and starts processing boundaries.
subcelldata.boundary_lines.push_back(CellData<1>());
- for (j = 0; j < type; j++) //loop to feed the data to the boundary
+ for (unsigned int j = 0; j < type; j++) //loop to feed the data to the boundary
{
in >> subcelldata.boundary_lines.back().vertices[j];
}
const unsigned int n_lines = (n_entities%2 == 0)?(n_entities/2):((n_entities+1)/2);
- for (unsigned int no_line = 0; no_line < n_lines; no_line++)
+ for (unsigned int line = 0; line < n_lines; line++)
{
unsigned int n_fragments;
- if (no_line == n_lines-1)
+ if (line == n_lines-1)
n_fragments = (n_entities%2 == 0)?(2):(1);
else
n_fragments = 2;