Fixed parts which caused a shadowing warning (same variable name used for different variables in the same scope)
This commit is contained in:
@@ -422,7 +422,7 @@ check_rk3(const AcMeshInfo& mesh_info)
|
|||||||
acBoundcondStep();
|
acBoundcondStep();
|
||||||
boundconds(model_mesh->info, model_mesh);
|
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,
|
// const AcReal umax = AcReal(acReduceVec(RTYPE_MAX, VTXBUF_UUX, VTXBUF_UUY,
|
||||||
// VTXBUF_UUZ));
|
// VTXBUF_UUZ));
|
||||||
// const AcReal dt = host_timestep(umax, mesh_info);
|
// const AcReal dt = host_timestep(umax, mesh_info);
|
||||||
|
@@ -127,8 +127,8 @@ save_mesh(const AcMesh& save_mesh, const int step, const AcReal t_step)
|
|||||||
// Grid data
|
// Grid data
|
||||||
for (size_t i = 0; i < n; ++i) {
|
for (size_t i = 0; i < n; ++i) {
|
||||||
const AcReal point_val = save_mesh.vertex_buffer[VertexBufferHandle(w)][i];
|
const AcReal point_val = save_mesh.vertex_buffer[VertexBufferHandle(w)][i];
|
||||||
AcReal write_long_buf = (AcReal)point_val;
|
AcReal write_long_buf2 = (AcReal)point_val;
|
||||||
fwrite(&write_long_buf, sizeof(AcReal), 1, save_ptr);
|
fwrite(&write_long_buf2, sizeof(AcReal), 1, save_ptr);
|
||||||
}
|
}
|
||||||
fclose(save_ptr);
|
fclose(save_ptr);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user