Maps the shifted quantum number block index to the global indices [start,end).
The value of flg is set to PETSC_TRUE if the output block exists, PETSC_FALSE otherwise
- Exceptions
-
PETSC_ERR_ARG_WRONGSTATE | Object not initialized. Call Initialize() first. |
PETSC_ERR_ARG_OUTOFRANGE | Given BlockIdx is out of bounds [0, num_sectors). |
- Parameters
-
BlockIdx | Index of the quantum number block |
BlockShift | Shift in quantum number associated to the operator |
GlobIdxStart | Inclusive lower bound index |
GlobIdxEnd | Exclusive upper bound index |
flg | Indicates whether range is non-zero |
Definition at line 72 of file QuantumNumbers.cpp.
Referenced by NumStates(), QuantumNumbersIterator::OpBlockToGlobalRange(), and OpBlockToGlobalRangeStart().