<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Laurence McGlashan</title>
 <link href="http://lrm29.github.com/atom.xml" rel="self"/>
 <link href="http://lrm29.github.com/"/>
 <updated>2021-04-08T18:59:28+00:00</updated>
 <id>http://lrm29.github.com/</id>
 <author>
   <name>Laurence McGlashan</name>
   <email>lrm29@cam.ac.uk</email>
 </author>

 
 <entry>
   <title>First Chinese (中文) Blog Post</title>
   <link href="http://lrm29.github.com/chinese/2011/12/24/chinese.textile"/>
   <updated>2011-12-24T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/chinese/2011/12/24/chinese</id>
   <content type="html">你好, 我叫劳伦思。我学说中文。

&lt;table&gt;
&lt;tr&gt;
  &lt;td&gt;我&lt;/td&gt;
  &lt;td&gt;I&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;你&lt;/td&gt;
  &lt;td&gt;you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;好&lt;/td&gt;
  &lt;td&gt;good&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;叫&lt;/td&gt;
  &lt;td&gt;called&lt;/td&gt;
&lt;tr&gt;
  &lt;td&gt;劳伦思&lt;/td&gt;
  &lt;td&gt;Laurence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;学&lt;/td&gt;
  &lt;td&gt;learn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;说&lt;/td&gt;
  &lt;td&gt;speak&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;中文&lt;/td&gt;
  &lt;td&gt;Chinese&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</content>
 </entry>
 
 <entry>
   <title>Writing Dimensional Units in LaTeX</title>
   <link href="http://lrm29.github.com/latex/2011/08/17/latex-dimensions.textile"/>
   <updated>2011-08-17T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/latex/2011/08/17/latex-dimensions</id>
   <content type="html">This is some useful LaTeX code to make adding SI dimensional units to quantities much easier:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-latex&quot; data-lang=&quot;latex&quot;&gt;&lt;span class=&quot;k&quot;&gt;\newcommand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;[5]&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ensuremath&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\
    \ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}{}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;kg&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;kg&lt;span class=&quot;p&quot;&gt;}^{&lt;/span&gt;#1&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;%&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}{}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;m&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;m&lt;span class=&quot;p&quot;&gt;}^{&lt;/span&gt;#2&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;%&lt;/span&gt;
            &lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#3&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}{}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#3&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;s&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;s&lt;span class=&quot;p&quot;&gt;}^{&lt;/span&gt;#3&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;%&lt;/span&gt;
                &lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#4&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}{}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#4&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;K&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;K&lt;span class=&quot;p&quot;&gt;}^{&lt;/span&gt;#4&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;%&lt;/span&gt;
                    &lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#5&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\ifthenelse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\equal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;#5&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;kmol&lt;span class=&quot;p&quot;&gt;}}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;kmol&lt;span class=&quot;p&quot;&gt;}^{&lt;/span&gt;#5&lt;span class=&quot;p&quot;&gt;}}}}}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

You can then define shortcuts to make things even easier:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-latex&quot; data-lang=&quot;latex&quot;&gt;&lt;span class=&quot;k&quot;&gt;\newcommand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimT&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;\newcommand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimWatt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;-3&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;\newcommand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimJoule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;-2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;\newcommand&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimPascal&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;\dimensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;-1&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;-2&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}{&lt;/span&gt;0&lt;span class=&quot;p&quot;&gt;}}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
</content>
 </entry>
 
 <entry>
   <title>OpenFOAM-2.0 Released</title>
   <link href="http://lrm29.github.com/openfoam/2011/06/17/OF2.textile"/>
   <updated>2011-06-17T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/2011/06/17/OF2</id>
   <content type="html">&quot;OpenFOAM-2.0&quot;:http://www.openfoam.com has been released, and there are lots of exciting &quot;new features&quot;:http://www.openfoam.com/version2.0.0!

I'm happy to say that the &quot;Git repository&quot;:http://www.openfoam.com/download/git.php installs on Fedora 15 smoothly.

The namespace storing math constants had changed, so to update all the namespace declarations in my own code I ran the following:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-lre&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'mathematicalConstant::'&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt; | xargs &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'\n'&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sed&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'s/mathematicalConstant::/constant::mathematical::/g'&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

Hope that helps some of you.

</content>
 </entry>
 
 <entry>
   <title>Eclipse Helios and Fedora 14</title>
   <link href="http://lrm29.github.com/fedora/programming/2010/11/08/Eclipse-Helios-and-Fedora-14.textile"/>
   <updated>2010-11-08T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/fedora/programming/2010/11/08/Eclipse-Helios-and-Fedora-14</id>
   <content type="html">I found that the C++ indexer in Eclipse Helios crashed the application in Fedora 14. Obviously this was
slightly annoying if I want to use it as an IDE...

Anyway, apparently it's due to Java, and there's a simple hack here to get it working:

&quot;Eclipse CDT indexer crashes in Fedora 14&quot;:https://bugzilla.redhat.com/show_bug.cgi?id=647737

In essence, just add the following to /etc/eclipse.ini:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nt&quot;&gt;-XX&lt;/span&gt;:-UseCompressedOops&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

This is just a quick fix: They're continuing to find a proper solution.

