<br />Dear Antoine,<br /><br />The version 16 source coding standard as you provided does indeed work with version 17. You will notice that most of the TESS Component Libraries are still coded that way.<br /><br />My adivce with the component that uses PSYCH is that you need to sometimes TRACE the component to determine what is going into and coming out of the component. This usually determines that something in the simulation that is going wrong.<br /><br />Best regards,<br /><br />Matt Duffy<br /><br /><!--replyfwdwrap--><div style="background-image: url(http://webmail.fusemail.com/de/r_bg_img.gif); background-repeat: repeat-x; background-position: 50% top"><strong>----- Original Message -----</strong><br /><strong>From:</strong> "Antoine Gautier" <antoine.gautier@solamen.fr> <br /><strong>Sent:</strong> Sat, July 16, 2011 1:24<br /><strong>Subject:</strong> Re: calling a private type from another private type<br /><br /><table cellspacing="5" width="100%">!
 <tbody><tr><td><div class="PrivateMsgDiv"><!-- begin sanitized html --><div class="bodyclass">Dear Matt <div><br /> </div><div>Thank you very much for your answer.</div><div>I am afraid my problems were not of the kind of "Release VS Debug" building mode.</div><div><br /> </div><div>First problem = address error </div><div>I found out that it was related to the subroutine first line statement which cannot accept the standard <span style="font-family: 'Courier New'; font-size: 9px" class="Apple-style-span">(TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*) </span>in Trnsys version 17 despite what is stated in §7.3.2 of the user manual (quoting: <span style="font-family: Arial; font-size: 10px" class="Apple-style-span">Every Type begins with the same line: </span><span style="font-family: 'Courier New'; font-size: 9px" class="Apple-style-span"><span style="color: #2c2cf6">SUBROUTINE </span>TYPEn(TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*).<span st!
 yle="font-family: Helvetica; font-size: medium" class="Apple-style-spa
n">This is obviously aimed at version 16 and not compatible with version 17 from my experience (at least with the version 17 I was using: see below).</span></span></div><div><br /> </div><div>Second problem = storage error</div><div>I called a subroutine that had its own storage array and this was touchy: I have not found the correct strategy here so I resorted to including the whole storage management code in the main subroutine. This works fine but if you have any better advice on that point I will be grateful.</div><div><br /> </div><div>Third problem = invalid floating operation</div><div>This mistake comes from the patch version which has been provided to me to overcome the problem with PSYCHROMETRICS routine cf. <a target="_new" href="https://mailman.cae.wisc.edu/pipermail/trnsys-users/2011/008138.html">https://mailman.cae.wisc.edu/pipermail/trnsys-users/2011/008138.html</a>. No error occurs with the standard version. But the standard version has the pro!
 blem with PSYCHROMETRICS routine so I am kind of stuck here. What I do not know though is if the corrected version is more strict on certain rules that my component does not comply with or if it just erroneous. </div><div><br /> </div><div>Best regards</div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="wo!
 rd-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: aft
er-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: !
 after-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-bre!
 ak: after-white-space"><span style="text-transform: none; text-indent:
 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><span style="text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Helvetica; white-space: normal; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><font class="Apple-style-span" size="3"><spa!
 n style="font-size: 12px" class="Apple-style-span"><font class="Apple-style-span" color="#797979">--<br />Antoine Gautier<br />Solam</font><font class="Apple-style-span" color="#28d32a">en</font><font class="Apple-style-span" color="#797979"><br />+33 6 98 78 56 46</font></span></font></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><font class="Apple-style-span" size="3"><span style="font-size: 12px" class="Apple-style-span"><font class="Apple-style-span" color="#797979"><a target="_new" href="mailto:antoine.gautier@solamen.fr">antoine.gautier@solamen.fr</a><br /></font></span></font></div></span></div></span></div></span></div></span></div></span></div></span></div></span></div></div></div></div><br /> </div></div><!-- end sanitized html --></div></td></tr></tbody></table></div>