Page 1 of 1

compile abinit 8.8.4 with levmar 2.6

Posted: Sat Oct 13, 2018 3:04 pm
by jun1234
When I compile abinit 8.8.4 with levmar 2.6, I got some error message about calling_levmar.c and build fail.
So, I modify calling_levmar.c.

ret=dlevmar_bc_dif(dre_and_im_screening, coeffs, yvals, c_ncoeffs, c_nvals, lower_bounds, upper_bounds, 1000, opts, info, NULL, NULL, (void *)&adata); // Box boundary conditions without Jacobian
to ret=dlevmar_bc_dif(dre_and_im_screening, coeffs, yvals, c_ncoeffs, c_nvals, lower_bounds, upper_bounds, NULL, 1000, opts, info, NULL, NULL, (void *)&adata); // Box boundary conditions without Jacobian

Is it ok or is support for levmar deprecated?

Thank you.

Re: compile abinit 8.8.4 with levmar 2.6

Posted: Mon Oct 15, 2018 9:00 pm
by gmatteo
Is it ok or is support for levmar deprecated?


Levmar is only used in a specialized section of the GW code.
99.9% of the Abinit features do not rely on this piece of code.

When I compile abinit 8.8.4 with levmar 2.6, I got some error message about calling_levmar.c and build fail.
So, I modify calling_levmar.c.


Error message?

Re: compile abinit 8.8.4 with levmar 2.6

Posted: Tue Oct 16, 2018 5:05 pm
by jun1234
I got this error message.
"
../../../src/02_clib/calling_levmar.c:221:11: error: too few arguments to function ‘dlevmar_bc_dif’
ret=dlevmar_bc_dif(dre_and_im_screening, coeffs, yvals, c_ncoeffs, c_nvals, \
^~~~~~~~~~~~~~
"

When I check levmar.h and compare it to calling_levmar.c, I found parameter for "double *dscl" is missing.

Thank you.