Skip to content

Commit

Permalink
Fixed cfd bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Krommydas committed Nov 18, 2013
1 parent e905fc3 commit 2a27b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured-grids/cfd/cfd_kernel.cl
Expand Up @@ -78,7 +78,7 @@ __kernel void compute_flux(int nelr, __global int* elements_surrounding_elements

float density_energy_i = variables[i + VAR_DENSITY_ENERGY*nelr];

float3 velocity_i = compute_velocity(density_i, momentum_i, &velocity_i);
float3 velocity_i; compute_velocity(density_i, momentum_i, &velocity_i);
float speed_sqd_i = compute_speed_sqd(velocity_i);
float speed_i = sqrt(speed_sqd_i);
float pressure_i = compute_pressure(density_i, density_energy_i, speed_sqd_i);
Expand Down

0 comments on commit 2a27b0f

Please sign in to comment.