VTKFortranのインストール
アブスト
VTKFortranという、FortranからVTK入出力ができそうなライブラリを見つけたのでコンパイル時の手順をメモ。
github.com
やるべきこと
src/third_party フォルダに、必要な別ツールのソースコードを置く必要がある。
また、一部修正が必要。
git clone https://github.com/szaghi/VTKFortran.git cd src/third_party git clone https://github.com/szaghi/BeFoR64.git git clone https://github.com/Fortran-FOSS-Programmers/FoXy.git git clone https://github.com/szaghi/PENF.git git clone https://github.com/szaghi/StringiFor.git cd ../../
emacs makefile
386行目あたりのpenf.oのフォルダ指定が間違っているので修正
src/third_party/BeFoR64/src/lib/penf.F90 -> src/third_party/PENF/src/lib/penf.F90
mv src/third_party/FoXy/src/lib/foxy_xml_tag.F90 src/third_party/FoXy/src/lib/foxy_xml_tag.f90
なぜかこのファイルだけ大文字でF90になってるので変更
make
これでエラーなくVTKFortranをコンパイルできた。
追記
Issueより、以下で自動的にサードパーティソフトが取得できる可能性。未検証。
git clone --recursive http... cd VTKFortran git submodule update --init --recursive
追記2
別プログラムでのリンクに失敗するので、うまくコンパイルできていない可能性あり。
追記3
- Iで.modの入ったフォルダを指定したら少し解決しそうな雰囲気はあったけど諦めました