cornell大学?からmoil9.1ができたらしいのでダウンロードしてインストール。とりあえずその記録。
tar xzf moil901.tar.gz
で解凍、ディレクトリ移って、
./compile.sh
と打つと、来ましたエラー。
remove all object files
csh: /bin/rm: No match.
compile all (specific files can be given as line arguments)
compiler error - look at moil.source/log
で実際見ると、Makefileを変更してなかった。なんだよpgf77って。
まずg77でできるのか?ってことでmoil.source/Makefileを書き換え。
FF = g77
FFLAGS = -O
←(g77のフラッグを知らない…)再び./compile.sh そしてエラー。
g77 -O -c connect/connect.f
include 'COMMON/LINE.BLOCK'
^
Unable to open INCLUDE file `COMMON/LINE.BLOCK' at (^)
connect/connect.f:21:
debug = .false.
1 2
Type disagreement between expressions at (1) and (2)
connect/connect.f:79: ←(実際はもっとたくさん)
…includeって、fortran77にありましたっけ?
.false.って表式fortran77にありましたっけ?
ということでg77の使用はあきらめてxlf(IBM fortran compiler ベータ版)を使うことにしました。
FC = xlf
FFLAGS = -O -u
そして./compile.sh またもエラー。
xlf -O -u -c LES/prtc_add_les.f
"LES/prtc_add_les.f", line 37.8: 1511-025 (S) Logical expressions must only be compared using EQV and NEQV operators.
** prtc_add_les === End of Compilation 1 ===
1501-511 Compilation failed for file prtc_add_les.f.
make: *** [LES/prtc_add_les.o] Error 1
エラー箇所:moil.source/LES/prtc_add_les.f
何となく理論式の表式に問題があるらしい。
if (tflagchr(tnpt).ne.0) then
fortranって真の時どっち返すのかわかんないが、多分0だろう。ということで、この部分を
if (.not.tflagchr(tnpt)) then
と書き換え。で、./compile.sh やっぱりエラー。
xlf -O -u -c GB/make_rborn.f
"GB/make_rborn.f", line 4.36: 1515-018 (S) Incorrect character found in source at line 4 in column 36. Hexadecimal value of character is 0D.
"GB/make_rborn.f", line 5.33: 1515-018 (S) Incorrect character found in source at line 5 in column 33. Hexadecimal value of character is 0D.
"GB/make_rborn.f", line 6.37: 1515-018 (S) Incorrect character found in source at line 6 in column 37. Hexadecimal value of character is 0D.
"GB/make_rborn.f", line 36.28: 1515-018 (S) Incorrect character found in source at line 36 in column 28. Hexadecimal value of character is 0D.
** make_rborn === End of Compilation 1 ===
1501-511 Compilation failed for file make_rborn.f.
make: *** [GB/make_rborn.o] Error 1
エラー箇所:moil.source/GB/make_rborn.f
…意味不明。
悩むこと数時間、文字コード?の違いだと判明。miで開いて、
Shift JIS,CR+LF(Win) → EUC-JP,LF(UNIX)
に変更。これくらい大目に見てよ。で./compile.sh 再びエラー。
エラー箇所:moil.source/analysis/rgyr.f
同上。
./compile.sh またもエラー。
xlf -O -u -c analysis/rms_2path.f
"analysis/rms_2path.f", 1516-036 (S) Entity inpsty2 has undefined type.
"analysis/rms_2path.f", 1516-036 (S) Entity inpsty1 has undefined type.
** rms_2path === End of Compilation 1 ===
"analysis/rms_2path.f", 1516-036 (S) Entity n has undefined type.
** getstrcrd === End of Compilation 2 ===
"analysis/rms_2path.f", line 291.24: 1513-038 (S) Assumed-size array is not permitted in this context.
"analysis/rms_2path.f", line 295.24: 1513-038 (S) Assumed-size array is not permitted in this context.
"analysis/rms_2path.f", 1516-036 (S) Entity kmax has undefined type.
"analysis/rms_2path.f", 1516-036 (S) Entity l has undefined type.
** wsortrms === End of Compilation 3 ===
1501-511 Compilation failed for file rms_2path.f.
make: *** [analysis/rms_2path.o] Error 1
エラー箇所:moil.source/analysis/rms_2path.f
どうやら変数宣言の問題らしい。i〜nは整数、他は実数って自動で読んでくれ。
integer inpsty1,inpsty2
integer n
integer kmax,l
を該当箇所に追加。./compile.sh 待ってましたエラー。
エラー箇所:moil.source/generic/ovrl2str.f
同2個上。
./compile.sh そろそろ勘弁してくれエラー。
xlf -O -u -c brown/bd_dyna.f
"brown/bd_dyna.f", line 6.36: 1515-018 (S) Incorrect character found in source at line 6 in column 36. Hexadecimal value of character is 0D.
〜
"brown/bd_dyna.f", 1516-036 (S) Entity jj has undefined type.
** dynamics === End of Compilation 1 ===
1501-511 Compilation failed for file bd_dyna.f.
make: *** [brown/bd_dyna.o] Error 1
エラー箇所:moil.source/brown/bd_dyna.f
文字コードの問題と変数宣言の組み合わせ。
integer i,ii,iii,ixyz,itb,ind_norm
integer j,jtb,mm,nsumb,nsumv
double precision bhist,bd_c2,bd_sgrr,bd_sgvv
double precision bd_c0,bd_c1,bd_crv,eng_norm
double precision histnorm,sumkin,sqrttkm,thist
double precision vhist,x,xnormsq
これを追加。
そして./compile.sh
歓喜の瞬間。ただし正常に動いているかわかりませんが。
家のwin98でやってるのでMacでも。メモリいっぱいのってるんで意味ないと思いますが、キレイなデスクトップはいいものです。
padma colorsさんのところ参照。
Library/Preferences/com.apple.finder.plist
に次を追加or <true/>を書き換え。
<key>CreateDesktop</key>
<false/>
最近、terminalのopenコマンドを多用するのであまりdesktop上のファイル意味ないんですよね。
最近になって初めてメモの上のバーをダブルクリックすると1行目残して縮小するってことを知りました。
しばらく予定表って意味を含めて使っていこうかなって気になります。
a51さんのページからLunchMenuをダウンロード。Dockを極力使用しない方向に進んでいます。
メーラを
MozillaのThunderBirdから
MoreSweetさんのsweetmailに乗り換え。
久しぶりに使ってシンプルなデザインに夢中になりました。