2007-01-01から1年間の記事一覧

MacPorts で octave をインストール.(corresponding to lapack atlas blas gfortran ?)

mac

atlas をコンパイルしようとすると,gfortran or g77 が無いとエラーがでる. gfortran をインストールしたければ, sudo port install octave で,gcc42 のインストールとひっくるめて一括インストールできるらし.

macports : Mac 用 apt or yum

mac

fink よりもイイらしい

うまくいかないときのチェック項目

始めるときIPS = 1 IRS = 0主自由パラメータを par[J] とする. stpnt 内で par[J] に値を与えているか. また,c.xxx 内で,主パラメータを正しく設定できているか. 1 J NICP ICP(I) さらに,その stpnt で与えた par[J] の値は, [RL0, RL1] 内に入ってい…

AUTO の流れ その2: 自作プログラムを埋めるなら,wrline or, wrtbv8

簡単な方法,2通り.1) auto_f2c.h で,関数を宣言し,他のユーザー定義関数 func, stpnt, bcnd,... 等と同様, 自作プログラム内で実装. autlib1.c 内,wrline or wrtbv8 やらの中で呼び出す.2) $AUTO_DIR/include 内に,hoge.h 等の自作ヘッダーを置き…

AUTO を 自作プログラム(c++)で使う(やめた.)

中途:とりあえず,AUTO の関数を使った c++ プログラムをコンパイルできるようになるまで. $(AUTO_DIR)/include/auto_f2c.h を編集. /* user function pointers */ int func(); int stpnt(); int bcnd(); int icnd(); int fopt(); int pvls(); を, int f…

/

#include "auto_f2c.h" #include "math.h" #include "auto_c.h" ...

AUTO の中身

($AUTO)/src/README README : This file. autlib1.f : Auto library routines (including main program) autlib2.f : Auto library routines (bvp linear equation routines) autlib3.f : Auto library routines (interface routines) autlib4.f : Auto libr…

AUTO on Mac のエラー

Mac で AUTO を実行しようとした時に起きたエラーの解決策. エラー 1 : /usr/bin/ld: Undefined symbols : _main $ auto AUTO> ld("ab") AUTO> run() make: [ab.o] Error 1 (ignored) ... /usr/bin/ld: Undefined symbols: _main collect2: ld returned 1 e…

AUTO の出力

