Missing Fortran wrappers for xc_f90_functional_get_name and xc_f90_functional_get_number

Bug #1248250 reported by Yann Pouillon on 2013-11-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yann Pouillon
LibXC Developers

Bug Description

The C routines xc_functional_get_name and xc_functional_get_number do not have any Fortran equivalent. They are needed in Abinit, that's why I propose to add Fortran wrappers for them. A patch against LibXC 2.0.1 is attached.

Yann Pouillon (pouillon) wrote :
Changed in abinit:
status: New → In Progress
Changed in libxc:
importance: Undecided → Medium
Changed in abinit:
importance: Undecided → Medium
assignee: nobody → Yann Pouillon (pouillon)
Yann Pouillon (pouillon) wrote :

For reference, the copy of my email to the LibXC mailing list:


Please find attached a patch for LibXC 2.0.1 adding the following Fortran

  * subroutine xc_f90_functional_get_name(id, name)
  * integer function xc_f90_functional_get_number(name)

that have been requested many times for various projects. In particular, it
solves the issue of getting a functional number from the corresponding
description string, avoiding many potential typos in input files of Fortran

The patch is supposed to be applied this way:

  cd /path/to/libxc-2.0.1
  patch -p1 < /path/to/libxc-2.0.1-fortran-wrappers.patch

The patched library has been successfully tested for portability within Abinit
on the ETSF test farm.

Could you consider integrating it into the core source of LibXC, so that everyone benefits from it?

Thank you in advance.



Changed in libxc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers