<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ArcGISやAutoCADの使い方 &#187; fortran</title>
	<atom:link href="http://arcgis.ezwords.net/tag/fortran/feed" rel="self" type="application/rss+xml" />
	<link>http://arcgis.ezwords.net</link>
	<description>ArcGISというGISソフトウェア（ESRI社製）の初心者向け解説サイトです。なるべく専門用語を使わずに、単純明快な操作方法の説明を心がけています。ArcMap（ArcView）の使い方に関連して各種データの入手や加工方法、AutoCAD,Excel,illustrator,GPS,GoogleEarthなどの話題もチラホラあります。</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:02:20 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>フリーのFortranコンパイラ</title>
		<link>http://arcgis.ezwords.net/kiji/free_fortran_compiler.html</link>
		<comments>http://arcgis.ezwords.net/kiji/free_fortran_compiler.html#comments</comments>
		<pubDate>Thu, 22 May 2008 11:43:12 +0000</pubDate>
		<dc:creator>gisuser</dc:creator>
				<category><![CDATA[ArcGIS]]></category>
		<category><![CDATA[fortran]]></category>

		<guid isPermaLink="false">http://arcgis.ezwords.net/?p=442</guid>
		<description><![CDATA[手元にあるFortranコンパイラが新しいCPUに対応していなかったため、無料のFortranコンパイラ（フォートランという言語で書かれたプログラムを実行させるためのソフト）であるgFortran（gcc）を試してみまし &#8230; <a href="http://arcgis.ezwords.net/kiji/free_fortran_compiler.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>手元にあるFortranコンパイラが新しいCPUに対応していなかったため、無料のFortranコンパイラ（フォートランという言語で書かれたプログラムを実行させるためのソフト）であるgFortran（gcc）を試してみました。</p>
<p><a href="http://gcc.gnu.org/wiki/GFortranBinaries">http://gcc.gnu.org/wiki/GFortranBinaries</a></p>
<p>フリーソフトなのですが、一昔前のコンパイラを使うよりも良いパフォーマンスを得ることが出来ました（最新版のIntelのコンパイラを買った方が高速化できるのでしょうが）。</p>
<p>【gFortranの使い方】</p>
<p>まず、上記ページからファイルをダウンロードし、インストールしてください。</p>
<p>対象とするプログラムソースを保存しているフォルダで、DOSプロンプトを開き、<br />
gfortran -プログラムソース.f -O3 -march=core2<br />
などと入力するとコンパイルでき、同じフォルダに実行ファイル（exeファイル）が作成されます。</p>
<p>以下のような、右クリックからコマンドプロンプトを簡単に表示できるソフトを併用すると作業が楽になります。<br />
<a href="http://www.forest.impress.co.jp/article/2007/02/13/okiniiri.html">http://www.forest.impress.co.jp/article/2007/02/13/okiniiri.html</a></p>
<p>-march=～などのパラメータは、自分の環境にあったものを使用してください。<br />
たとえばシミュレーションを行うパソコンが新しめのCPUを積載している場合、以下のようなオプションを指定できます。<br />
Core2  → =core2<br />
Phenom → =amdfam10<br />
Athron → =athlon</p>
<p>その他のCPUを使っている方は、以下のページが参考になります。<br />
<a href="http://gentoo-wiki.com/Safe_Cflags">http://gentoo-wiki.com/Safe_Cflags</a><br /><strong>関連しているかもしれない記事：</strong>
<ul class="similar-posts">
<li><a href="http://arcgis.ezwords.net/kiji/fortran_speed-up.html" rel="bookmark" title="2007/1/18 木曜日">Fortranプログラムの高速化</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/qgis.html" rel="bookmark" title="2008/6/18 水曜日">フリーのGISソフトQGIS（Quantum GIS）を試してみる</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/safarp.html" rel="bookmark" title="2007/11/20 火曜日">古いバージョンのAutoCADをアンインストールしたいけどコントロールパネルに表示されない場合の対処法</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/acad_font_error.html" rel="bookmark" title="2008/6/2 月曜日">AutoCADやイラストレーターでMSゴシックが表示されなくなった場合の対処法</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/docodemo.html" rel="bookmark" title="2008/5/7 水曜日">複数のパソコンを１つのキーボードで操作する</a></li>
</ul>
<p><!-- Similar Posts took 4.806 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://arcgis.ezwords.net/kiji/free_fortran_compiler.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fortranプログラムの高速化</title>
		<link>http://arcgis.ezwords.net/kiji/fortran_speed-up.html</link>
		<comments>http://arcgis.ezwords.net/kiji/fortran_speed-up.html#comments</comments>
		<pubDate>Thu, 18 Jan 2007 11:33:57 +0000</pubDate>
		<dc:creator>gisuser</dc:creator>
				<category><![CDATA[ArcGIS]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[高速化]]></category>

		<guid isPermaLink="false">http://arcgis.ezwords.net/?p=381</guid>
		<description><![CDATA[Fortranプログラムを高速化する手法は、べき乗（A=B**2）を使わずに（A=B*B）とする、配列を効率的に使うなど、数々の手法があるようです。が、プログラマではないので、詳しいことは良く分かりません。 そこで、ちょ &#8230; <a href="http://arcgis.ezwords.net/kiji/fortran_speed-up.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fortranプログラムを高速化する手法は、べき乗（A=B**2）を使わずに（A=B*B）とする、配列を効率的に使うなど、数々の手法があるようです。が、プログラマではないので、詳しいことは良く分かりません。</p>
<p>そこで、ちょっと調べてみたところ、たとえば Compaq Visual Fortran では、自動でそのような処理をおこなってくれる機能があることが分かりましたので、まとめておきます。</p>
<ol>
<li>普通にプログラムを作る（上記『べき乗』とかは気にしなくて良さそう）</li>
<li>Buildする</li>
<li>ProjectのSettingダイアログを表示</li>
<li>Fortranタブを表示</li>
<li>『Category:General』で、『Optimization Level:』の値をMaximum Optimizationsに変更する。</li>
<li>『Category:Code Generationl』で、『Generate Code For:』の値を使用するパソコンに合わせる。ここに載っていないXeonなどの64bitCPUの場合は『Host』にする</li>
<li>『Category:Optimizations』で、『Processor to Optimize for:』の値を使用するパソコンに合わせる。ここに載っていないXeonやCore2DuoなどのCPUの場合は『Host』にすると良いみたい</li>
<li>OKボタンを押して、Project Settingダイアログを消す</li>
<li>あとは、普通に実行するだけ（！マークを押す）</li>
</ol>
<p>なにもOptimizeしない場合と比べるとで4分の１くらいに計算時間が激減しました。</p>
<p>なお、上記手順でプログラムが最適化されるのは、コンパイル時のみです。ソースは元のままですので、プロジェクトとして保存しなかった場合は、上記手順を踏み直す必要があります。<br /><strong>関連しているかもしれない記事：</strong>
<ul class="similar-posts">
<li><a href="http://arcgis.ezwords.net/kiji/user_profile_hive_cleanup.html" rel="bookmark" title="2008/10/23 木曜日">Windowsのシャットダウンやログオフを高速化</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/free_fortran_compiler.html" rel="bookmark" title="2008/5/22 木曜日">フリーのFortranコンパイラ</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/heave_shape.html" rel="bookmark" title="2007/11/9 金曜日">シェープファイルのサイズを小さくする</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/autocad_to_xyz.html" rel="bookmark" title="2007/4/5 木曜日">CADファイルのXYZ座標を取得するプログラム</a></li>
<li><a href="http://arcgis.ezwords.net/kiji/acad_font_error.html" rel="bookmark" title="2008/6/2 月曜日">AutoCADやイラストレーターでMSゴシックが表示されなくなった場合の対処法</a></li>
</ul>
<p><!-- Similar Posts took 5.234 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://arcgis.ezwords.net/kiji/fortran_speed-up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

