src/HSLib/SpinSystem.cc
// --------- Functions Which Get/Set Spin Pair Flags Within The System --------
Functions Which Get/Set Spin Pair Flags Within The System
Functions Which Get / Set Spin Pair Flags Within The System
void spin_system::spflags(int TF)
  {
  int s=spins();				
  int nsp = (s*s-s)/2;				
  for(int i=0; i<nsp; i++) _spflags[i] = TF;
  }
void spin_system :: spflags ( int TF ) { int s = spins ( ) ; int nsp = ( s * s - s ) / 2 ; for ( int i = 0 ; i < nsp ; i ++ ) _spflags [ i ] = TF ; }
Functions Which Get/Set Spin Pair Flags Within The System
Functions Which Get / Set Spin Pair Flags Within The System
// Input                   TF : TRUE/FALSE status // Output                none : All spin pairs  have their flags set //                              to TRUE/FALSE // Number of spins // Number of spin pairs