I want to add something though :)
Declare them at the top of the function, not as global variables!
Why not global variables ( in general )?
1) In a large program global variables may have the...
Type: Posts; User: std10093
I want to add something though :)
Declare them at the top of the function, not as global variables!
Why not global variables ( in general )?
1) In a large program global variables may have the...
I do not know what MPI is but is there maybe a scope lifetime of the variables inside the loop you declared them?If so you could declare them once at top of the function. (But i do not know about MPI...