If in doubt about the amount of workspace to supply to a ScaLAPACK routine, the user may choose to supply LWORK=-1 and use the returned value in WORK(1) as the correct value for LWORK. Setting LWORK=-1 does not invoke an error message from PXERBLA and is defined as a global query .