Fixed parts which caused a shadowing warning (same variable name used for different variables in the same scope)

This commit is contained in:
jpekkila
2019-12-03 18:41:08 +02:00
parent 04e27e85b2
commit f97e5cb77c
2 changed files with 3 additions and 3 deletions

View File

@@ -422,7 +422,7 @@ check_rk3(const AcMeshInfo& mesh_info)
acBoundcondStep();
boundconds(model_mesh->info, model_mesh);
for (int i = 0; i < num_iterations; ++i) {
for (int j = 0; j < num_iterations; ++j) {
// const AcReal umax = AcReal(acReduceVec(RTYPE_MAX, VTXBUF_UUX, VTXBUF_UUY,
// VTXBUF_UUZ));
// const AcReal dt = host_timestep(umax, mesh_info);

View File

@@ -127,8 +127,8 @@ save_mesh(const AcMesh& save_mesh, const int step, const AcReal t_step)
// Grid data
for (size_t i = 0; i < n; ++i) {
const AcReal point_val = save_mesh.vertex_buffer[VertexBufferHandle(w)][i];
AcReal write_long_buf = (AcReal)point_val;
fwrite(&write_long_buf, sizeof(AcReal), 1, save_ptr);
AcReal write_long_buf2 = (AcReal)point_val;
fwrite(&write_long_buf2, sizeof(AcReal), 1, save_ptr);
}
fclose(save_ptr);
}