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@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@tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com