[TRNSYS-users] calling a private type from another private type

Antoine Gautier antoine.gautier at solamen.fr
Fri Jul 15 23:24:10 PDT 2011


Dear Matt

Thank you very much for your answer.
I am afraid my problems were not of the kind of "Release VS Debug" building mode.

First problem = address error 
I found out that it was related to the subroutine first line statement which cannot accept the standard (TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*) in Trnsys version 17 despite what is stated in §7.3.2 of the user manual (quoting: Every Type begins with the same line: SUBROUTINE TYPEn(TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*).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).

Second problem = storage error
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.

Third problem = invalid floating operation
This mistake comes from the patch version which has been provided to me to overcome the problem with PSYCHROMETRICS routine cf. https://mailman.cae.wisc.edu/pipermail/trnsys-users/2011/008138.html. No error occurs with the standard version. But the standard version has the problem 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. 

Best regards
--
Antoine Gautier
Solamen
+33 6 98 78 56 46
antoine.gautier at solamen.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110716/e594154d/attachment-0001.htm>


More information about the TRNSYS-users mailing list