I need to translate a Fortran 77 code to C language, I have aprox 90% of the translation but I don't understand some parts of Fortran, for example, in Fortran I have:
DIMENSION COEF(3,3),EXPON(3,3)
DATA COEF,EXPON/1.0D0,2*0.0D0,0.678914D0,0.430129D0,0.0D0,
$ 0.444635D0,0.535328D0,0.154329D0,0.270950D0,2*0.0D0,0.151623D0,
$ 0.851819D0,0.0D0,0.109818D0,0.405771D0,2.22766D0/
In this part, I have a two arrays of length 3, so, when I read the documentation of DATA, I need to put each value in the two arrays, so I have the next block of code in C:
COEF[0][0] = 1.0;
COEF[0][1] = 2.0;
COEF[0][2] = 0.6789140;
COEF[1][0] = 0.4301290;
COEF[1][1] = 0.0;
COEF[1][2] = 0.4446350;
COEF[2][0] = 0.5353280;
COEF[2][1] = 0.1543290;
COEF[2][2] = 0.2709500;
EXPON[0][0] = 2.0;
EXPON[0][1] = 0.1516230;
EXPON[0][2] = 0.8518190;
EXPON[1][0] = 0.0;
EXPON[1][1] = 0.1098180;
EXPON[1][2] = 0.4057710;
EXPON[2][0] = 2.227660;
EXPON[2][1] = 0.0;
EXPON[2][2] = 0.0;
Assume that I need to associate the list of argument to the list of values, I just have 16 values, but I have 18 spaces between two arrays, so what happen with the last two spaces? XD