<html><body><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 size=2 face=Consolas><FONT size=2 face=Consolas>
<div>xMinMax(1,1) = X1dd(1,ILUdd)</div>
<div>xMinMax(1,2) = X1dd(NX1dd,ILUdd)</div>
<div></div>
<div></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 size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> David BRADLEY <d.bradley@tess-inc.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Erik Boschek <erikboschek@yahoo.com> <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> "TRNSYS-users@cae.wisc.edu" <TRNSYS-users@cae.wisc.edu> <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 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 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 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>

http://www.tess-inc.com
http://www.trnsys.com</PRE></DIV></DIV><BR><BR></DIV></DIV></div></body></html>