<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=Big5" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Chun Kwong,<br>
 Its hard to know the problem without looking at the source code of
your Type245. However, I would guess that the problem lies in one of
the following three places:<br>
<br>
1. INFO(6) might not have been set properly or the call . INFO(6)
should be set to the total number of outputs that your model produces.<br>
<br>
2. After setting INFO(6), your Type should call TYPECK with the first
argument set to 1: CALL TYPECK(1,INFO,...)<br>
<br>
3. the RCHECK subroutine may not be getting called correctly. You
should have a statement like the following:<br>
<br>
DATA OCHECK/'TE1','MF1','PW1','PW1','PW1'/ <br>
<br>
in which there are as many arguments (three digit codes in single
quotes separated by commas) as there are outputs. The three digit codes
correspond to the units of your outputs. TE1 means temperature in
degrees C, MF1 means mass flow rate in kg/h. If you are interpolating
generic data, you can use 'DM1' indicating that the output is
dimensionless.<br>
<br>
after the data statement you should have a line like:<br>
<br>
CALL RCHECK(INFO,YCHECK,OCHECK)<br>
<br>
Best,<br>
 David<br>
 <br>
<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:a8304506@graduate.hku.hk">a8304506@graduate.hku.hk</a> wrote:
<blockquote cite="mid:1267151552.4b8732c0cb303@imp3.webmail.hku.hk"
 type="cite">
  <pre wrap="">Hello.

When I try to test a multi-dimensional linear interpolator (Type245) written by
myself (see attached file), I get the following error after the first time
step:

"The listed input referenced an output number beyond the allocated outputs for
the connected type.
Unit 3 Type 25 Input 4 Connected to Unit 5 Type 245 Output 1"

The results for the first time step are correct.  However, if I remove the
connection between the interpolator and the online printer, no error is found. 
Can anyone advise what is the cause for the error?  Thank you!

P.S. I also try to use Type581a, but again with error.

Best Regards
LEE, Chun Kwong
Division of Building Science and Technology
City University of Hong Kong

  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      22 N. Carroll Street - Suite 370 
Partner                            Madison, WI 53703 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:bradley@tess-inc.com">bradley@tess-inc.com</a> 
Web Pages:  <a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>    and      <a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a>

***********************************************************************</pre>
</body>
</html>