9469 INTEGER NFTESTS, OUTNUM, MAXERR, NERR
9470 INTEGER IERR(*), TFAILED(*)
9471 COMPLEX CVAL(*)
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 INTEGER IBTMYPROC, IBTNPROCS, IBTMSGID
9525
9526
9527 LOGICAL COUNTING
9528 INTEGER K, NERR2, IAM, NPROCS, NTESTS
9529
9530
9531
9534
9535 IF( iam .EQ. 0 ) THEN
9536
9537
9538
9539
9540 counting = nftests .GT. 0
9541 IF( counting ) THEN
9542 ntests = nftests
9543 DO 10 k = 1, ntests
9544 tfailed(k) = 0
9545 10 CONTINUE
9546 END IF
9547
9548 CALL cprinterrs(outnum, maxerr, nerr, ierr, cval, counting,
9549 $ tfailed)
9550
9551 DO 20 k = 1, nprocs-1
9554 IF( nerr2 .GT. 0 ) THEN
9555 nerr = nerr + nerr2
9558 CALL cprinterrs(outnum, maxerr, nerr2, ierr, cval,
9559 $ counting, tfailed)
9560 END IF
9561 20 CONTINUE
9562
9563
9564
9565 IF( counting ) THEN
9566 nftests = 0
9567 DO 30 k = 1, ntests
9568 nftests = nftests + tfailed(k)
9569 30 CONTINUE
9570 END IF
9571
9572
9573
9574 ELSE
9577 IF( nerr .GT. 0 ) THEN
9580 END IF
9581 ENDIF
9582
9583 RETURN
9584
9585
9586
subroutine cprinterrs(outnum, maxerr, nerr, erribuf, errdbuf, counting, tfailed)
integer function ibtmsgid()
subroutine btrecv(dtype, n, buff, src, msgid)
integer function ibtnprocs()
integer function ibtmyproc()
subroutine btsend(dtype, n, buff, dest, msgid)