User Tools

Site Tools


数値計算ライブラリ:itensor:プログラムのメイク

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
数値計算ライブラリ:itensor:プログラムのメイク [2017/06/14 02:05]
koudai
数値計算ライブラリ:itensor:プログラムのメイク [2021/07/05 15:57] (current)
koudai
Line 5: Line 5:
 次のようなMakefileを作成する。 次のようなMakefileを作成する。
  
-<sxh; first-line: 1; highlight: [1,2]; title: Makefile>+<file make Makefile>
 APP=heisenberg_chain APP=heisenberg_chain
 LIBRARY_DIR=/path/to/ITensor LIBRARY_DIR=/path/to/ITensor
Line 50: Line 50:
 mkdebugdir: mkdebugdir:
  mkdir -p .debug_objs  mkdir -p .debug_objs
-</sxh>+</file>
  
 プログラムのコンパイルと実行は、ソースコードとMakefileのあるディレクトリに入って次のようにする。 プログラムのコンパイルと実行は、ソースコードとMakefileのあるディレクトリに入って次のようにする。
- +<code> 
->\$ make +$ make 
->\$ ./heisenberg_chain+$ ./heisenberg_chain 
 +</code>
  
 デバッグモードの場合は デバッグモードの場合は
->\$ make debug+<code> 
 +$ make debug 
 +</code>
  
 コンパイルで生成したファイルを消したい場合は コンパイルで生成したファイルを消したい場合は
->\$ make clean+<code> 
 +$ make clean 
 +</code>
  
数値計算ライブラリ/itensor/プログラムのメイク.1497373516.txt.gz · Last modified: 2021/06/27 21:57 (external edit)