{"id":408,"date":"2018-02-07T11:27:41","date_gmt":"2018-02-07T11:27:41","guid":{"rendered":"https:\/\/doublelayer.eu\/vilab\/?p=408"},"modified":"2018-02-07T11:27:41","modified_gmt":"2018-02-07T11:27:41","slug":"installation-of-libxc-4-0-0-trunk-gpaw1-3-0-ase","status":"publish","type":"post","link":"https:\/\/doublelayer.eu\/vilab\/2018\/02\/07\/installation-of-libxc-4-0-0-trunk-gpaw1-3-0-ase\/","title":{"rendered":"Installation of LibXC 4.0.0 trunk + GPAW1.3.0 + ASE"},"content":{"rendered":"<p>Assume that all the requirements are fulfilled:<\/p>\n<ul>\n<li>Python 2.7-3.5<\/li>\n<li>NumPy 1.6.1 or later (base N-dimensional array package)<\/li>\n<li>ASE 3.15.0 or later (atomic simulation environment)<\/li>\n<li>a C-compiler<\/li>\n<li>LibXC 2.0.1 or later<\/li>\n<li>BLAS and LAPACK libraries<\/li>\n<\/ul>\n<p>Optional, but highly recommended:<\/p>\n<ul>\n<li>SciPy 0.7 or later (library for scientific computing, requirered for some features)<\/li>\n<li>an MPI library (required for parallel calculations)<\/li>\n<li>FFTW (for increased performance)<\/li>\n<li>BLACS and ScaLAPACK<\/li>\n<\/ul>\n<p>LibXC compilation:<\/p>\n<p><code>svn co http:\/\/www.tddft.org\/svn\/libxc\/trunk\/ libxc<br \/>\ncd libxc<br \/>\nautoreconf -i<br \/>\n.\/configure --enable-shared --prefix=\/home\/USER\/xc<br \/>\nmake -j N<br \/>\nmake install<\/code><\/p>\n<p>The LibXC compilation might not work, and GPAW would complain, so configure as follows:<\/p>\n<p><code>.\/configure CFLAGS=\"-O2 -fPIC\" --prefix=\/home\/USER\/xc<\/code><\/p>\n<p>After compiling LibXC add these lines to your <code>.bashrc<\/code>:<\/p>\n<p><code>export C_INCLUDE_PATH=\/home\/USER\/xc\/include<br \/>\nexport LIBRARY_PATH=\/home\/USER\/xc\/lib<br \/>\nexport LD_LIBRARY_PATH=\/home\/USER\/xc\/lib<\/code><\/p>\n<p>Let&#8217;s install ASE using pip, because it is easy.<\/p>\n<p><code>pip install --upgrade --user ase<\/code><\/p>\n<p>Get the GPAW source code and remove in <code>libxc.c<\/code> in <code>c\/xc\/<\/code> line <code>xc_mgga_x_tb09_set_params(self-&gt;functional[0], c);<\/code>. Them compile GPAW with <code>python setup.py install --user<\/code>. You might want to add the <code>.local\/bin<\/code> to the path.<\/p>\n<p>Use either Python or Python3, and be consistent with that.<\/p>\n<p>The\u00a0official guideline also recommends adding these lines to your <code>.bashrc<\/code>:<\/p>\n<p><code>export PYTHONPATH=\/home\/USER\/gpaw:$PYTHONPATH<br \/>\nexport PATH=\/home\/USER\/tools:$PATH<\/code><\/p>\n<p>Don&#8217;t forget to get setups. E.g. execute <code>gpaw install-data DIR<\/code>. After that run the tests.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assume that all the requirements are fulfilled: Python 2.7-3.5 NumPy 1.6.1 or later (base N-dimensional array package) ASE 3.15.0 or later (atomic simulation environment) a C-compiler LibXC 2.0.1 or later BLAS and LAPACK libraries Optional, but highly recommended: SciPy 0.7 or later (library for scientific computing, requirered for some features) an MPI library (required for&hellip; <a class=\"read-more\" href=\"https:\/\/doublelayer.eu\/vilab\/2018\/02\/07\/installation-of-libxc-4-0-0-trunk-gpaw1-3-0-ase\/\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[34],"class_list":["post-408","post","type-post","status-publish","format-standard","hentry","category-know-how","tag-software"],"_links":{"self":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":2,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/408\/revisions"}],"predecessor-version":[{"id":410,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/408\/revisions\/410"}],"wp:attachment":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/media?parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/categories?post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/tags?post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}