fort.7 (=> b.hoge) :安定性の交代,分岐点の種類が見易い. fort.8 (=> s.hoge):軌道の座標. fort.9 (=> d.hoge):固有値,L2-norm, max(1) max(2), periodautlib1.c の,wrtbv8 内で出力 軌道の空間座標値は,ups[j][k] (0 fort.8 4 30 4 6 2 1 20…

AUTO から,shooting point を得る.

wrtbv8(iap_type *iap, rap_type *rap, doublereal *par, integer *icp, doublereal *rldot, integer *ndxloc, doublereal **ups, doublereal **udotps, doublereal *tm, doublereal *dtm) { ... mtot = ntot % 10000; fprintf(fp8,"%5ld",ibr); fprintf(fp8…

AUTO の流れ:continuation は,extrbv stupbv stplbv (adapt) -> extrbv を反復しながら行っている.

main.c main autlib1.c autoae -> cnrlae//Generate the starting point stpnt pvlinewlab //Determine a suitable starting label and branch number sthd //Write constants stplae //Write plotting data for the starting point stprae //Starting proce…

imagemagick のインストール

mac

http://www.ishihara.ne.jp/blog/archives/2006/10/index.html より転載 $ fink install libjpeg $ fink install libpng31. ImageMagickのソースコード一式を以下のサイトより取得(今回は ImageMagick-6.3.0) http://www.imagemagick.org/script/download.…

Mac 用 gnuplot でタブ補完を可能にする.

mac

Fink 使用の場合http://d.hatena.ne.jp/nkmrtkhd/searchdiary?word=%A5%D5%A5%A1%A5%A4%A5%EB より引用 /sw/fink/10.4/stable/main/finkinfo/sci/gnuplot.info のコンパイルパラメーター(ConfigureParams: 以下)に --with-readline=gnu --enable-history-fil…

C, fortran 混在コンパイル用 Makefile

FC = g77 LOAD = bvpsol INCLUDE= #CFLAGS = -I$(INCLUDE) -O3 FFLAGS = -I$(INCLUDE) -g -O FOBJ = bvpsol.o linalg_bvpsol.o ma28_bvpsol.o zibconst.o zibsec.o CSRC = main_bvpsol.c .f.o: $(FC) $(FFLAGS) -c $$(LOAD): $(CSRC) $(FOBJ) $(FC) $(FFLAGS…

BVPSOL プログラム構成

code http://www.zib.de/Numerik/numsoft/CodeLib/codes/bvpsol/ readme より The distribution contains the following files: bvpsol.f the solver bvpsol.nrm output of the example linalg_bvpsol.f dense linear algebra (deccon,solcon) ma28_bvpsol.f…

MUMUS : A multiple shooting method for solving multipoint boundary value problems of systems of ordinary differential equations

mumus $ g77 -c contrl.f mumus $ g77 -c hamfcn.f mumus $ g77 -c mumus.f mumus $ g77 -c rkf7mp.f mumus $ g77 -c awplm.f awplm.f: In subroutine `odexm': awplm.f:971: warning: COMMON /EXTABL1/ DZ(51),T(9,51),NJ(9),HH(9),W(9),ERR,FAC, ^ Padding…

Fortran の基礎

http://www.geocities.jp/eyeofeconomyandhealth/homepage/kata3.html より 変数の頭文字がi,j,k,l,m,nの6つなら、その変数は整数型 「implicit double precision(c)」(真ん中にその型の宣言文を書く)と書いてください。これにより、cで始まる変数は倍精度実…

mumus 設定値

http://www-m2.ma.tum.de/Software/mumus/src/ mumus.f より SUBROUTINES SUPPLIED BY THE USER C RIGHT HAND SIDE OF ODE C SUBROUTINE FCN (X,Y,DY,ISIDE) C 2-POINT AND INNER BOUNDARY-CONDITIONS C SUBROUTINE R (X,YA,YB,W,NSW,ISIDE) C INTEGRATION-R…

wget

http://hoge.com/src/ 以下の,*.cpp を, $ wget -c -r -l2 --no-parent -nd -A.cpp http://hoge.com/src/ -c 更新する必要なければスキップ(ダウンロードを中断した後にやり直す時等) -r 再帰 -l2 2階層先まで --no-parent 親の方にさかのぼらない -nd …

autoconf automake

c++

automake は,バージョンの違いに敏感. ここでは version 1.9 についてメモしておく. # automake --version automake (GNU automake) 1.9.4

文字列読み込み 数値変換

c++

%e で double を読み込むとエラー %le を使うこと%*s の*は,その token を無視する(代入先を設定しない)という意味. 読みとばすからといって,適当な型を指定してはいけない.(全読み込みがパーになる.) #include <string> int main(){ std::string line = "</string>…

hhk pro で,左◇キーが「英数」,右◇キーが「かな」になっているのを,コマンドキーに変更.

mac

キーボード本体の裏面を見ると,スイッチの組み合わせが書かれてあるシールが貼ってある. コードが出ている側の面にあるふたを開けて,左から2番目のスイッチを上にあげると, スペースの両隣の◇キーがコマンドキーになる.

xemacs タブ型エディタ化 elscreen.el

http://www.morishima.net/~naoto/software/elscreen/ から,elscreen-1.4.5.tar.gz をダウンロードして解凍. ~/.xemacs/ 以下に,elscreen.el を置いて, .emacs (もしくは,~/.xemacs/init.el)に次を追加. (setq load-path (cons "~/.xemacs/" load-pa…

c++ programing : lapack, octave, glut, Qt

mac

lapackこれは簡単. hoge.cpp の中で, #include として, $ g++ -framework vecLib hoge.cpp -o hoge -lm octavefink でインストールしたやつ?(/sw/include/octave-2.1.71,/sw/lib/octave-2.1.71)は, コンパイル通っても Bus error なんて言われてうま…

xcode

mac

外部エディタ emacshttp://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/ja.lproj/index.html より抜粋. 「Xcode」メニューから「環境設定」を選び、「ファイルタイプ」をクリックします。 適切なファ…

Mac で数値計算:qt4, blas, lapack, atlas

mac

web page 消失につき, http://72.14.235.104/search?q=cache:J22sGZRqG8oJ:www.cmpt.phys.tohoku.ac.jp/~kusu/programming.html+mac+lapack&hl=ja&ct=clnk&cd=1&gl=jp&client=firefox-a キャッシュまるまる転載 Hiroaki Kusunose Web SiteTheoretical Conde…

firefox の ./configure でエラー error: --enable-application=APP is required

その configure が置いてある mozilla ディレクトリにて, # cp browser/config/mozconfig .した後に, ./configure すればよし.

Mac(ppc)に fedora core linux をインストールする

ppc 用 rescue cd を用意. (下の iso イメージを cd に焼けばよい) http://ftp.riken.jp/Linux/fedora/core/6/ppc/iso/FC-6-ppc-rescuecd.iso linux を入れるパーティションを用意する必要がある. 開いているパーティションがなければ,既存のパーティシ…

keycode

http://x68000.q-e-d.net/~68user/unix/pickup?xmodmap よりxmodmap -pke とすると、現在の keycode (キーコード) と keysym (キーシンボル) の対応表が表示される。 keycode・keysym を調べるには、xev コマンドを使うとよい。 コマンド xev X のイベントを…

web camera 設定

インストールには,30分程かかります. 注意:カメラ,カンファレンスフォン(マイク&スピーカー)どちらも外しておく! 注意:インターネットにつないでおく. カンファレンスフォンのセットアップ カンファレンスフォンのドライバCDを挿入. 「ドライバー…