src/IntRank2/IntRank2A.cc
/* Spin pair interactions, such as dipolar and hyperfine interactions, may have
   their orientation (and perhaps their strength) set by a pair of "spin" 
   coordinates. Here we read in two coordinates, one for each spin index and
   return them. Failure will occur if either spin coordinate is missing.     */
Spin pair interactions, such as dipolar and hyperfine interactions, may have
their orientation (and perhaps their strength) set by a pair of "spin"
coordinates. Here we read in two coordinates, one for each spin index and
return them. Failure will occur if either spin coordinate is missing.
Spin pair interactions such as dipolar and hyperfine interactions may have their orientation ( and perhaps their strength ) set by a pair of " spin " coordinates . Here we read in two coordinates one for each spin index and return them . Failure will occur if either spin coordinate is missing .
bool IntRank2A::getCoords(const ParameterSet& pset,
                   coord& ptI, coord& ptS, int idxI, int idxS, bool warn) const
  {
  int p1 = ptI.read(pset, idxI, warn);		
  int p2 = ptS.read(pset, idxS, warn);		
  if(p1 && p2) return true;			
  if(warn)					
    {						
    if(!p1) IR2Aerror(113, Gdec(idxI), 1);
    if(!p2) IR2Aerror(113, Gdec(idxS), 1);
    }
  return false;                                 
  }
bool IntRank2A :: getCoords ( const ParameterSet & pset , coord & ptI , coord & ptS , int idxI , int idxS , bool warn ) const { int p1 = ptI . read ( pset , idxI , warn ) ; int p2 = ptS . read ( pset , idxS , warn ) ; if ( p1 && p2 ) return true ; if ( warn ) { if ( ! p1 ) IR2Aerror ( 113 , Gdec ( idxI ) , 1 ) ; if ( ! p2 ) IR2Aerror ( 113 , Gdec ( idxS ) , 1 ) ; } return false ; }
Spin pair interactions, such as dipolar and hyperfine interactions, may have
their orientation (and perhaps their strength) set by a pair of "spin"
coordinates.
Spin pair interactions such as dipolar and hyperfine interactions may have their orientation ( and perhaps their strength ) set by a pair of " spin " coordinates .
// Try to get spin I coordinate // Try to get spin S coordinate // OK if both have been found // If not both found we will // issue warnings if desired // Could not find orientation