[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
Sarah,
I use TYPE19 single zone , and I did as exemple5 but when I run the
simulation, I have the message “range check error” can you tell me how I
can solve this problem.
A range check error is generated when an array goes out of bounds.
Unfortunately, as mentioned in previous replies to this list, it is not
always easy to find out which array causes the problem.
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
You can also try to identify the component that causes the problem by
removing components one after each other (but in your case you will have
problems with Type 19, which requires a combination of several IISiBat
components). You said "I did as example 5". I assume you modified
something in Example 5, so you can start again from example 5 and try to
identify the modification that causes the problem.
Finally, here are some frequent causes of range check errors (in case
the problem is not related to Type 19):
- 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 a11 nodes, sometimes the component does not catch the
error and you get a range check error)
I hope this helps
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