src/ESRLib/CubicSys.cc
/* This class contains a static list of possible magnetic ions that can be the
   basis of a cubic system. The functions herein allow for manipulation of the
   magnetic ion list.

     Function        Output                       Description
   ------------  -------------  ----------------------------------------
       seek        ion index    Index in list of magnetic ion input
      exists       ion symbol   True if ion specified is present in list
       known       ion symbol   True if ion specified is present in list
       
   The seek function will return -1 if the ion is not found in the list.     */
This class contains a static list of possible magnetic ions that can be the
basis of a cubic system. The functions herein allow for manipulation of the
magnetic ion list.

Function        Output                       Description

seek        ion index    Index in list of magnetic ion input
exists       ion symbol   True if ion specified is present in list
known       ion symbol   True if ion specified is present in list

The seek function will return -1 if the ion is not found in the list.
This class contains a static list of possible magnetic ions that can be the basis of a cubic system . The functions herein allow for manipulation of the magnetic ion list . Function Output Description seek ion index Index in list of magnetic ion input exists ion symbol True if ion specified is present in list known ion symbol True if ion specified is present in list The seek function will return - 1 if the ion is not found in the list .
int CubicSys::seek(const MagIon& I)
  {
  if(!CubicIons) return -1;			
  for(int i=0; i<NIons; i++)
    if(I.symbol() == CubicIons[i].symbol()) return i;
  return -1;
  }
int CubicSys :: seek ( const MagIon & I ) { if ( ! CubicIons ) return -1 ; for ( int i = 0 ; i < NIons ; i ++ ) if ( I . symbol ( ) == CubicIons [ i ] . symbol ( ) ) return i ; return -1 ; }
This class contains a static list of possible magnetic ions that can be the
basis of a cubic system.
This class contains a static list of possible magnetic ions that can be the basis of a cubic system .
// If no ions list we fail