Post Reply 
Pipe Flow - Open Channel Flow
01-07-2017, 01:11 AM
Post: #3
RE: Pipe Flow - Open Channel Flow
The original program was revised to print out an error message if the flow rate exceeds the capacity of the pipe for open channel flow as was done in the original FORTRAN program.

I had previously stated that I could not figure out how to print an error statement because there was no GOTO statement in the HP Prime. This problem was discussed in the following post.

http://www.hpmuseum.org/forum/thread-7203.html

The solution was to use an IF statement with a BREAK(2) statement. The “2” in the BREAK statement means two breaks. The first break exits the FOR loop, and the second break exits the outer IF statement, such that the program “jumps” to the end of the main program, if I understood the referenced post correctly. The program ends, and the print terminal with the error message is shown.


Attached File(s)
.zip  PIPE2.zip (Size: 2.46 KB / Downloads: 6)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Pipe Flow - Open Channel Flow - Gene222 - 12-17-2016, 08:09 PM
RE: Pipe Flow - Open Channel Flow - Dieter - 12-18-2016, 06:17 PM
RE: Pipe Flow - Open Channel Flow - Gene222 - 01-07-2017 01:11 AM
RE: Pipe Flow - Open Channel Flow - Han - 01-10-2017, 05:47 PM



User(s) browsing this thread: 1 Guest(s)