</content>
 </entry>
 
 <entry>
   <title>RADAU ODE Solver for OpenFOAM</title>
   <link href="http://lrm29.github.com/openfoam/programming/2010/10/01/RADAU-ODE-Solver-for-OpenFOAM.textile"/>
   <updated>2010-10-01T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/programming/2010/10/01/RADAU-ODE-Solver-for-OpenFOAM</id>
   <content type="html">&lt;div class=&quot;centreDownload&quot;&gt;
            Download RADAU Patch &lt;a href=&quot;http://lrm29.github.com/files/0001-RADAU-added-to-ODESolvers.patch&quot;&gt;
            &lt;img src=&quot;http://lrm29.github.com/images/download.jpg&quot; alt=&quot;Click to Download&quot;&gt;
            &lt;/a&gt;
        &lt;/div&gt;

Here's a patch for OpenFOAM to add RADAU as an ODE solver. Simply apply the patch to create a folder within /src/ODE/ODESolver called RADAU, then remake the folder ODE using `wmake libso'.

You can test RADAU using /applications/test/ODETest. Here's how it roughly performs to SIBS:

RADAU:

Analytical: y(2.0) = 4(0.223891 0.576725 0.352834 0.128943)
Numerical:  y(2.0) = 4(0.223891 0.576725 0.352834 0.128943)

SIBS:

Analytical: y(2.0) = 4(0.223891 0.576725 0.352834 0.128943)
Numerical:  y(2.0) = 4(0.223891 0.576725 0.352833 0.128944)

There's still some work to do to integrate it properly. If there's interest let me know or have a go yourself!
</content>
 </entry>
 
 <entry>
   <title>Profiling C++ Code</title>
   <link href="http://lrm29.github.com/openfoam/programming/2010/09/02/profiling_cplusplus.textile"/>
   <updated>2010-09-02T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/programming/2010/09/02/profiling_cplusplus</id>
   <content type="html">Recently I used profiling on some C++ libraries I wrote for use with &quot;OpenFOAM&amp;reg;&quot;:http://www.openfoam.org. Profiling allows you to see how much time your program spends inside each function. Using this, within half an hour I managed to reduce the cpu time of the code by around 70%. The offending code was calculating an integral, which contained many uses of the pow() function. The cpu time was easily reduced by precalculating some of these outside the integral and using sqr(x) instead of pow(x,2).
&lt;br&gt;
You can use gprof, but all the code needs to be recompiled using the -pg option. Instead you can use Cachegrind or Callgrind which don't require your code to be recompiled. The disadvantage is that they cause the code to run slower.
&lt;br&gt;
I used &quot;Callgrind&quot;:http://valgrind.org/docs/manual/cl-manual.html, a tool that is part of &quot;Valgrind&quot;:http://valgrind.org. It's executed using:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;valgrind &lt;span class=&quot;nt&quot;&gt;--tool&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;callgrind &amp;lt;executableName&amp;gt;
kcachegrind&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

When the simulation is done you'll see a callgrind file in the current directory. Opening it with &quot;kcachegrind&quot;:http://kcachegrind.sourceforge.net/html/Home.html allows you to easily trace through the functions that have been called. You can even generate nice looking call graphs to help you trace function calls:

&lt;img src=&quot;/images/callGraph.jpg&quot; alt=&quot;Call graph&quot;&gt;
</content>
 </entry>
 
 <entry>
   <title>OpenFOAM/F13 Linking Issue Fixed</title>
   <link href="http://lrm29.github.com/openfoam/fedora/2010/08/31/OpenFOAM-F13-issue-fixed.textile"/>
   <updated>2010-08-31T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/fedora/2010/08/31/OpenFOAM-F13-issue-fixed</id>
   <content type="html">The issue in post &quot;OpenFOAM Fedora 13 Fork&quot;:/openfoam/fedora/2010/08/30/openfoam-fork.html has been fixed in the OpenFOAM-1.7.x repository. Fedora's Gcc has implicit linking turned off.

To turn it back on again add the following option to g++:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;&lt;span class=&quot;nt&quot;&gt;-Xlinker&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--add-needed&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</content>
 </entry>
 
 <entry>
   <title>OpenFOAM Fedora 13 Fork</title>
   <link href="http://lrm29.github.com/openfoam/fedora/2010/08/30/openfoam-fork.textile"/>
   <updated>2010-08-30T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/fedora/2010/08/30/openfoam-fork</id>
   <content type="html">&lt;p&gt;
I have forked &quot;OpenFOAM&quot;:http://www.openfoam.org for Fedora 13. This is because Fedora 13 no longer allows implicit linkage (see &quot;DSO Link Changes&quot;:http://fedoraproject.org/wiki/UnderstandingDSOLinkChange).
&lt;/p&gt;
&lt;p&gt;
A fix is to change the relevant Make/options files from
&lt;/p&gt;

&lt;pre&gt;
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = -lfiniteVolume
&lt;/pre&gt;

&lt;p&gt;
to
&lt;/p&gt;

&lt;pre&gt;
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = -L$(FOAM_MPI_LIBBIN) \
           -lPstream \
           -lfiniteVolume
&lt;/pre&gt;
</content>
 </entry>
 
 <entry>
   <title>First Blog Post</title>
   <link href="http://lrm29.github.com/openfoam/programming/2010/08/28/first-blog-post.textile"/>
   <updated>2010-08-28T00:00:00+00:00</updated>
   <id>http://lrm29.github.com/openfoam/programming/2010/08/28/first-blog-post</id>
   <content type="html">This is the first blog post. Below I have tried out some C++ highlighting:

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-cpp&quot; data-lang=&quot;cpp&quot;&gt;&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Nf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;++&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;rho&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alpha&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mtm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rhod&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

</content>
 </entry>
 
 
</feed>
