Open yoshizk07 opened 5 years ago
xtapp-gfortran-diff file
diff -crN xTAPP-rc-140129.orig/Makefile xTAPP-rc-140129.debian/Makefile *** xTAPP-rc-140129.orig/Makefile Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/Makefile Sun Mar 2 02:13:24 2014
* 0 ** --- 1,44 ----
(cd doc && dvipdfmx -o tutorial.pdf tutorial.dvi) diff -crN xTAPP-rc-140129.orig/src/Makefile-dist xTAPP-rc-140129.debian/src/Makefile-dist *** xTAPP-rc-140129.orig/src/Makefile-dist Wed Jan 29 22:05:45 2014 --- xTAPP-rc-140129.debian/src/Makefile-dist Sun Mar 2 02:29:54 2014
* 8,14 ** FC=mpif90
.SUFFIXES: ! .SUFFIXES: .o .F .f .F90 .f90 .c
default: inipot cgmrpt mdrpt vbpef vbstm wfn2chg pefcos \ xticonv strconv diffstr iplstr cmpstr --- 8,14 ---- FC=mpif90
.SUFFIXES: ! .SUFFIXES: .o .F .f .F90 .f90 .c .C
default: inipot cgmrpt mdrpt vbpef vbstm wfn2chg pefcos \ xticonv strconv diffstr iplstr cmpstr
* 21,26 ** --- 21,28 ---- ${FC} ${F90FLAGS} ${FFLAGS} -c $< .c.o: ${CC} ${CFLAGS} -c $<
${CXX} ${CXXFLAGS} -c $<
################################################################
* 166,171 ** --- 168,202 ----
#
diff -crN xTAPP-rc-140129.orig/src/giounit.h xTAPP-rc-140129.debian/src/giounit.h *** xTAPP-rc-140129.orig/src/giounit.h Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/src/giounit.h Sat Mar 1 17:49:32 2014
* 0 ** --- 1,113 ----
diff -crN xTAPP-rc-140129.orig/src/giounit_open.C xTAPP-rc-140129.debian/src/giounit_open.C *** xTAPP-rc-140129.orig/src/giounit_open.C Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/src/giounit_open.C Sun Mar 2 03:26:22 2014
* 0 ** --- 1,32 ----
* 0 ** --- 1,47 ----
Posted by 藤堂 眞治 at March 02. 2014
早速ですが、先ほどのパッチは元素の種類が一種類の時しか上手く動きませんでした。giounit_open.Cに数行追加した修正版のパッチを添付します。Siの例とquartzの例について動作確認しました。元素が6種類までであれば動くと思います。
xtapp-debian-diff file
diff -crN xTAPP-rc-140129.orig/Makefile xTAPP-rc-140129.debian/Makefile *** xTAPP-rc-140129.orig/Makefile Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/Makefile Sun Mar 2 02:13:24 2014
* 0 ** --- 1,44 ----
(cd doc && dvipdfmx -o tutorial.pdf tutorial.dvi) diff -crN xTAPP-rc-140129.orig/src/Makefile-dist xTAPP-rc-140129.debian/src/Makefile-dist *** xTAPP-rc-140129.orig/src/Makefile-dist Wed Jan 29 22:05:45 2014 --- xTAPP-rc-140129.debian/src/Makefile-dist Sun Mar 2 02:29:54 2014
* 8,14 ** FC=mpif90
.SUFFIXES: ! .SUFFIXES: .o .F .f .F90 .f90 .c
default: inipot cgmrpt mdrpt vbpef vbstm wfn2chg pefcos \ xticonv strconv diffstr iplstr cmpstr --- 8,14 ---- FC=mpif90
.SUFFIXES: ! .SUFFIXES: .o .F .f .F90 .f90 .c .C
default: inipot cgmrpt mdrpt vbpef vbstm wfn2chg pefcos \ xticonv strconv diffstr iplstr cmpstr
* 21,26 ** --- 21,28 ---- ${FC} ${F90FLAGS} ${FFLAGS} -c $< .c.o: ${CC} ${CFLAGS} -c $<
${CXX} ${CXXFLAGS} -c $<
################################################################
* 166,171 ** --- 168,202 ----
#
diff -crN xTAPP-rc-140129.orig/src/giounit.h xTAPP-rc-140129.debian/src/giounit.h *** xTAPP-rc-140129.orig/src/giounit.h Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/src/giounit.h Sat Mar 1 17:49:32 2014
* 0 ** --- 1,113 ----
diff -crN xTAPP-rc-140129.orig/src/giounit_open.C xTAPP-rc-140129.debian/src/giounit_open.C *** xTAPP-rc-140129.orig/src/giounit_open.C Thu Jan 1 09:00:00 1970 --- xTAPP-rc-140129.debian/src/giounit_open.C Sun Mar 2 11:04:55 2014
* 0 ** --- 1,37 ----
* 0 ** --- 1,47 ----
Posted by 吉本 芳英 at March 03. 2014
コードを作成してくださり、ありがとうございます。
取り込む方向で検討します。
Posted by 藤堂 眞治 at March 02. 2014
gfortranで環境変数(FORT10等)を使って、ファイルとUNITを結合するためのパッチを作成しました(xTAPP.gfortran.diff)。
Debian (wheezy)でビルドする際の手順は以下の通りです。
なお、このI/O結合ライブラリの元ソースやテストコードは https://github.com/wistaria/giounit で公開しています。