I forgot to change something in your code, now it's all right =)<br><br><div class="gmail_quote">On 13 July 2010 02:03, Jaime Gonzalez Rodriguez <span dir="ltr"><<a href="mailto:gonzalezro.jaime@gmail.com">gonzalezro.jaime@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">well, you just have to find the code of the type you wanna change, for instance type212.for or whatever...then, as David said you have to change the parameter to input, I'll do it in the code that you pasted before so that you can see an example, anyway my trnsys  function library seems to be kind of different to yours, but this should work.</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial">Other topic is how to recompile it, I guess you should create a project and set the right options to the compiler, you've got two options.</font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial">1. Copy the options of the project that trnsys created for you with the type you have built before, those options should be the same</font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial">2. Create a new component, create the .tmf with the number of parameters, inputs and outputs that you want, and then copy and paste the code, be carefull with this, don't paste the part where you define the number of parameters or the part with the type number, just the core of the code, I mean, the part where you carry out the calculations. </font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial">I preffer the option 2 because I am too lazy to fight with windows compilers, but the first option might be better.</font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial"><br></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Arial">When I started programming types I didn't remember much about fortran cuz I was programming C and other languages (mostly matlab which is the easiest) for a long time and I had forgotten almost everything from university, it was a nice exercise to read a code of a type and try to understand everything. If I were you I'd try so.</font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial"><br></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font face="Arial">Regards and good luck with fortran =)</font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Arial"><br>
</font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"><br></span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">-------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!Do All of the "Very First Call of the Simulation Manipulations" Here</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      If(getIsFirstCallofSimulation()) Then</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        !Tell the TRNSYS Engine How This Type Works</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        !Call SetNumberofParameters(1)           !The number of parameters that the the model wants</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        <font color="#3366FF">Call SetNumberofParameters(0)</font>           !The number of parameters that the the model wants</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        !Call SetNumberofInputs(1)                   !The number of inputs that the the model wants</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        <font color="#3366FF">Call SetNumberofInputs(2)</font>                   !The number of inputs that the the model wants</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetNumberofDerivatives(0)         !The number of derivatives that the the model wants</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetNumberofOutputs(1)                 !The number of outputs that the the model produces</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetIterationMode(1)                             !An indicator for the iteration mode (default=1).  Refer to section 8.4.3.5 of the documentation for more details.</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetNumberStoredVariables(0,0)                   !The number of static variables that the model wants stored in the global storage array and the number of dynamic variables that the model wants stored in the global storage array</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetNumberofDiscreteControls(0)               !The number of discrete control functions set by this model (a value greater than zero requires the user to use Solver 1: Powell's method)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Return</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      EndIf</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!-----------------------------------------------------------------------------------------------------------------------</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!-----------------------------------------------------------------------------------------------------------------------</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!Do All of the First Timestep Manipulations Here - There Are No Iterations at the Intial Time</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      If (getIsFirstTimestep()) Then</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"><font color="#CC0000">      !par = getParameterValue(1) I comment this line cuz u won't need it anymore</font></span></font></p>
<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      <font color="#3366FF">inp1 = GetInputValue(1)</font></span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"><font color="#3366FF"><span style="color:rgb(0, 0, 0)">      <font color="#3366FF">inp2 = GetInputValue(2)</font></span></font></span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">           </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Check the Parameters for Problems (#,ErrorType,Text)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Sample Code: If( PAR1 <= 0.) Call FoundBadParameter(1,'Fatal','The first parameter provided to this model is not acceptable.')</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Set the Initial Values of the Outputs (#,Value)</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Call SetOutputValue(1, 0) ! opt</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !If Needed, Set the Initial Values of the Static Storage Variables (#,Value)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Sample Code: SetStaticArrayValue(1,0.d0)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !If Needed, Set the Initial Values of the Dynamic Storage Variables (#,Value)</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Sample Code: Call SetDynamicArrayValueThisIteration(1,20.d0)</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !If Needed, Set the Initial Values of the Discrete Controllers (#,Value)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">   !Sample Code for Controller 1 Set to Off: Call SetDesiredDiscreteControlState(1,0)</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        Return</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      EndIf</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!-----------------------------------------------------------------------------------------------------------------------</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!-----------------------------------------------------------------------------------------------------------------------</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!ReRead the Parameters if Another Unit of This Type Has Been Called Last</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      If(getIsReReadParameters()) Then</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                        !Read in the Values of the Parameters from the Input File</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"><font color="#CC0000">      !par = getParameterValue(1) Since you don't have parameters you won't need this neither</font></span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                       </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      EndIf</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!-----------------------------------------------------------------------------------------------------------------------</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">!Read the Inputs</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      <font color="#3366FF">inp1 = GetInputValue(1)</font></span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"><font color="#3366FF">      inp2 = GetInputValue(2)</font></span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">                       </span></font></p>
<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">            !Check the Inputs for Problems (#,ErrorType,Text)</span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">            !Sample Code: If( IN1 <= 0.) Call FoundBadInput(1,'Fatal','The first input provided to this model is not acceptable.')</span></font></p>

<p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial"> </span></font></p><p class="MsoNormal" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">

<font size="2" face="Arial"><span style="font-size:10pt;font-family:Arial">      If(ErrorFound()) Return</span></font></p></span><div><br></div><div><br></div><div><br></div><div><font color="#CC0000">!     finally where you calculated the value of the formula you should change PAR1 for IN2</font></div>

<div><span style="font-family:Arial;font-size:13px;border-collapse:collapse">      <font color="#3366FF">OUT1=IN1+IN2</font></span></div><div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">!    DON'T FORGET TO ADD THE DECLARATION OF THE VARIABLE IN2 AND DELETE THE DECLARATION OF PAR1</font></span></div>

<div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">!    Note: As far as you declare the variables you can call them with any name you want, it does not have to be</font></span></div>

<div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">Double IN1 </font></span></div><div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">Double IN2</font></span></div>

<div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">it could be </font></span></div><div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">Double SPAINWORLDCHAMPIONS </font></span></div>

<div><span style="font-family:Arial;font-size:13px;border-collapse:collapse"><font color="#CC0000">Double whatever</font></span></div><div><div></div><div class="h5"><div><br></div><div><br></div>
<div><br></div><div><br></div><br><div class="gmail_quote">On 12 July 2010 21:04, Mehdi Shahrestani <span dir="ltr"><<a href="mailto:mahdishahrestani@yahoo.com" target="_blank">mahdishahrestani@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

















<div bgcolor="white" lang="EN-GB" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">Dear David </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue"> </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">Thanks for your reply </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">To be honest I try to change the script
but I don’t know how I can recompile the edited file.</span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">I was wondering if you could give me some
hints about recompiling an edited fortran file.</span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue"> </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">Regards</span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue">Mehdi Shahrestani</span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue"> </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue"> </span></font></p>

<p class="MsoNormal"><font size="3" color="blue" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:blue"> </span></font></p>

<div>

<div class="MsoNormal" align="center" style="text-align:center"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:windowtext">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold">From:</span></font></b><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;color:windowtext"> David Bradley
[mailto:<a href="mailto:bradley@tess-inc.com" target="_blank">bradley@tess-inc.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> 12 July 2010 18:16<br>
<b><span style="font-weight:bold">To:</span></b> mehdi<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:trnsys-users@cae.wisc.edu" target="_blank">trnsys-users@cae.wisc.edu</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [TRNSYS-users]
Changing a parameter to input in components</span></font><font color="black"><span lang="EN-US" style="color:windowtext"></span></font></p>

</div><div><div></div><div>

<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt">Mehdi,<br>
  In addition to changing the proforma, you also need to modify and
recompile the Fortran code of the Type and change the number of parameters and
inputs that it expecting to be passed.<br>
Best,<br>
 David<br>
<br>
<br>
On 7/11/2010 17:37, mehdi wrote: </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">Hello everybody </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">I have a question about changing a
“Parameter” into “Input” in components.</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">For example in a pipe component, I have changed one
of parameters to input (in Performa) but after run there were two errors
mentioned that</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">There is one missed parameter and one more than
normal input.</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">I think there should be a way to solve such a
problem. </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">I was wondering if anybody could give some advice.</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">Regards</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial">Mehdi Shahrestani</span></font></p>

<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial"> </span></font></p>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"> </span></font></pre><pre><fieldset></fieldset><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"> </span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">_______________________________________________</span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">TRNSYS-users mailing list</span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"><a href="mailto:TRNSYS-users@cae.wisc.edu" target="_blank">TRNSYS-users@cae.wisc.edu</a></span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"><a href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users" target="_blank">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</a></span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">  </span></font></pre>

<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br>
</span></font></p>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">-- </span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">***************************</span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">David BRADLEY</span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">Principal</span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">Thermal Energy Systems Specialists, LLC</span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">22 North Carroll Street</span></font> - suite 370</pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">Madison</span></font>, WI  53703 USA</pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"> </span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">P:+1.608.274.2577</span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt">F:+1.608.278.1475</span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"><a href="mailto:bradley@tess-inc.com" target="_blank">bradley@tess-inc.com</a></span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"> </span></font></pre>

<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"><a href="http://www.tess-inc.com" target="_blank">http://www.tess-inc.com</a></span></font></pre><pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt"><a href="http://www.trnsys.com" target="_blank">http://www.trnsys.com</a></span></font></pre>

</div></div></div>

</div>


<br>_______________________________________________<br>
TRNSYS-users mailing list<br>
<a href="mailto:TRNSYS-users@cae.wisc.edu" target="_blank">TRNSYS-users@cae.wisc.edu</a><br>
<a href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users" target="_blank">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br></div></div>Jaime. González Rodríguez<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jaime. González Rodríguez<br>