这边要用到 但看不明白 问问各位 CHKTRE(ICODE)函数是什么作用的? 返回值个表示什么意思?; ?- T! i: M/ B: c( S( e
手册里给的解释如下+ ?' L5 N) Z+ {$ P
CALL CHKTRE(ICODE) ; m/ N- | d/ ]4 lIf the case contains Type 4 (or greater) buses with in-service branches then an error condition is 2 P; V F% M( Treturned. Counts number of islands not containing a Type 3 (swing) bus. It may be inappropriate to 7 z# e/ x+ u8 |% e8 i% fcall this subroutine with generators converted; since there will be no Type 3 buses, it will simply0 m0 y+ O: J2 i; u3 C
count every island (finding at least one unless there is no working case). 5 s4 c8 q% F: b w1 P, F; D3 vICODE Error code (integer output):5 E4 l- X4 T$ ~* z( X7 M8 X
0 No errors.+ U1 N- h' n4 }
-1 No in-service buses remaining.$ I$ v c7 Z6 T( J
-2 There are Type 4 buses with in-service branches connected.5 ]" [& e6 _4 F9 s% V
>0 Number of islands without a Type 3 bus. , x; M% E! @# i z6 l, F3 t" ^太谢谢了