SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ sbteps()

real function sbteps

Definition at line 12557 of file blacstest.f.

12558*
12559* .. External Functions ..
12560 INTEGER IBTMYPROC, IBTNPROCS, IBTMSGID
12561 REAL SLAMCH
12563* ..
12564* .. Local Scalars ..
12565 INTEGER I, IAM, NNODES
12566 REAL EPS, EPS2
12567 SAVE eps
12568 DATA eps /-22.0e0/
12569* ..
12570* .. Executable Statements ..
12571*
12572* First time called, must get max epsilon possessed by any
12573* participating process
12574*
12575 IF( eps .EQ. -22.0e0 ) THEN
12576 iam = ibtmyproc()
12577 nnodes = ibtnprocs()
12578 eps = slamch('epsilon')
12579 IF( iam .EQ. 0 ) THEN
12580 IF( nnodes .GT. 1 ) THEN
12581 DO 10 i = 1, nnodes-1
12582 CALL btrecv( 4, 1, eps2, i, ibtmsgid()+20 )
12583 IF( eps .LT. eps2 ) eps = eps2
12584 10 CONTINUE
12585 END IF
12586 CALL btsend( 4, 1, eps, -1, ibtmsgid()+20 )
12587 ELSE
12588 CALL btsend( 4, 1, eps, 0, ibtmsgid()+20 )
12589 CALL btrecv( 4, 1, eps, 0, ibtmsgid()+20 )
12590 ENDIF
12591 END IF
12592 sbteps = eps
12593 RETURN
12594*
12595* End SBTEPS
12596*
integer function ibtmsgid()
Definition blacstest.f:1361
real function sbteps()
subroutine btrecv(dtype, n, buff, src, msgid)
Definition btprim.f:207
integer function ibtnprocs()
Definition btprim.f:81
integer function ibtmyproc()
Definition btprim.f:47
subroutine btsend(dtype, n, buff, dest, msgid)
Definition btprim.f:115
real function slamch(cmach)
Definition tools.f:867
Here is the call graph for this function:
Here is the caller graph for this function: