src/IntRank2/IntCSAVec.cc
/* These functions insure vector integrity and that access is not beyond
   the vector boundaries

	   Input		ICV	: CSA interaction vector (this)
	   			spin	: A CSA index
                                warn    : Warning level
           Output               TF      : Returns TRUE if spin is a valid
                                          interaction index, FALSE if not    */
These functions insure vector integrity and that access is not beyond
the vector boundaries

Input                ICV     : CSA interaction vector (this)
spin    : A CSA index
warn    : Warning level
Output               TF      : Returns TRUE if spin is a valid
interaction index, FALSE if not
These functions insure vector integrity and that access is not beyond the vector boundaries Input ICV : CSA interaction vector ( this ) spin : A CSA index warn : Warning level Output TF : Returns TRUE if spin is a valid interaction index FALSE if not
bool IntCSAVec::CheckCI(int spin, int warn) const
  {
  if(spin>=int(size()) || spin<0)
    {
    if(warn)
      {
      ICVerror(120, Gdec(spin), 1);
      ICVerror(121, Gdec(spin), 1);
      }
    if(warn>1) ICVfatal(24);
    return false;
    }
  return true;
  }
bool IntCSAVec :: CheckCI ( int spin , int warn ) const { if ( spin >= int ( size ( ) ) || spin < 0 ) { if ( warn ) { ICVerror ( 120 , Gdec ( spin ) , 1 ) ; ICVerror ( 121 , Gdec ( spin ) , 1 ) ; } if ( warn > 1 ) ICVfatal ( 24 ) ; return false ; } return true ; }
These functions insure vector integrity and that access is not beyond
the vector boundaries
These functions insure vector integrity and that access is not beyond the vector boundaries