Skip to content

Commit

Permalink
Make sirius compatible with libxc 7 (#1025)
Browse files Browse the repository at this point in the history
* Add libxc 7 support

---------

Co-authored-by: Simon Pintarelli <simon.pintarelli@cscs.ch>
  • Loading branch information
mtaillefumier and simonpintarelli authored Nov 5, 2024
1 parent bc02c48 commit 1e73cf6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/potential/xc_functional_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
#define __XC_FUNCTIONAL_BASE_HPP__

#include <xc.h>

/* libxc >= 7 split the functional definition in a different file from xc.h */

#if (XC_MAJOR_VERSION >= 7)
#include <xc_funcs.h>
#endif

#include <string.h>
#include <memory>
#include <map>
Expand Down

0 comments on commit 1e73cf6

Please sign in to comment.