I type a code for solving Laplace equation in a STM32F429I-DISCO in Keil uVision 5 and it runs correct with a mesh of 25 elements. But with the same code, for an example of 64 elements it doesn't work. I have seen that exists a problem with something in the matrix operations, by example: I declare a matrix[21][21] and it works good, but with a matrix[64][64] some sentences wrong.
I think the error ocurrs when I type:
if(IFLAG2==0){
C[IR-1][IC-1] = C[IR-1][IC-1] + CE[J][L];
}
because C that is C[64][64] matrix, can't process any information.
I had the same problem with a vector but I solved it adding an auxiliary variable as:
for( KK=0;KK<NP;KK++){ if(IC == NDP[KK]){
auxiliar[IR-1] = B[IR-1];
//B[IR-1]=B[IR-1] - CE[J][L]*VAL[KK]; with this doesn't work
B[IR-1]=auxiliar[IR-1] - CE[J][L]*VAL[KK];
IFLAG2=1;
} }
I compile success the program, but in execution time it doesn't work.
Please suggest me an idea for solve the problem.