CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   SU2 (http://www.cfd-online.com/Forums/su2/)
-   -   compile warning: array subscript is above array bounds (http://www.cfd-online.com/Forums/su2/112566-compile-warning-array-subscript-above-array-bounds.html)

shirazbj January 31, 2013 01:54

compile warning: array subscript is above array bounds
 
Hi,

When I compile the source, I got this warning.

In grid_movement_structure.hpp, line 680:
680 double Klin_mat[4][4];

but in grid_movement_structure.cpp, line 460-465:
iVar=0,1,2
jVar=0,1,2
Klin_mat[iVar+3][jVar+3] is Klin_mat[5][5]

Regards,

Cean

economon February 1, 2013 02:40

Thanks for the heads up, Cean. Just changed this in the source code, :).

shirazbj February 1, 2013 03:39

Does this affect my open-rotor case?

could I get a copy of this new files?

ceanwang@gmail.com

Thx

fpalacios February 5, 2013 00:58

No worries, this change will not affect your simulation.

Anyway, we are gonna upload every month a SU2 version-of-the-month.

Cheers,
Francisco


All times are GMT -4. The time now is 23:48.