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

◆ Mindxg2p

#define Mindxg2p (   ig_,
  inb_,
  nb_,
  proc_,
  srcproc_,
  nprocs_ 
)
Value:
{ \
if( ( (ig_) >= (inb_) ) && ( (srcproc_) >= 0 ) && \
( (nprocs_) > 1 ) ) \
{ \
proc_ = (srcproc_) + 1 + ( (ig_)-(inb_) ) / (nb_); \
proc_ -= ( proc_ / (nprocs_) ) * (nprocs_); \
} \
else \
{ \
proc_ = (srcproc_); \
} \
}

Definition at line 202 of file PBtools.h.

203 { \
204 if( ( (ig_) >= (inb_) ) && ( (srcproc_) >= 0 ) && \
205 ( (nprocs_) > 1 ) ) \
206 { \
207 proc_ = (srcproc_) + 1 + ( (ig_)-(inb_) ) / (nb_); \
208 proc_ -= ( proc_ / (nprocs_) ) * (nprocs_); \
209 } \
210 else \
211 { \
212 proc_ = (srcproc_); \
213 } \
214 }