PetscErrorCode QuantumNumbers::Initialize ( const MPI_Comm &  mpi_comm_in,
const std::vector< PetscReal > &  qn_list_in,
const std::vector< PetscInt > &  qn_size_in 
)

Initializes the quantum number object.

Remarks
TODO: Consider interfacing this to the object constructor
Exceptions
PETSC_ERR_ARG_WRONGEmpty input list
PETSC_ERR_ARG_WRONGInput list sizes mismatch
Remarks
TODO:
  • Ensure that inputs are the same across entire communicator
  • Ensure that input list is complete and in descending order
  • Think about how to handle zero-sized quantum number blocks esp in the context of truncation
Parameters
mpi_comm_inMPI communicator
qn_list_inlist of quantum numbers
qn_size_insize of each quantum number block

Definition at line 9 of file QuantumNumbers.cpp.

Referenced by Block::SpinBase::Initialize().

This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.