src/IntRank2/SolidSys.cc
/* Each Spin That Is An Electron May Have An Electron G Tensor Interaction Set.
   We Don't Particularly Care If There Isn't A G Interaction Defined For Any
   Particular Electron Spin, The Vector Of Such Interactions Will Simply Have
   An Zero Values If No G Anisotropy Has Been Specified.

	   Input		ssys	: Solid spin system (this)
	   			pset	: A parameter set
	   Output		none	: System electron G interactions
	  				  are set from parameters in pset
	   Note				: It isn't mandatory that there be
	  				  any electron G interactions
	   Note				: Isotopes MUST be set prior to here.
	  				  Isotopes used to avoid confusion in
	  				  IntG over possible nuclear spins   */
Each Spin That Is An Electron May Have An Electron G Tensor Interaction Set.
We Don't Particularly Care If There Isn't A G Interaction Defined For Any
Particular Electron Spin, The Vector Of Such Interactions Will Simply Have
An Zero Values If No G Anisotropy Has Been Specified.


Each Spin That Is An Electron May Have An Electron G Tensor Interaction Set . We Don ' t Particularly Care If There Isn ' t A G Interaction Defined For Any Particular Electron Spin The Vector Of Such Interactions Will Simply Have An Zero Values If No G Anisotropy Has Been Specified .
void solid_sys::setGs(const ParameterSet& pset)
  {
  int i, ns = spins();			
  vector<Isotope> Isos = IsoVec();	
  Gvec = IntGVec(Isos, pset, 0);	
  for(i=0; i<ns; i++)			
    if(Isos[i].electron()) 		
      gfactor(i, Gvec[i].iso());
  }
void solid_sys :: setGs ( const ParameterSet & pset ) { int i , ns = spins ( ) ; vector < Isotope > Isos = IsoVec ( ) ; Gvec = IntGVec ( Isos , pset , 0 ) ; for ( i = 0 ; i < ns ; i ++ ) if ( Isos [ i ] . electron ( ) ) gfactor ( i , Gvec [ i ] . iso ( ) ) ; }
Each Spin That Is An Electron May Have An Electron G Tensor Interaction Set.
Each Spin That Is An Electron May Have An Electron G Tensor Interaction Set .
// Number of spins in system // Get vector system isotopes // Use IntGVec class constructor // Must set the isotropic g factors // as they may be set by {gxx,gyy,gzz}