<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Marcello,<br>
TRNSYS should be giving you an error saying that the syntax of the
equation is incorrect in all of those cases. The correct syntax of
the MAX function is:<br>
<br>
result = MAX(x,y)<br>
<br>
Thanks for catching that the syntax checking is not sufficient. I
will ask the elves to put it on the bug list.<br>
Best,<br>
Santa Claus<br>
<br>
<br>
<div class="moz-cite-prefix">On 12/23/2014 08:55,
<a class="moz-txt-link-abbreviated" href="mailto:marcello.caciolo@cofelyaxima-gdfsuez.com">marcello.caciolo@cofelyaxima-gdfsuez.com</a> wrote:<br>
</div>
<blockquote
cite="mid:04CA342531975549B5B81CCAECBCAC100A61740647@xs203439.MELINDA.LOCAL"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Webdings;
panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
{font-family:"MS Sans Serif";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Dear TRNSYS users,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Christmas approaches,
and we found an amazing issue concerning TRNSYS equations
that we would like to share with you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">A day, we created a new
equation in TRNSYS, taping (by error) the following
expression :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"MS Sans
Serif"" lang="EN-US">new = max(12),7<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"MS Sans
Serif"" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">you could think that
TRNSYS reports an error…but you are wrong : the result was
12 (try to plot it !)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We was just thinking
that TRNSYS is so smart that it corrects our error, when we
had a doubt. We tried to change the expression in :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"MS Sans
Serif"" lang="EN-US">new = (max(12),7)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">and in this case, TRNSYS
crashed giving us a horrible statement : “forrtl : severe
(408): fort: (3) : Subscript #1 of the array STACK has value
0 which is less than the lower bound of 1”…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But variety is the spice
of live, than we tried another expression again : <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"MS Sans
Serif"" lang="EN-US">new = 0*(max(12),7)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"MS Sans
Serif"" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You can imagine how we
were surprised when TRNSYS plotted a constant value of…84
!!!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Definitely, we decided
to write a letter to Santa Claus to help us to solve this
riddle…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Merry Christmas to the
TRNSYS group!<o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-family:"Tahoma","sans-serif";color:#58595B">Marcello
Caciolo</span></b><span
style="font-family:"Tahoma","sans-serif";color:#58595B"><br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma","sans-serif";color:#58595B">Responsable
Outils et Méthodes d'Analyse Energétique</span><span
style="font-family:"Tahoma","sans-serif";color:#58595B"><o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray"><img
id="Image_x0020_1"
src="cid:part1.05030506.08020009@tess-inc.com"
alt="cid:image003.jpg@01CD4E08.954D04D0" height="62"
width="170"></span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray"
lang="EN-US"><br>
<b><br>
</b>C</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray">ellule
Efficacité Energétique et Environnementale - Pôle Projets et
Réalisations<br>
46 Boulevard de la Prairie au Duc<br>
BP 40119 - 44201 Nantes Cedex 02</span><span
style="font-size:9.0pt;font-family:"Tahoma","sans-serif""><br>
</span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray">Tél.:
+33 02 40 41 06 57</span><span
style="font-size:9.0pt;font-family:"Tahoma","sans-serif""><br>
<a moz-do-not-send="true"
href="mailto:prenom.nom@aximaseitha-gdfsuez.com">marcello.caciolo@cofelyaxima-gdfsuez.com</a></span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:Webdings;color:#339966">P</span><span
style="font-size:10.0pt;font-family:Webdings;color:#339966">
</span><b><span
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#339966">Pensez
à l'environnement avant d'imprimer ce message</span></b><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<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>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
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>