src/IntRank2/IntHF.cc
/* These functions will construct the interaction from parameters taken from a
   specified GAMMA parameter set. This is most useful when working with multi-
   spin systems that are setting up many interactions over the system using a
   single parameter file (or parameters read from an external ASCII file. The
   constructor using spin isotope types in conjunction with a parameter set is
   expressly for use in multispin systems (see IntHFVec & SolidSys)

       Input                HF      : Hyperfine interaction
                            pset    : Parameter set
                            idx     : Interaction index (default -1->none)
                            IdxI    : Index for spin I
                            IdxS    : Index for spin S
                            warn    : Flag to warn if no interaction found
       Output               none    : HF interaction constructed
                                      for spins with index idxI & idxS
                                      whose parameters are in pset
       Output               or      : HF interaction constructed
                                      for spins with quantum numbers qI & qS
                                      and parameters in pset                */
These functions will construct the interaction from parameters taken from a
specified GAMMA parameter set. This is most useful when working with multi
spin systems that are setting up many interactions over the system using a
single parameter file (or parameters read from an external ASCII file. The
constructor using spin isotope types in conjunction with a parameter set is
expressly for use in multispin systems


These functions will construct the interaction from parameters taken from a specified GAMMA parameter set . This is most useful when working with multi spin systems that are setting up many interactions over the system using a single parameter file ( or parameters read from an external ASCII file . The constructor using spin isotope types in conjunction with a parameter set is expressly for use in multispin systems
IntHF::IntHF(const ParameterSet& pset, int idxI, int idxS, int warn)
  {
  if(!setHFI(pset, idxI, idxS, warn?1:0))	
    {
    if(warn)					
      {						
      IHFerror(23, 1);				
      if(warn > 1) IHFfatal(2);			
      else         IHFerror(2);
      }
    }
  }
IntHF :: IntHF ( const ParameterSet & pset , int idxI , int idxS , int warn ) { if ( ! setHFI ( pset , idxI , idxS , warn ? 1 : 0 ) ) { if ( warn ) { IHFerror ( 23 , 1 ) ; if ( warn > 1 ) IHFfatal ( 2 ) ; else IHFerror ( 2 ) ; } } }
These functions will construct the interaction from parameters taken from a
specified GAMMA parameter set.
These functions will construct the interaction from parameters taken from a specified GAMMA parameter set .
// Set using parse function // If failure, warn if desired // and maybe even abort //   Insufficient pset //   Problems in construction