[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem with "Range Check Error"



Dear Dr Michaël Kummert

Thanks a lot and I will try with your advice.

Apple Chan
6 Feb. 2003

>Date: Wed, 05 Feb 2003 09:01:27 -0600
>From: Michaël Kummert <kummert@engr.wisc.edu>
>Subject: RE: Problem with "Range Check Error"
>Sender: owner-trnsys@relay.doit.wisc.edu
>To: trnsys@relay.doit.wisc.edu
>Reply-to: trnsys@relay.doit.wisc.edu
>Organization: Solar Energy Lab, UW-Madison
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
>X-MIME-Autoconverted: from quoted-printable to 8bit by
brooks.doit.wisc.edu id
> h15F0Wm16212
>X-Mailer: Microsoft Outlook, Build 10.0.4510
>Importance: Normal
>X-MSMail-priority: Normal
>
>Dear Apple Chan,
>
>A range check error is generated when an array goes out of bounds.
>Unfortunately, as mentioned in previous replies, it is not always easy to
>find out which array causes the problem.
>
>Here are some frequent causes of range check errors:
>
>- Equation with missing right side
>  Example:
>  EQUATIONS 3
>  VAR1 = 10
>  VAR2 =
>  VAR3 = 20
>  
>- Attempt to use an output number in an equation without using the brackets
>  EQUATIONS 2
>  VAR1 = [1,1]*10.0  ! OK
>  VAR2 = 10.0+1,1    ! INCORRECT
>
>Other typical mistakes leading to range check errors are related to maximum
>number of nodes (e.g. if a component allows up to 10 nodes and you try using
>11 nodes, sometimes the component does not catch the error and you get a
>range check error)
>
>If you have a Fortran debugger, you can use it to track the problem. If you
>are using Compaq Visual Fortran, make sure to set your debugger to stop when
>this kind of error occurs.
>To do so: 
>- Open the TRNSYS project in CVF. 
>- Press F11 (Step into) to start debugging 
>  the program and stop at the first instruction. 
>- Go to Debug/Exceptions
>- Select all exceptions, check "Stop always" and 
>  click OK
>- Press SHIFT+F5 to abort the program
>- Press F5 again to enter the program in Debug 
>  mode without stopping at the first instruction
>
>Finally, please let us know if you find the problem, we will try to fix that
>in a future release.
>
>Michaël Kummert
>
>_________________________________________________________
>
>Michaël Kummert
>
>Solar Energy Laboratory - University of Wisconsin-Madison
>1303 Engr Res Bldg, 1500 Engineering Drive
>Madison, WI 53706
>
>Tel: +1 (608) 263-1589
>Fax: +1 (608) 262-8464
>E-mail: kummert@engr.wisc.edu
>
>SEL Web Site: http://sel.me.wisc.edu 
>TRNSYS Web Site: http://sel.me.wisc.edu/trnsys
>
>
>> -----Original Message-----
>> From: owner-trnsys@relay.doit.wisc.edu 
>> [mailto:owner-trnsys@relay.doit.wisc.edu] On Behalf Of Apple Chan
>> Sent: Wednesday, February 05, 2003 00:22
>> To: trnsys@relay.doit.wisc.edu
>> Subject: Problem with "Range Check Error"
>> 
>> 
>> Dear Sirs
>> 
>> In running my TRNSYS simulation, there is a message "Range 
>> Check Error" appeared.  The simulation cannot start and there 
>> is no any information that can be found in the LIST file or 
>> the user manual.  I have gone through my input file and 
>> cannot find any mistake.  Is there anyone who has this 
>> experience before and can provide help please?
>> 
>> Many thanks,
>> 
>> Apple Chan
>> 5 Feb. 2003
>> 
>
>