<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-1"><meta name=Generator content="Microsoft Word 12 (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;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</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=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear TRNSYS users,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I would like to write a component for TRNSYS 17 which reads its parameters from an external file. In the proforma of my type, I specified a parameter “Logical unit”, linked to the name of the file in the “File” tab.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In the FORTRAN code, at the iteration zero, my type simply use the read instruction as it follows:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b>unit_fichier_sortie = jfix(getParameterValue(4) + 0.1)<o:p></o:p></b></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal><b>! Lecture de la version du fichier<o:p></o:p></b></p><p class=MsoNormal><b>read(unit_fichier_descriptif,*, iostat = erreur_lecture) par_1<o:p></o:p></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>However, instead of reading in the correct file, this instruction reads in a file called “fort.30” (where 30 is the logical unit number assigned by TRNSYS).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>If I write my parameters in “fort.30”, the type reads its parameters correctly. However, I would really like that it reads in the file I specify in the proforma (“exemple.in”)!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>If I debug the code, the function getLUfileName(<b>unit_fichier_descriptif) </b>returns the correct name of the file (example.in). <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Has someone experienced the same kind of problem? For information, I use Compaq Visual Fortran.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thank you for your help!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Marcello CACIOLO</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'><br>Responsable Outils et Méthodes d'Analyse Energétique <br>___________________________________________________ <br><br><img width=176 height=59 id="Image_x0020_1" src="cid:image001.jpg@01CC834F.2D981B60" alt="logo AximaSeitha"><br><b><br></b></span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Cellule Efficacité Energétique</span></b><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'><o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Direction Commerciale</span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'> <br></span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>46 Boulevard de la Prairie au Duc BP 40119<br>44000 Nantes Cédex 2<br>Tel. 02 40 41 06 57</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'><br>mail: <a href="marcello.caciolo@aximaseitha-gdfsuez.com">marcello.caciolo@aximaseitha-gdfsuez.com</a><o:p></o:p></span></p><p class=MsoNormal><u><span style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><br></span></u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'><a href="www.aximaseitha-gdfsuez.com">www.aximaseitha-gdfsuez.com</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-family:Webdings;color:#339966'>P</span><span style='font-size:10.0pt;font-family:Webdings;color:#339966'> </span><b><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:#339966'>Pensez à l'environnement avant d'imprimer ce message</span></b><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div><font face="monospace"><br>
<br>
<br>
GDF SUEZ Mail Disclaimer: http://www.gdfsuez.com/disclaimer/disclaimer-fr.html<br>
<br>
</font></body></html>