compile abinit 8.8.4 with levmar 2.6

option, parallelism,...

Moderators: jbeuken, Jordan, pouillon

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit builds.
For a video explanation on how to build Abinit for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.

compile abinit 8.8.4 with levmar 2.6

Postby jun1234 » Sat Oct 13, 2018 3:04 pm

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.
jun1234
 
Posts: 7
Joined: Wed Aug 22, 2018 4:16 pm

Re: compile abinit 8.8.4 with levmar 2.6

Postby gmatteo » Mon Oct 15, 2018 9:00 pm

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?
User avatar
gmatteo
 
Posts: 248
Joined: Sun Aug 16, 2009 5:40 pm

Re: compile abinit 8.8.4 with levmar 2.6

Postby jun1234 » Tue Oct 16, 2018 5:05 pm

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.
jun1234
 
Posts: 7
Joined: Wed Aug 22, 2018 4:16 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 2 guests