[TRNSYS-users] Component created in FORTRAN doesn't work: Output equal to zero
Tim McDowell
mcdowell at tess-inc.com
Tue Dec 14 08:05:10 PST 2021
José Javier Rubio Rubio -
Your code sets the outputs to 0!
Call SetOutputValue(1, 0.d0) ! Air infiltrations mass rate
Call SetOutputValue(2, 0.d0) ! Amount of goods stored
Regards,
Tim
---
---------------------------
Timothy P McDowell
Executive Vice President
Thermal Energy System Specialists, LLC
3 N Pinckney St, Suite 202
Madison, WI 53703
Phone: 608-274-2577
Cell: 608-225-5250
On 2021-12-14 03:37, RUBIO RUBIO wrote:
> Dear all,
>
> I have created and coded a new Type through the integrated tool of
> FORTRAN in TRNSYS 18 whose purpose is very simple because it is only to
> do a simple mathematical operation. Even though it compiles properly,
> when I start a simulation in TRNSYS, the output from the new Type is
> zero. I have already checked inputs, code and everything but I can
> figure it out. Anyone might help? I coded a new type in the same way
> some time ago and it worked perfectly but this time it is impossible.
> Attached you will find the .f90 for those who want to take a look at
> the code.
>
> Thank you very much in advance,
>
> Best regards,
>
> José Javier Rubio Rubio
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20211214/23261917/attachment.htm>
More information about the TRNSYS-users
mailing list