数値計算ライブラリ:triqs:cthyb
This is an old revision of the document!
Table of Contents
概要
- CTHyb をソースコードからコンパイルする方法です
- 事前にTRIQSのインストールが必要です。またバージョンもTRIQSのものと合わせてください。
- このページではTRIQSが /opt/triqs/ にインストールしてあるものとしました。
手順
準備
NFFT https://www-user.tu-chemnitz.de/~potts/nfft/ が必要なのでインストールします
$ sudo apt install libnfft3-dev
CTHyb (latest version)
ソースコードを入手します
$ git clone https://github.com/TRIQS/cthyb cthyb.src
作業用ディレクトリを作って、その中に入ります
$ mkdir cthyb.build $ cd cthyb.build
ビルドとコンパイルを行います
$ cmake ../cthyb.src -DCMAKE_INSTALL_PREFIX=/usr/local/triqs -DHYBRIDISATION_IS_COMPLEX=ON -DLOCAL_HAMILTONIAN_IS_COMPLEX=ON $ make $ make test $ sudo make install
メモ
make testで次のエラーが出ることがあります
The following tests FAILED: 17 - Py_setup_Delta_tau_and_h_loc (Failed) 18 - Py_single_site_bethe (SEGFAULT) 19 - Py_atomic_observables (SEGFAULT) 20 - Py_kanamori_py (SEGFAULT) 21 - Py_slater (SEGFAULT) 22 - Py_measure_static (SEGFAULT) 23 - Py_histograms (SEGFAULT) 24 - Py_move_global (SEGFAULT) 25 - Py_h5_read_write (SEGFAULT) 26 - Py_h5_read_write_more (SEGFAULT) 27 - Py_O_tau_ins (SEGFAULT) Errors while running CTest Makefile:85: recipe for target 'test' failed make: *** [test] Error 8
このときは
$ pip install mpi4py
として、再度 make test を行ってください
CTHyb 1.4.1
ソースコードを入手します
展開します
$ tar xzvf cthyb-1.4.1.tar.gz
作業用ディレクトリを作って、その中に入ります
$ mkdir cthyb.build $ cd cthyb.build
ビルドとコンパイルを行います
$ cmake ../cthyb-1.4.1 -DCMAKE_INSTALL_PREFIX=/usr/local/triqs-1.4.x -DTRIQS_PATH=/usr/local/triqs-1.4.x -DHYBRIDISATION_IS_COMPLEX=ON -DLOCAL_HAMILTONIAN_IS_COMPLEX=ON #-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DCMAKE_CXX_FLAGS="-std=c++1y" $ make $ make test $ sudo make install
数値計算ライブラリ/triqs/cthyb.1595221259.txt.gz · Last modified: 2021/06/27 21:57 (external edit)