fix indentation for fcn_chkder

This commit is contained in:
Thomas Capricelli 2009-08-29 02:30:18 +02:00
parent 16d08b2b0f
commit 4f7daf942c

View File

@ -19,25 +19,18 @@ int fcn_chkder(int /*m*/, int /*n*/, const double *x, double *fvec, double *fjac
if (iflag == 0) if (iflag == 0)
{
/* insert print statements here when nprint is positive. */
return 0; return 0;
}
if (iflag != 2) if (iflag != 2)
for (i=1; i<=15; i++) {
for (i=1; i<=15; i++)
{
tmp1 = i; tmp1 = i;
tmp2 = 16 - i; tmp2 = 16 - i;
tmp3 = tmp1; tmp3 = tmp1;
if (i > 8) tmp3 = tmp2; if (i > 8) tmp3 = tmp2;
fvec[i-1] = y[i-1] - (x[1-1] + tmp1/(x[2-1]*tmp2 + x[3-1]*tmp3)); fvec[i-1] = y[i-1] - (x[1-1] + tmp1/(x[2-1]*tmp2 + x[3-1]*tmp3));
} }
else else {
{ for (i = 1; i <= 15; i++) {
for (i = 1; i <= 15; i++)
{
tmp1 = i; tmp1 = i;
tmp2 = 16 - i; tmp2 = 16 - i;