<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:CMR10;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMTT10;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMBX12;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:CMTI10;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12">Hello,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12">My mpich2 was configured as follows<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">[eng923@cops-021026 job]$ mpich2version<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 Version:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.2.1p1<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 Release date:&nbsp;&nbsp;&nbsp; Unknown, built on Mon Mar 29 14:37:13 BST 2010<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 Device:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch3:nemesis<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 configure:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --prefix=/opt/mpich2<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 CC:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gcc&nbsp; -O2<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 CXX:&nbsp;&nbsp;&nbsp;&nbsp; c&#43;&#43;&nbsp; -O2<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 F77:&nbsp;&nbsp;&nbsp;&nbsp; gfortran&nbsp; -O2<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">MPICH2 F90:&nbsp;&nbsp;&nbsp;&nbsp; f95&nbsp; -O2<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">When I read the following (see below) in migrating from mpich1 to mpich2, is this possibly causding the problem in mpi_scatter?
 As I am using an Intel fortran compiler on a 64 bit linux platform? Would I need to reinstall and configure MPIch2 and where and how do I include the
</span></font><font size="2" face="CMTT10"><span style="font-size:11.0pt;font-family:CMTT10">F90FLAGS &quot;-i4&quot; statement on a bash Shell?</span></font><font face="CMBX12"><span style="font-family:CMBX12"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12">D.4 Q: When I use the g95 Fortran compiler on a 64-bit<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="3" face="CMBX12"><span style="font-size:12.0pt;font-family:CMBX12">platform, some of the tests fail<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">A: The g95 compiler incorrectly defines the default Fortran integer as a 64-<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">bit integer while defining Fortran reals as 32-bit values (the Fortran standard<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">requires that INTEGER and REAL be the same size). This was apparently<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">done to allow a Fortran INTEGER to hold the value of a pointer, rather<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">than requiring the programmer to select an INTEGER of a suitable KIND.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">To force the g95 compiler to correctly implement the Fortran standard, use<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">the
</span></font><font size="2" face="CMTT10"><span style="font-size:11.0pt;font-family:CMTT10">-i4
</span></font><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">flag. For example, set the environment variable
</span></font><font size="2" face="CMTT10"><span style="font-size:11.0pt;font-family:CMTT10">F90FLAGS
</span></font><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">before<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">configuring MPICH2:<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMTT10"><span style="font-size:11.0pt;font-family:CMTT10">setenv F90FLAGS &quot;-i4&quot;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">G95 users should note that there (at this writing) are two distributions of<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">g95 for 64-bit Linux platforms. One uses 32-bit integers and reals (and<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">conforms to the Fortran standard) and one uses 32-bit integers and 64-bit<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">reals. We recommend using the one that conforms to the standard (note<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">that the standard specifies the
</span></font><i><font size="2" face="CMTI10"><span style="font-size:11.0pt;font-family:CMTI10;font-style:
italic">ratio
</span></font></i><font size="2" face="CMR10"><span style="font-size:
11.0pt;font-family:CMR10">of sizes, not the absolute sizes, so a<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">Fortran 95 compiler that used 64 bits for
</span></font><i><font size="2" face="CMTI10"><span style="font-size:11.0pt;
font-family:CMTI10;font-style:italic">both
</span></font></i><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">INTEGER and REAL would<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">also conform to the Fortran standard. However, such a compiler would need<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMR10"><span style="font-size:11.0pt;font-family:CMR10">to use 128 bits for DOUBLE PRECISION quantities).</span></font><font size="2" face="CMR10"><span style="font-size:10.0pt;
font-family:CMR10"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMBX12"><span style="font-size:10.0pt;font-family:CMBX12"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="2" face="CMBX12"><span style="font-size:10.0pt;font-family:CMBX12">Thanks kate<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>
</div>
<br>
<font face="Arial" color="Maroon" size="2"><br>
The University of Aberdeen is a charity registered in Scotland, No SC013683.<br>
</font>
</body>
</html>