<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Sam,</p>
<p> The IF statement you are looking for is already in the template
code:</p>
<p>!-----------------------------------------------------------------------------------------------------------------------<br>
!Do Any Last Call Manipulations Here<br>
If(getIsLastCallofSimulation()) Then</p>
<p> put your Type's calculations here.<br>
</p>
<p> Return<br>
EndIf<br>
!-----------------------------------------------------------------------------------------------------------------------<br>
</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 05/22/2019 03:49, Sam Elyas via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:45c5915c-e92f-bc44-72da-abd77e804d26@gmail.com">Dear
all,
<br>
<br>
I created a type that calculates the life-cycle cost of a project,
but the calculations are performed uselessly at each time step.
<br>
<br>
I need to add an "IF statement" that forces the type to perform
the calculations at the last time step of the simulation.
<br>
<br>
Any guidance ?
<br>
<br>
P.S. The code is in Fortran
<br>
<br>
Thank you
<br>
<br>
_______________________________________________
<br>
TRNSYS-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
<br>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
***************************
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
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>