src/IntRank2/IntGVec.cc
/* These functions allow users to fill the vector of interactions either from
   parameters found in an external ASCII file or contained in a GAMMA parameter
   set.
	   Input		IGV	: Electron G interaction vector (this)
	   			filename: Input filename
                             or pset    : Parameter set
                                idx     : Parameter index value used for
	  				  prefix [#] in parameter names
                                warn    : Warning output level
                                               0 = no warnings
                                               1 = warnings
                                              >1 = fatal warnings
	   Output		none	: Electron G interaction vector filled
	  				  with parameters read from file     */
These functions allow users to fill the vector of interactions either from
parameters found in an external ASCII file or contained in a GAMMA parameter
set.
These functions allow users to fill the vector of interactions either from parameters found in an external ASCII file or contained in a GAMMA parameter set .
bool IntGVec::read(const string &filename, int idx, int warn)
  {
  ParameterSet pset;                    
  if(!pset.read(filename, warn?1:0))    
    {                                   
    if(warn)                            
      {
      IGVerror(1, filename, 1); 	
      if(warn>1) IGVfatal(21);		
      else       IGVerror(21, 1);	
      }
    return false;
    }
  return read(pset, idx, warn);
  }
bool IntGVec :: read ( const string & filename , int idx , int warn ) { ParameterSet pset ; if ( ! pset . read ( filename , warn ? 1 : 0 ) ) { if ( warn ) { IGVerror ( 1 , filename , 1 ) ; if ( warn > 1 ) IGVfatal ( 21 ) ; else IGVerror ( 21 , 1 ) ; } return false ; } return read ( pset , idx , warn ) ; }
These functions allow users to fill the vector of interactions either from
parameters found in an external ASCII file or contained in a GAMMA parameter
set.
These functions allow users to fill the vector of interactions either from parameters found in an external ASCII file or contained in a GAMMA parameter set .
// Declare a parameter set // Try and read in pset // If we cannot read the file then // we'll issue warnings as desired //      Problems with file //      This is a fatal problem //      Or maybe it aint so bad