src/IntRank2/IntHF.cc
/* These next two read functions utilize either two spin indices or a single
   interaction index. They'll try to read the hyperfine interaction form 
   parameters found either in an ASCII file or in a GAMMA parameter set. These
   functions do NOT allow for the prefix [#] because multiple hyperfine 
   interactions can be defined in the same file by switching either the spin 
   pair indices or the interaction index.  Multiple sets of interactions can be
   read using hyperfine interaction vectors (see class IntHFVec.)                 

	// Input		HF	: Hyperfine interaction
	//			filename: Output file name
	//			pset    : Parameter set
	//			idxI	: Index for spin I or interaction
	//			idxS	: Index for spin S (default -1)
        //                      warn    : Warning output label
        //                                 0 = no warnings
        //                                 1 = warnings
        //                                >1 = fatal warnings
	// Output		none 	: Interaction read from parameters
	//				  in file or pset                    */
These next two read functions utilize either two spin indices or a single
interaction index. They'll try to read the hyperfine interaction form
parameters found either in an ASCII file or in a GAMMA parameter set. These
functions do NOT allow for the prefix [#] because multiple hyperfine
interactions can be defined in the same file by switching either the spin
pair indices or the interaction index.  Multiple sets of interactions can be
read using hyperfine interaction vectors


These next two read functions utilize either two spin indices or a single interaction index . They ' ll try to read the hyperfine interaction form parameters found either in an ASCII file or in a GAMMA parameter set . These functions do NOT allow for the prefix [ # ] because multiple hyperfine interactions can be defined in the same file by switching either the spin pair indices or the interaction index . Multiple sets of interactions can be read using hyperfine interaction vectors
bool IntHF::read(const string &filename, int idxI, int idxS, int warn)
  {
  ParameterSet pset;			
  if(!pset.read(filename, warn?1:0))	
    {                                   
    if(warn)                            
      {
      IHFerror(1, filename, 1);		
      if(warn > 1) IHFfatal(21);	
      else         IHFerror(21);	
      }
    return false;                       
    }
  return read(pset, idxI, idxS, warn);  
  }
bool IntHF :: read ( const string & filename , int idxI , int idxS , int warn ) { ParameterSet pset ; if ( ! pset . read ( filename , warn ? 1 : 0 ) ) { if ( warn ) { IHFerror ( 1 , filename , 1 ) ; if ( warn > 1 ) IHFfatal ( 21 ) ; else IHFerror ( 21 ) ; } return false ; } return read ( pset , idxI , idxS , warn ) ; }
These next two read functions utilize either two spin indices or a single
interaction index.
These next two read functions utilize either two spin indices or a single interaction index .
// Declare a parameter set // Read in pset from file // If we cannot read the file  // then issue warnings as desired //      Filename problems //      Fatal error //      or a warning issued //  Return that we failed! // User overloaded function