Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix warnings the old for_loops code #24

Closed
slizzered opened this issue Jul 16, 2014 · 0 comments
Closed

Fix warnings the old for_loops code #24

slizzered opened this issue Jul 16, 2014 · 0 comments

Comments

@slizzered
Copy link
Contributor

for_loops_clad.cu: In function ‘double propagation(double, double, double, double, double, double, int, int, int)’:
/home/carli/dev/HASEonGPU/src/for_loops_clad.cu:356:1: warning: ‘forb_dump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (forb != 1){
 ^
for_loops_clad.cu:255:34: note: ‘forb_dump’ was declared here
     int tri_next, cell_z_next, forb, forb_dump;
                                  ^
for_loops_clad.cu:468:53: warning: ‘cell_z_next’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    gain = gain * exp(N_tot*(beta_v[tri+cell_z*N_cells]*(sigma_e + sigma_a)-sigma_a)*length);
                                                     ^
for_loops_clad.cu:255:15: note: ‘cell_z_next’ was declared here
     int tri_next, cell_z_next, forb, forb_dump;
               ^
for_loops_clad.cu:468:43: warning: ‘tri_next’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    gain = gain * exp(N_tot*(beta_v[tri+cell_z*N_cells]*(sigma_e + sigma_a)-sigma_a)*length);
                                           ^
for_loops_clad.cu:255:5: note: ‘tri_next’ was declared here
     int tri_next, cell_z_next, forb, forb_dump;
     ^
@slizzered slizzered added this to the 1.5 - extended features milestone Jul 16, 2014
@slizzered slizzered modified the milestones: 1.5 - extended features, 1.1 - Leaving the burrow Jan 13, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants