KSHELL
入手
- 一般には公開されていないので、個人的にもらう。
コンパイル時エラー (gfortran & gcc)
- 古いコンパイラ (gcc version 4.4.7) だと以下のエラーが出る
gfortran -O3 -fopenmp -DNO_POPCNT -c wavefunction.F90 wavefunction.F90:60.11: real(16) :: q, y, qg(nprocs) 1 Error: Kind 16 not supported for type REAL at (1) wavefunction.F90:65.8: q = 0.q0 1 Error: Symbol 'q' at (1) has no IMPLICIT type wavefunction.F90:66.53: !$omp parallel do private(mq) reduction (+: q) 1 Error: + REDUCTION variable 'q' at (1) must be of numeric type, got UNKNOWN make: *** [wavefunction.o] エラー 1 make: *** 未完了のジョブを待っています....
- 対処
コンパイラを新しくする。本郷の小林の Linux マシンには、Developer Toolset 2.1 をインストールした。新しいコンパイラ (gcc 4.8.2) を使いたい場合、まず始めに以下のコマンドを打つ。
$ scl enable devtoolset-2 bash $ gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- このあと make すれば、エラーが起きない。