Miximum matrix size? / reading big arrays of data
Please help me with my problem. In my program I need to open many files with numbers and read these numbers to the matrix. I am able to open only 22 files and when I try to open next one, I have a error message Segmentation fault. There is no problem in file. I create them in same way and if I double timestep I can pass the file where reading stops, but again stops after 22 files. Is there a limitation to the size of the matrix?
I will be very grateful for any help.
In ascii file I have first line with char symbol (I read it to the char variable). Then I have lines with double float type number (6 in one line). Below is an example.
I create a matrix.
16.645432 7.813343 15.514420
16.665323 8.334960 15.687680
14.005162 7.725507 16.015217
Then I read numbers to matrix.
for( j=0; j < N_molC; j++)
for( i=0; i < N_beadC; i++)