<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-9"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Ali<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You define your file &#8216;u&#8217; as integer which is wrong. It has to be defined as character.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Integers are numbers, but file names are characters.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Something else<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In the command,  </span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>read</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:gray'>(</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>u<span style='color:gray'>,*)</span> n , <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>You have not defined n </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and this may cause other error. </span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Good luck,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kostas Eleftheratos<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>Ali Demir<br><b>Sent:</b> Tuesday, November 27, 2012 9:23 PM<br><b>To:</b> gradsusr@gradsusr.org<br><b>Subject:</b> [gradsusr] Fortran Code<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br>&nbsp;<o:p></o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><hr size=2 width="100%" align=center id=stopSpelling></span></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Dear All,<br>I keep on my doctorate program.Grads is one of softwares which will be used on my studies.<br>My fortran code to open and&nbsp; see files extended &quot;dat&quot; is below,but ż cant open file extented dat,,any idea?&nbsp;<br>Thanks for your assistance.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Regards,<br>Ali Demir KESKŻNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='color:green'><o:p></o:p></span></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:green'>program points<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>integer</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> nmax<span style='color:gray'>,</span> u<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>parameter</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:gray'>(</span>nmax<span style='color:gray'>=</span>1000<span style='color:gray'>,</span> u<span style='color:gray'>=</span>20<span style='color:gray'>)</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>real</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> x<span style='color:gray'>(</span>nmax<span style='color:gray'>),</span> y<span style='color:gray'>(</span>nmax<span style='color:gray'>),</span> z<span style='color:gray'>(</span>nmax<span style='color:gray'>)</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>open</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:gray'>(</span>u<span style='color:gray'>,</span> FILE<span style='color:gray'>=</span><span style='color:fuchsia'>'points.dat'</span><span style='color:gray'>,</span> STATUS<span style='color:gray'>=</span><span style='color:fuchsia'>'OLD'</span><span style='color:gray'>)</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>read</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:gray'>(</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>u<span style='color:gray'>,*)</span> n<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>if</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:gray'>(</span>n<span style='color:gray'>.</span><span style='color:blue'>GT</span><span style='color:gray'>.</span>nmax<span style='color:gray'>)</span> <span style='color:blue'>then</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>write</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:gray'>(*,*)</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:fuchsia'>'Error: n = '</span><span style='color:gray'>,</span> n<span style='color:gray'>,</span> <span style='color:fuchsia'>'is larger than nmax ='</span><span style='color:gray'>,</span> nmax<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>goto</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 9999<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>end</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:blue'>if</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>do</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> 10 i<span style='color:gray'>=</span> 1<span style='color:gray'>,</span> n<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>read</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:gray'>(</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>u<span style='color:gray'>,</span>100<span style='color:gray'>)</span> x<span style='color:gray'>(</span>i<span style='color:gray'>),</span> y<span style='color:gray'>(</span>i<span style='color:gray'>),</span> z<span style='color:gray'>(</span>i<span style='color:gray'>)</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>10</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:blue'>end</span> <span style='color:blue'>do</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>100</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:blue'>format</span> <span style='color:gray'>(</span>3<span style='color:gray'>(</span>F10<span style='color:gray'>.</span>4<span style='color:gray'>))</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>close</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <span style='color:gray'>(</span>u<span style='color:gray'>)</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>9999</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> stop<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue'>end</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></p></div></div></div></body></html>