这边要用到 但看不明白 问问各位 CHKTRE(ICODE)函数是什么作用的? 返回值个表示什么意思?, h% M G# S6 M
手册里给的解释如下- Y4 M' @, m& D& |( o' m
CALL CHKTRE(ICODE)" F j0 w( q9 E0 T, R
If the case contains Type 4 (or greater) buses with in-service branches then an error condition is# t8 ^8 n9 f1 Q4 I. Y4 d& B
returned. Counts number of islands not containing a Type 3 (swing) bus. It may be inappropriate to 2 B# B" ^; R$ x4 D/ g' {; D& m# icall this subroutine with generators converted; since there will be no Type 3 buses, it will simply w1 b d/ q. E$ r' g# C
count every island (finding at least one unless there is no working case). # d$ c' N! R# J7 UICODE Error code (integer output):+ A$ B& Z( O7 l5 F
0 No errors. 5 P' x, o0 O1 Q4 [( ~-1 No in-service buses remaining. ; k' t6 i$ a3 C- m( N2 o-2 There are Type 4 buses with in-service branches connected.& u0 |2 W, o' }' ?3 q
>0 Number of islands without a Type 3 bus.8 C, K( X$ p0 C& `! z& G
太谢谢了