<?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>MATLAB pour les geeks &#187; fortran</title>
	<atom:link href="https://blog.developpez.com/matlab4geek/?feed=rss2&#038;tag=fortran" rel="self" type="application/rss+xml" />
	<link>https://blog.developpez.com/matlab4geek</link>
	<description>&#62;&#62;why(393) </description>
	<lastBuildDate>Fri, 09 Jan 2015 13:05:12 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Compiler du Fortran sous Linux</title>
		<link>https://blog.developpez.com/matlab4geek/?p=480</link>
		<comments>https://blog.developpez.com/matlab4geek/?p=480#comments</comments>
		<pubDate>Fri, 19 Oct 2012 07:57:51 +0000</pubDate>
		<dc:creator><![CDATA[tug83]]></dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[gfortran]]></category>
		<category><![CDATA[GFORTRAN_1.4]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mex]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/matlab4geek/?p=480</guid>
		<description><![CDATA[Compiler du Fortran sous Linux m&#8217;a l&#8217;air beaucoup plus simple que sous Windows ! En revanche je me suis chopé l&#8217;erreur suivante: version `GFORTRAN_1.4&#8242; not found Voici l&#8217;erreur que j&#8217;ai eue en R2011b, R2012a et R2012b après avoir mexé avec succès : /usr/local/MATLAB/R2012b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4&#8242; not found La solution qui fonctionne pour Ubuntu 11.10 (Oneiric [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Compiler du Fortran sous Linux m&rsquo;a l&rsquo;air beaucoup plus simple que sous Windows !</p>
<p>En revanche je me suis chopé l&rsquo;erreur suivante: </p>
<ul>
<strong>version `GFORTRAN_1.4&prime; not found</strong></ul>
<p>Voici l&rsquo;erreur que j&rsquo;ai eue en R2011b, R2012a et R2012b après avoir mexé avec succès :</p>
<blockquote><p>/usr/local/MATLAB/R2012b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4&prime; not found</p></blockquote>
<p><span id="more-480"></span><br />
La solution qui fonctionne pour <strong>Ubuntu 11.10 (Oneiric Ocelot) et Ubuntu 12.04 (Precise Pangolin) </strong> :</p>
<p>Vous localisez la version 3.0.0 en faisant dans un terminal</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">locate libgfortran</div></div>
<p>moi c&rsquo;était  sous 64-bits :</p>
<blockquote><p>/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 </p></blockquote>
<p>en 32-bits ce serait :</p>
<blockquote><p>/usr/lib/i386-linux-gnu/libgfortran.so.3.0.0 </p></blockquote>
<p>bref ensuite vous faites le lien vers matlabroot/sys/os/glnxa64/libgfortran.so.3 :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo ln -sf /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 /usr/local/MATLAB/R2012b/sys/os/glnxa64/libgfortran.so.3</div></div>
<p>et c&rsquo;est gagné!<br />
Sous Ubuntu 10.10 , 11.04 en revanche non <img src="https://blog.developpez.com/matlab4geek/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley" /></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiler du Fortran sous Windows (part2)</title>
		<link>https://blog.developpez.com/matlab4geek/?p=512</link>
		<comments>https://blog.developpez.com/matlab4geek/?p=512#comments</comments>
		<pubDate>Tue, 16 Oct 2012 07:03:40 +0000</pubDate>
		<dc:creator><![CDATA[tug83]]></dc:creator>
				<category><![CDATA[R2012b]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[compilateur]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[Composer XE 2011 SP1]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[ifort]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[intel visual fortran]]></category>
		<category><![CDATA[mex]]></category>
		<category><![CDATA[MEX-files]]></category>
		<category><![CDATA[Microsoft Software Development Kit]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/matlab4geek/?p=512</guid>
		<description><![CDATA[Suite de mon article Compiler du Fortran sous Windows il y a maintenant un bug report (très succinct à mon gout vu qu&#8217;il ne donne pas de solution) : In MATLAB 8.0 (R2012b), mex -setup cannont find Intel Visual Fortran Composer XE 2011 with Windows SDK 7.1 compiler on 32-bit Windows.]]></description>
				<content:encoded><![CDATA[<p>Suite de mon article <a href="http://blog.developpez.com/matlab4geek/?p=419" target="_blank">Compiler du Fortran sous Windows</a> il y a maintenant un bug report (très succinct à mon gout vu qu&rsquo;il ne donne pas de solution)  : <a href="http://www.mathworks.com/support/bugreports/877961" target="_blank">In MATLAB 8.0 (R2012b), mex -setup cannont find Intel Visual Fortran Composer XE 2011 with Windows SDK 7.1 compiler on 32-bit Windows.</a> </p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiler du Fortran sous Windows</title>
		<link>https://blog.developpez.com/matlab4geek/?p=419</link>
		<comments>https://blog.developpez.com/matlab4geek/?p=419#comments</comments>
		<pubDate>Wed, 10 Oct 2012 07:20:14 +0000</pubDate>
		<dc:creator><![CDATA[tug83]]></dc:creator>
				<category><![CDATA[R2011b]]></category>
		<category><![CDATA[R2012b]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[compilateur]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[Composer XE 2011 SP1]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[ifort]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[intel visual fortran]]></category>
		<category><![CDATA[mex]]></category>
		<category><![CDATA[MEX-files]]></category>
		<category><![CDATA[Microsoft Software Development Kit]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://blog.developpez.com/matlab4geek/?p=419</guid>
		<description><![CDATA[Compiler du Fortran sous Windows : Situation : - Windows XP 32-bit &#8211; 2 versions MATLAB R2011b et R2012b Pour faire simple , sans le support technique de MathWorks, il est impossible de compiler par exemple l&#8217;exemple timestwo.F ([matlabroot &#8216;\extern\examples\refbook\timestwo.F&#8217;]). Donc un grand merci au gars qui m&#8217;a aidé!! &#8230; entre nous c&#8217;est un bug [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Compiler du Fortran sous Windows :</p>
<p>Situation :<br />
-<strong> Windows XP 32-bit</strong><br />
&#8211; 2 versions MATLAB <strong>R2011b et R2012b</strong></p>
<p> Pour faire simple , sans le support technique de MathWorks, il est impossible de compiler par exemple l&rsquo;exemple <strong>timestwo.F</strong>  ([matlabroot &lsquo;\extern\examples\refbook\timestwo.F&rsquo;]). Donc un grand merci au gars qui m&rsquo;a aidé!! &#8230; entre nous c&rsquo;est un bug MATLAB qui est à la cause de tout ça <img src="https://blog.developpez.com/matlab4geek/wp-includes/images/smilies/icon_wink.gif" alt=";)" class="wp-smiley" /></p>
<p>Prérequis :<br />
Avoir le compilateur Fortran qui va bien en R2011b et R2012b:<br />
<strong>Intel Visual Fortran Composer XE 2011 </strong><br />
<a href="http://blog.developpez.com/matlab4geek/files/2012/10/intel.png"><img src="http://blog.developpez.com/matlab4geek/files/2012/10/intel.png" alt="" width="680" height="486" class="alignnone size-full wp-image-422" /></a></p>
<p>Information qu&rsquo;on retrouve sur le site du support :<br />
<a href="http://www.mathworks.fr/support/compilers/R2012b/win32.html#matlab" target="_blank">compilateur 12b supporté</a><br />
<a href="http://www.mathworks.fr/support/compilers/R2011b/win32.html#matlab" target="_blank">compilateur 11b supporté</a></p>
<p>La bonne nouvelle financière  c&rsquo;est qu&rsquo;avoir <strong>Microsoft Windows SDK 7.1</strong> est suffisant .<br />
Une fois la trial téléchargée sur le site d&rsquo;Intel , on peut commencer à mexer.</p>
<p><span id="more-419"></span></p>
<p>Voilà ce qui arrive en faisant un mex -setup:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mex -setup</div></div>
<blockquote><p>
Welcome to mex -setup.  This utility will help you set up<br />
a default compiler.  For a list of supported compilers, see  </p>
<p>http://www.mathworks.com/support/compilers/R2012b/win32.html</p>
<p>Please choose your compiler for building MEX-files:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Would you like mex to locate installed compilers [y]/n? y</div></div>
<p>Select a compiler:<br />
[1] Lcc-win32 C 2.4.1 in F:\R2012b\sys\lcc<br />
[2] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files\Microsoft Visual Studio 10.0<br />
[3] Microsoft Visual C++ 2005 SP1 in C:\Program Files\Microsoft Visual Studio 8 </p>
<p>[0] None </p></blockquote>
<p>votre <strong>compilateur Intel n&rsquo;apparait pas</strong> &#8230;</p>
<p>Donc vous recommencez et cette fois ci à la question <em>Would you like mex to locate installed compilers [y]/n? </em>, vous répondez non .</p>
<p>A ce moment là apparait la liste des compilateurs supportés en R2012b:</p>
<blockquote><p>Select a compiler:<br />
[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)<br />
[2] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker)<br />
[3] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker)<br />
[4] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)<br />
[5] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker)<br />
[6] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker)<br />
[7] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker)<br />
[8] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker)<br />
[9] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)<br />
[10] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)<br />
[11] Lcc-win32 C 2.4.1<br />
[12] Microsoft Software Development Kit (SDK) 7.1<br />
[13] Microsoft Visual C++ 2005 SP1<br />
[14] Microsoft Visual C++ 2008 SP1<br />
[15] Microsoft Visual C++ 2010<br />
[16] Open WATCOM C++ </p>
<p>[0] None </p></blockquote>
<p>Vous choisissez donc le 5 :</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Compiler: 5</div></div>
<p>Warning: The default location for Intel Visual Fortran compiler is:<br />
         &laquo;&nbsp;C:\Program Files (x86)\Intel\ComposerXE-2011&Prime;<br />
         but either that directory does not exist or the configuration<br />
         is invalid.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Use C:\Program Files (x86)\Intel\ComposerXE-2011 anyway [y]/n? y</div></div>
<p>Please verify your choices: </p>
<p>Compiler: Intel Visual Fortran 12<br />
Location: C:\Program Files (x86)\Intel\ComposerXE-2011</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Are these correct [y]/n? y</div></div>
<p>Trying to update options file: D:\Documents and Settings\quefaurs\Application Data\MathWorks\MATLAB\R2012b\mexopts.bat<br />
From template:              F:\R2012b\bin\win32\mexopts\intelf12mssdk71opts.bat </p>
<p>Done . . . </p></blockquote>
<p>Donc déjà j’aurais du le sentir que ça n&rsquo;allait pas marcher vu le warning  précédent:</p>
<blockquote><p>Warning: The default location for Intel Visual Fortran compiler is:<br />
         &laquo;&nbsp;C:\Program Files (x86)\Intel\ComposerXE-2011&Prime;<br />
         but either that directory does not exist or the configuration<br />
         is invalid.
</p></blockquote>
<p>Et en effet mex timestwo.F me sort :</p>
<blockquote><p><strong>Could not find the compiler &laquo;&nbsp;ifort&nbsp;&raquo; on the DOS path</strong></p></blockquote>
<p><!--more--></p>
<p>Donc on recommence les étapes précédentes et cette fois ci à la question:<br />
Use C:\Program Files (x86)\Intel\ComposerXE-2011 anyway [y]/n?<br />
on répond non et <strong>on met le chemin exact où ma variable d&rsquo;environnement PATH me l&rsquo;indique</strong>  c&rsquo;est à dire:<br />
<strong>C:\Program Files\Intel\Composer XE 2011 SP1</strong></p>
<p>Cette fois ci je compile avec succès du Fortran. En revanche à chaque fois que je redémarre la 12b , je dois me retaper toutes les étapes précédentes <img src="https://blog.developpez.com/matlab4geek/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley" /> . Donc pour que MATLAB comprenne que vous avez bel et bien un compilateur Fortran installé il faut demander à MathWorks le fichier <strong>intelf12mssdk71opts.stp </strong>.  En voici un extrait : </p>
<blockquote><p>
    #===================================================================<br />
    # intelf12mssdk71opts: Define where the Intel Visual Fortran 12.0<br />
    # compiler is installed.  Also sets language, version, and<br />
    # environment variables.<br />
    #===================================================================
</p></blockquote>
<p>Ensuite il faut copier ce fichier dans $MATLAB\bin\win32\mexopts\ (ce qui revient à écraser l&rsquo;existant)</p>
<p>Cette fois-ci des que vous taperez mex -setup, le compilateur Fortran apparaitra:</p>
<blockquote><p>
Would you like mex to locate installed compilers [y]/n? y</p>
<p>Select a compiler:<br />
<strong>[1] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker) in C:\Program Files\Intel\Composer XE 2011 SP1\</strong><br />
[2] Lcc-win32 C 2.4.1 in F:\R2012b\sys\lcc<br />
[3] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files\Microsoft Visual Studio 10.0<br />
[4] Microsoft Visual C++ 2005 SP1 in C:\Program Files\Microsoft Visual Studio 8 </p>
<p>[0] None </p>
<p>Compiler: </p></blockquote>
<p> Gagné!</p>
<p><!--more--></p>
<p>Pour que ça puisse marcher aussi en R2011b, il vous faudra copier  les 2 fichiers intelf12mssdk71opts.bat et intelf12mssdk71opts.scp de la R2012b dans le répertoire 11b équivalent :  $MATLAB\bin\win32\mexopts\ </p>
<p>Là franchement il faut avouer que compiler du Fortran n&rsquo;est pas trivial du tout quand l&rsquo;installation à la base est erronée. Enfin bon avec tout ça  maintenant plus de problème.</p>
<p>Liens utiles:<br />
<a href="http://www.mathworks.com/support/bugreports/776933" target="_blank">Why can&rsquo;t I use Intel Fortran Composer XE 2011 compiler with Microsoft Software Development Kit 7.1 linker for MEX-files in R2011b?</a> bug report qui devrait être remis à jour suite à mon Service Request .</p>
<p><a href="https://registrationcenter.intel.com/RegCenter/EvalForm.aspx?ProductID=1830" target="_blank">Télécharger le compilateur Fortran Studio XE 2013 pour Windows</a></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Symbolic = fun</title>
		<link>https://blog.developpez.com/matlab4geek/?p=95</link>
		<comments>https://blog.developpez.com/matlab4geek/?p=95#comments</comments>
		<pubDate>Mon, 08 Nov 2010 07:54:56 +0000</pubDate>
		<dc:creator><![CDATA[tug83]]></dc:creator>
				<category><![CDATA[La symbolic c&#039;est fun!]]></category>
		<category><![CDATA[7.9]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[funtool]]></category>
		<category><![CDATA[LaTex]]></category>
		<category><![CDATA[pretty]]></category>
		<category><![CDATA[R2009b]]></category>
		<category><![CDATA[simplify]]></category>
		<category><![CDATA[Symbolic Math Toolbox]]></category>
		<category><![CDATA[taylor]]></category>
		<category><![CDATA[TriScatteredInterp]]></category>
		<category><![CDATA[triscatteredinterpclass]]></category>
		<category><![CDATA[Variable Precision Arithmetic]]></category>
		<category><![CDATA[vpa]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Dans mon billet du 29 Oct 2010 je vous parlais de l&#8217;outil funtool. Sympa comme nom non? Ce que j&#8217;adore dans la Symbolic Math Toolbox ce sont les noms donnés aux fonctions , ils sont simples à retenir et ils ont des noms courts . Voilà quelques fonctions aux noms funs de la Symbolic :]]></description>
				<content:encoded><![CDATA[<p>Dans  mon <a href="http://blog.developpez.com/matlab4geek/c2705/matlab-documentation/le-challenge-de-funtool/">billet du 29 Oct 2010</a> je vous parlais de l&rsquo;outil funtool. Sympa comme nom non?</p>
<p><strong>Ce que j&rsquo;adore dans la Symbolic Math Toolbox ce sont les noms donnés aux fonctions </strong>, ils sont simples à retenir et ils ont des noms courts . </p>
<p>Voilà quelques fonctions aux noms funs de la Symbolic : </p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
