<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Christoph,</p>
    <p>  Sorry for the delay in responding about this. I have not dug
      into the problem yet but could you please tell me which version of
      Trnsys you are using?</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 08/17/2020 03:45, Christoph Buettner
      via TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:kcEE.vyJwkObAS0KSUnqU81KvUg.ALadunJ01gE@hermes.intern.isfh.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1116019372;
        mso-list-type:hybrid;
        mso-list-template-ids:643485150 67567631 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</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">Dear TRNSYS-users,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">accordingly to TRNSYS
            Volume 6 TRNEdit, we can use the functions eqwarn, gtwarn,
            gewarn and newarn to generate a notice, warning or error
            (set as third argument), after first and second
            expression/argument are compared. (The description in the
            documentation is quite wrong, the error is generated if
            function is TRUE)<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">I’m using this function
            to stop early simulations and reduce processing time e.g.
            after a temperature is too often too low.<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">I got some problems with
            this.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">1.<span
                style="font:7.0pt "Times New Roman"">       </span></span></span><!--[endif]--><span
            lang="EN-US">The functions generate an error, even if I set
            the third argument to  0 or 1 for notice or warning.<o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            lang="EN-US"><span style="mso-list:Ignore">2.<span
                style="font:7.0pt "Times New Roman"">       </span></span></span><!--[endif]--><span
            lang="EN-US">The function compares all iteration of a
            timestep. This means, even if the comparison of two values
            at the END of a timestep is FALSE, it generate the error.<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">Regarding Point 1: <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The SourceFile Eval.f90
            has a part for Fatal and Warning: I think a change of the
            second FATAL to WARNING should work, but where is the notice
            Part?<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">Case (33) !eqwarn<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">    If (stack(top) ==
            stack(top+1)) Then<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">       stack(top) = 1.d0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                   If
            (stack(top+2) > 1.5) Then<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">          Call
            Messages(617,atemp,'FATAL',-1,-1) !Generate an error message<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                     
            eval = -99999.d0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                     
            Return<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                  
            ElseIf (stack(top+2) > 0.5) Then<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">          Call
            Messages(617,atemp,'FATAL',-1,-1) !Generate an error message<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                     
            eval = -99999.d0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                   
              Return<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">       EndIf<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">    Else<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">       stack(top) = 0.d0<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">    EndIf<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">Regarding Point 2: <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">How can the calculation
            of an Equation be done only at the end of a timestep (like a
            Printer)?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Right now I’m using the
            saved values of last timestep, but maybe it’s possible to
            set the calculation of these warn-function to “After
            Convergence”? Every Type has this “If(getIsEndOfTimestep())
            Then”-Part.<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">I’m grateful for any
            ideas.<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">Chris<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:10.0pt;font-family:Consolas;color:#17365D;mso-fareast-language:DE">________________________________________________________________</span><span
            style="color:#17365D;mso-fareast-language:DE"><o:p></o:p></span></p>
        <p class="MsoNormal"
          style="margin-left:35.4pt;text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE">M.Sc.
            Christoph Büttner<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE">Abteilung
            Solare Systeme<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><i><span
              style="color:#17365D;mso-fareast-language:DE">Solar
              systems department<o:p></o:p></span></i></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="color:#17365D;mso-fareast-language:DE">Arbeitsgruppe Thermische
            Energiesysteme<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><i><span
              style="color:#17365D;mso-fareast-language:DE">Workgroup
              Thermal Energy Systems<o:p></o:p></span></i></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Institut
            für Solarenergieforschung GmbH <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Am
            Ohrberg 1 <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">D-31860
            Emmerthal <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Phone:
            +49 (0) 5151 999 647<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"
            lang="EN-US">Fax: +49 (0) 5151 999 400 <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"
            lang="EN-US">eMail: </span><u><span
              style="font-size:10.0pt;color:blue;mso-fareast-language:DE"
              lang="EN-US"><a href="mailto:ch.buettner@isfh.de"
                moz-do-not-send="true"><span style="color:#0563C1">ch.buettner@isfh.de</span></a></span></u><span
style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"
            lang="EN-US">  <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Internet:
            <a href="http://www.isfh.de/" moz-do-not-send="true"><span
                style="color:#0563C1">www.isfh.de</span></a>  <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Handelsregister:
            Amtsgericht Hannover HRB 100547 <o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Geschäftsführer:
            Prof. Dr. Rolf Brendel <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;color:#17365D;mso-fareast-language:DE">Vorsitzender
            des Aufsichtsrats: Ministerialrat Dr. Sebastian Huster</span><i><span
              style="color:#0033CC;mso-fareast-language:DE"><o:p></o:p></span></i></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:#17365D;mso-fareast-language:DE">________________________________________________________________</span><span
            style="color:#17365D;mso-fareast-language:DE"><o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <small>¥2019 ISFH [1546297200]</small>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <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>