src/ESRLib/SpinSpace.cc
/* Systems are considered equal if # spins and spin isotopes types match.
   This is irrespective of how system spin flags are set.                    */
Systems are considered equal if # spins and spin isotopes types match.
This is irrespective of how system spin flags are set.
Systems are considered equal if # spins and spin isotopes types match . This is irrespective of how system spin flags are set .
int SpinSpace::operator==(const SpinSpace& sys) const
  {
  if(this == &sys) return 1;			
  if(nspins != sys.spins()) return 0;		
  for(int i=0; i<nspins; i++)			
    if(Isotopes[i] != sys.Isotopes[i]) return 0;
  return 1;
  }
int SpinSpace :: operator == ( const SpinSpace & sys ) const { if ( this == & sys ) return 1 ; if ( nspins != sys . spins ( ) ) return 0 ; for ( int i = 0 ; i < nspins ; i ++ ) if ( Isotopes [ i ] != sys . Isotopes [ i ] ) return 0 ; return 1 ; }
Systems are considered equal if # spins and spin isotopes types match.
Systems are considered equal if # spins and spin isotopes types match .
// True if sys is this! // Fail if # spins mismatch // Insure all spin types equal