Skip to content

Commit

Permalink
doc/manual_right_*.html : Modify descriptions for Windows
Browse files Browse the repository at this point in the history
example/mgb2_vfz.frmsf : For new k grid switch
src/Makefile : Add macros and bxsf2frmsf
src/fermisurf.c : Bug fix for the Windows
src/bxsf2frmsf : A utility to convert bxsf  to frmsf
doc/manual_*.tex : Translated into html
  • Loading branch information
mitsuaki1987 committed Apr 18, 2016
1 parent 6033254 commit 26e014c
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 1,327 deletions.
560 changes: 0 additions & 560 deletions doc/manual_en.tex

This file was deleted.

544 changes: 0 additions & 544 deletions doc/manual_ja.tex

This file was deleted.

27 changes: 8 additions & 19 deletions doc/manual_right_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<body bgcolor="CCFFCC">

<center><h1>Manual for FermiSurfer</h1></center>
<center><h2>Version 1.4</h2></center>
<center><h2>Version 1.5</h2></center>
<center><h2>Mitsuaki Kawamura</h2></center>

<hr>
Expand Down Expand Up @@ -59,9 +59,7 @@ <h1><a name="introduction">1, Introduction</a></h1>
<p><code>doc/manual_ja.pdf</code> : Manual (Japanese)</p>
<p><code>examples/mgb2_vfz.frmsf</code> : Sample input file</p>
<p><code>src/fermisurfer.c</code> : Source file</p>
<p><code>src/mac.diff</code> : Patch for Mac OSX</p>
<p><code>src/Makefile</code> : Makefile for Linux</p>
<p><code>src/Makefile-mac</code> : Makefile for Mac OSX</p>
<p><code>src/Makefile</code> : Makefile for Linux & Mac OSX</p>
</dl>

<hr><h1><a name="install">4, Install</a></h1>
Expand Down Expand Up @@ -93,34 +91,25 @@ <h1><a name="introduction">1, Introduction</a></h1>

<ol>
<li><p>Install Xcode.</p></li>
<li><p>Patch the source code.</p>
<li><p>Open <code>Makefile</code> with an editor, and delete <code>#</code>
below <code>#mac</code>.</p>
<pre><code>
$ cd ./src
$ patch -p1 &lt; mac.diff
$ emacs Makefile
</code></pre>
</li>
<li><p>Make.</p>
<pre><code>
$ make -f Makefile-mac fermisurfer
$ make -f Makefile-mac install
$ make fermisurfer
$ make install
</code></pre>
<p>Then a binary file <code>fermisurfer</code> is generated and put
in <code>/usr/local/bin/</code>.</p></li>
</ol>

<hr><h2 id="installation-in-windows">4.3, Installation in Windows</h2>

<ol>
<li><p>Download the <code>zip</code> file which contains <code>freeglut.dll</code>
from "freeglut Windows Development Library" site</p>
<pre><code>
http://www.transmissionzero.co.uk/software/freeglut-devel/
</code></pre>
<p>(in "freeglut MSVC package" item). Then, <code>unzip</code> it.</p></li>
<li><p>copy <code>.\bin\freeglut.dll</code> to the folder
which contains <code>fermisurfer.exe</code> (<code>bin</code>).
(You should not use <code>.\bin\x64\freeglut.dll</code>)</p></li>
</ol>
<p>Use an executable <code>bin/fermisurfer.exe</code></p>

<hr><h1><a name="input-file">5, Input file</a></h1>

Expand Down
30 changes: 7 additions & 23 deletions doc/manual_right_ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<body bgcolor="CCFFCC">

<center><h1>FermiSurferマニュアル</h1></center>
<center><h2>バージョン1.4</h2></center>
<center><h2>バージョン1.5</h2></center>
<center><h2>河村光晶</h2></center>

<hr><a name="hajimeni"><h1>1, はじめに</h1></a>
Expand Down Expand Up @@ -58,9 +58,7 @@
<p><code>doc/manual_ja.pdf</code> : マニュアル(日本語)</p>
<p><code>examples/mgb2_vfz.frmsf</code> : サンプル入力ファイル</p>
<p><code>src/fermisurfer.c</code> : ソースファイル</p>
<p><code>src/mac.diff</code> : Mac OSX用 パッチ</p>
<p><code>src/Makefile</code> : Linux用 Makefile</p>
<p><code>src/Makefile-mac</code> : Mac OSX用 Makefile</p>
<p><code>src/Makefile</code> : Makefile</p>
</dl>

<hr><a name="instlation"><h1>4, インストール手順</h1></a>
Expand Down Expand Up @@ -96,16 +94,16 @@

<ol>
<li><p>Xcodeをあらかじめインストールしておく</p></li>
<li><p>ソースコードにパッチを当てる</p>
<li><p>Makefileを適当なエディタで開いて#macの下の行の#を消す.</p>
<pre><code>
$ cd ./src
$ patch -p1 &lt; mac.diff
$ emacs Makefile
</code></pre>
</li>
<li><p>メイク</p>
<pre><code>
$ make -f Makefile-mac fermisurfer
$ make -f Makefile-mac install
$ make fermisurfer
$ make install
</code></pre>
</li>
</ol>
Expand All @@ -114,21 +112,7 @@

<hr><h2>4.3, Windowsの場合</h2>

<ol>
<li><p>freeglutWindows Development Libraryのサイト</p>
<pre><code>
http://www.transmissionzero.co.uk/software/freeglut-devel/
</code></pre>
<p>内の「freeglut MSVC package」という項目から <code>freeglut.dll</code>を含む
<code>zip</code>ファイルを ダウンロードし, 展開する.</p></li>
<li><p>展開したフォルダ内の<code>bin</code>というフォルダに入っている,
<code>freeglut.dll</code><code>fermisurfer.exe</code>
のあるフォルダ(<code>bin</code>)にコピーする.</p>
<p>(注) <code>bin\x64\</code>にも<code>freeglut.dll</code>があるが,
そちらは使わない.</p></li>
<li><p><code>fermisurfer.exe</code><code>freeglut.dll</code>
常に同じフォルダにおいておくこと.</p></li>
</ol>
<p>実行可能ファイル<code>bin/fermisurfer.exe</code>を直接実行します.</p>

<hr><a name="inputfile"><h1>5, Input file</h1></a>

Expand Down
2 changes: 1 addition & 1 deletion examples/mgb2_vfz.frmsf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
40 40 36
0
1
3
1.0000000 0.57735026 -0.0000000
0.0000000 1.1547005 0.0000000
Expand Down
36 changes: 24 additions & 12 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
fermisurfer:fermisurfer.c
gcc fermisurfer.c -fopenmp -O3 -lglut -lGLU -lGL -lm -o fermisurfer

install:
sudo cp fermisurfer /usr/local/bin/fermisurfer

uninstall:
sudo rm /usr/local/bin/fermisurfer

clean:
rm fermisurfer


CC = gcc
CFLAGS=-fopenmp -O3 -lglut -lGLU -lGL -lm -g

# for mac
#CFLAGS=-D mac -O3 -lglut -lGLU -lGL -lm

all:fermisurfer bxsf2frmsf

fermisurfer:fermisurfer.c
$(CC) $< $(CFLAGS) -o $@

bxsf2frmsf:bxsf2frmsf.c
$(CC) $< $(CFLAGS) -o $@

install:
sudo cp fermisurfer /usr/local/bin/fermisurfer

uninstall:
sudo rm /usr/local/bin/fermisurfer

clean:
rm -rf fermisurfer bxsf2frmsf

Loading

0 comments on commit 26e014c

Please sign in to comment.