Install PWscf on a Debian or Debian based operating system

--------------------------!看到題目證實你係學習計算機數值模擬,或者固體物理的,很榮幸能夠和你作個朋友!-----------------------

首先,系統工做環境是debian或者是基於debian的發行版本(ubuntu,gnewsence,etc):

PWscf源代碼使用Fortran語言寫,執行速度比較快,因此,編譯環境:

# apt-get install gfortran


接着,下載PWscf源代碼: http://www.pwscf.org/ ,假設下載到目錄 ~/,要解壓到/opt/:

/home/XXXX/ # tar xvzf espresso-4.1.2.tar.gz
# mv ./espresso-4.1.2/ /opt/
# cd /opt/espresso-3.1.1/
# ./configure
# make all


這樣就已經安裝完了,如今部署GUI界面:新建文件 /usr/local/bin/pwgui-launch :

# gedit /usr/local/bin/pwgui-launch

#!/bin/bash
export PWGUI="/opt/espresso-4.1.2/PWgui-4.1.1/"
export PATH="$PATH:$PWGUI"
pwgui



# cd /opt/espresso-4.1.2/PWgui-4.1.1/
# chmod +x /usr/local/bin/pwgui-launch


基本能夠了,打開終端:

$ pwgui-launch

慢慢深刻研究啦!

來源: http://how-to.wikia.com/

---------------------------------------------------------------------- 我是分隔線 --------------------------------------------------------------------------
*本文內容聽從
GNU Free Documentation License 保留做者版權 轉載請註明出自http://hi.baidu.com/ghxandsky/
相關文章
相關標籤/搜索