<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Erik,<br>
      Unfortunately there is not an easy way to do that. You would have
    to modify InterpolateData and I suspect you would have to also add a
    data structure to it so that it was able to store the mins and max,
    then communicate them back to the Type that called it. Its an
    interesting idea and I definitely see the benefit. I will certainly
    add this to the list of requested enhancements.<br>
    Best,<br>
     David<br>
    <br>
    <br>
    On 6/21/2012 08:46, Erik Boschek wrote:
    <blockquote
      cite="mid:1340286380.17230.YahooMailNeo@web120206.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:arial,
        helvetica, sans-serif;font-size:12pt">
        <div style="RIGHT: auto"><span style="RIGHT: auto">Dear David /
            TRNSYS-users,</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">thank you for
            the hint for using DynamicData. That worked and in the mean
            time I have upgraded to version 17.</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">I have
            another question about using what is now called
            InterpolateData. Essentially, I was wondering if it is
            possible to extract directly the mimimum and maximum values
            of the independant variables from the data file being
            interpolated. Obviously, values outside of these ranges are
            not extrapolated. Thus, it would be sometimes be useful to
            use those limits automatically as constraints in the logic
            of the component.<var id="yui-ie-cursor"></var></span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">As a first
            try, I have modified "InterpolateData" to return an array
            containing all these limits - something like:</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <span style="RIGHT: auto"><font face="Consolas" size="2"><font
              face="Consolas" size="2">
              <div>xMinMax(1,1) = X1dd(1,ILUdd)</div>
              <div>xMinMax(1,2) = X1dd(NX1dd,ILUdd)</div>
              <div>.</div>
              <div>.</div>
              <div>.</div>
              <div>xMinMax(6,1) = X6dd(1,ILUdd)</div>
              <div>xMinMax(6,2) = X6dd(NX6dd,ILUdd) </div>
            </font></font></span>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Is there is a
            more straight forward way in which I don't have to modify
            "InterpolateData"? Or am I missing something?</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Thanks,</span></div>
        <div style="RIGHT: auto"><span style="RIGHT: auto"></span> </div>
        <div style="RIGHT: auto"><span style="RIGHT: auto">Erik</span></div>
        <div><br>
        </div>
        <div style="FONT-FAMILY: arial, helvetica, sans-serif;
          FONT-SIZE: 12pt">
          <div style="FONT-FAMILY: times new roman, new york, times,
            serif; FONT-SIZE: 12pt">
            <div dir="ltr"><font face="Arial" size="2">
                <b><span style="FONT-WEIGHT: bold">From:</span></b>
                David BRADLEY <a class="moz-txt-link-rfc2396E" href="mailto:d.bradley@tess-inc.com"><d.bradley@tess-inc.com></a><br>
                <b><span style="FONT-WEIGHT: bold">To:</span></b> Erik
                Boschek <a class="moz-txt-link-rfc2396E" href="mailto:erikboschek@yahoo.com"><erikboschek@yahoo.com></a> <br>
                <b><span style="FONT-WEIGHT: bold">Cc:</span></b>
                <a class="moz-txt-link-rfc2396E" href="mailto:TRNSYS-users@cae.wisc.edu">"TRNSYS-users@cae.wisc.edu"</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:TRNSYS-users@cae.wisc.edu"><TRNSYS-users@cae.wisc.edu></a> <br>
                <b><span style="FONT-WEIGHT: bold">Sent:</span></b>
                Wednesday, May 23, 2012 4:34 PM<br>
                <b><span style="FONT-WEIGHT: bold">Subject:</span></b>
                Re: [TRNSYS-users] DynamicData and Visual Fortran XE
                2011<br>
              </font></div>
            <br>
            <div id="yiv1305625509">
              <div>Erik,<br>
                  We found and fixed this in Trnsys17 when we moved over
                to the IVF compilers. CVF didn't mind if you exited a
                subroutine without deallocating your allocatable arrays
                (it deallocated them for you). IVF is a bit more
                rigorous and forces you do deallocate arrays manually.
                You need to add the following lines to the GROW()
                subroutine in DynamicData<br>
                <br>
                Deallocate(X1TEMPdd)<br>
                Deallocate(X2TEMPdd)<br>
                Deallocate(X3TEMPdd)<br>
                Deallocate(X4TEMPdd)<br>
                Deallocate(LUSTORTEMPdd)<br>
                Deallocate(YDATATEMPdd)<br>
                Deallocate(DATAINTEMPdd)<br>
                Deallocate(IPTTEMPdd)<br>
                <br>
                  Another issue that you may run into is that IVF does
                not like when a function returns without setting a
                return value. CVF was more forgiving about that. You
                will need to go through some of the TrnsysFunctions
                routines and make sure that they always set a return
                value. Again, this is fixed in Trnsys17.<br>
                Best,<br>
                 David<br>
                <br>
                <br>
                On 5/23/2012 06:13, Erik Boschek wrote:
                <blockquote type="cite">
                  <div style="BACKGROUND-COLOR: #fff; FONT-FAMILY:
                    arial, helvetica, sans-serif; COLOR: #000;
                    FONT-SIZE: 12pt">
                    <div>Dear TRNSYS users,</div>
                    <div> </div>
                    <div>I am in the process of migrating to Intel
                      Visual Fortran Composer XE 2011, with VS2010 from
                      CVF6.6 for component development. I'm currently
                      using TRNSYS 16.</div>
                    <div> </div>
                    <div>Generally, with not too many problems I've
                      gotten TRNSYS to compile and a few custom types.</div>
                    <div> </div>
                    <div>However, in the mean time I've run into an
                      issue which seems to be related to calling
                      "DynamicData", which I use quite often.</div>
                    <div> </div>
                    <div>I've found that if I create a simulation wi<var
                        id="yiv1305625509yui-ie-cursor"></var>th more
                      than one call, TRNSYS crashes with a run-time
                      error "severe (151): allocatable array is already
                      allocated" (as attaced screen shot).</div>
                    <div> </div>
                    <div>To check that it wasn't related to my own
                      component, I could also reproduce this simply by
                      e.g. putting two instances of TESS Type581 (multi
                      dimensional interpolation) into an empty project.
                      This never occurs for the basic installed TRNDll
                      or one I've compiled with the old compiler.</div>
                    <div> </div>
                    <div>Is this problem known to anyone and is there a
                      fix? Is the new intel compiler supported or is it
                      known to give problems with TRNSYS? Would this
                      problem disapear using TRNSYS 17?</div>
                    <div> </div>
                    <div>Thanks for any insight,</div>
                    <div> </div>
                    <div>Erik Boschek</div>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                    <div> </div>
                  </div>
                  <br>
                  <fieldset class="yiv1305625509mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre>_______________________________________________
TRNSYS-users mailing list
<a moz-do-not-send="true" class="yiv1305625509moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu" rel="nofollow" target="_blank" ymailto="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a moz-do-not-send="true" class="yiv1305625509moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" rel="nofollow" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
                </blockquote>
                <br>
                <pre class="yiv1305625509moz-signature">-- 
***************************
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 moz-do-not-send="true" class="yiv1305625509moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com" rel="nofollow" target="_blank" ymailto="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>
              </div>
            </div>
            <br>
            <br>
          </div>
        </div>
      </div>
    </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>