<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>Hi David,</FONT></DIV>
<DIV><FONT face=Arial
size=2>
The error with The Powell's method not working is occuring at Line 99 in
Type109.f90</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> do
iunit=1,maxu+1 ! FIGURE OUT WHICH OF
THE TYPE9 UNITS THIS IS<BR>
if(unit(iunit) == info(1)) exit<BR>
enddo<BR> if (iunit>maxu) goto 750
!ERROR</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>From the code above it seems that the loop causing
iunit to increase upto maxu+1. Then after the loop a check is performed to see
if iunit>maxu which raises the error. I am not sure why this is not happening
for solver 0.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Krishna</DIV>
<DIV><BR></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dbradley@engr.wisc.edu href="mailto:dbradley@engr.wisc.edu">David
Bradley [SEL]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=krishna@cdhenergy.com
href="mailto:krishna@cdhenergy.com">Krishna</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=trnsys-users@engr.wisc.edu
href="mailto:trnsys-users@engr.wisc.edu">trnsys-users@engr.wisc.edu</A> ; <A
title=daarias@wisc.edu href="mailto:daarias@wisc.edu">Diego ARIAS</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 25, 2005 10:50
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [TRNSYS-users] Solver 1
Error</DIV>
<DIV><BR></DIV>Krishna,<BR> I have just done some testing and I do not
find any problems running a SOLVER 1 simulation that contains Type109.
In looking at the Type109 code, it would appear that you can get Error139 if
you exceed the maximum number of Type109 instances in a given simulation. By
default you are able to have 10 instances of Type109. If you would like to
send me the input file that is giving you trouble, I would be happy to take a
look at it. You can email it and any accompanying data files to <A
class=moz-txt-link-abbreviated
href="mailto:dbradley@engr.wisc.edu">dbradley@engr.wisc.edu</A>.<BR>Kind
regards,<BR> David<BR><BR>Krishna wrote:
<BLOCKQUOTE cite=mid01bf01c58e41$6f7cde80$1900000a@Sim type="cite">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face=Arial size=2>Could any one let me know if Type 109 weather
data is compatible with Powell method (Solver 1). When I run the simulation
the program crashes and I get the following error in the list
file.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>***** ERROR
***** TRNSYS ERROR #
139<BR> UNIT 109 TYPE 109 NOT FOUND IN PROGRAM MEMORY.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> This simulation runs fine with Solver
2.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thank you,</FONT></DIV>
<DIV><FONT face=Arial size=2>Krishna</FONT></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
TRNSYS-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:TRNSYS-users@engr.wisc.edu">TRNSYS-users@engr.wisc.edu</A>
<A class=moz-txt-link-freetext href="https://www.cae.wisc.edu/mailman/listinfo/trnsys-users">https://www.cae.wisc.edu/mailman/listinfo/trnsys-users</A>
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">--
David BRADLEY
TRNSYS Engineer
Solar Energy Laboratory - University of Wisconsin, Madison
1500 Engineering Drive
Madison, WI 53706
United States
ph: +1 608 263 1589
fax: +1 608 262 8464
email: <A class=moz-txt-link-abbreviated href="mailto:dbradley@engr.wisc.edu">dbradley@engr.wisc.edu</A></PRE></BLOCKQUOTE></BODY></HTML>