[TRNSYS-users] need help with type creation
David BRADLEY
d.bradley at tess-inc.com
Wed May 22 09:48:11 PDT 2019
Sam,
The IF statement you are looking for is already in the template code:
!-----------------------------------------------------------------------------------------------------------------------
!Do Any Last Call Manipulations Here
If(getIsLastCallofSimulation()) Then
put your Type's calculations here.
Return
EndIf
!-----------------------------------------------------------------------------------------------------------------------
kind regards,
David
On 05/22/2019 03:49, Sam Elyas via TRNSYS-users wrote:
> Dear all,
>
> I created a type that calculates the life-cycle cost of a project, but
> the calculations are performed uselessly at each time step.
>
> I need to add an "IF statement" that forces the type to perform the
> calculations at the last time step of the simulation.
>
> Any guidance ?
>
> P.S. The code is in Fortran
>
> Thank you
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>
--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190522/0a6e8143/attachment.htm>
More information about the TRNSYS-users
mailing list