Cantera/src/Kinetics.h
int phaseIndex(string ph) { 
            if (m_phaseindex.find(ph) == m_phaseindex.end()) {
                return -1;
            }
            else {
                return m_phaseindex[ph] - 1;
            }
        }
/**
	 * Return the phase index of a phase in the list of phases
	 * defined within the object.
	 *
	 *  @param ph string name of the phase
	 *
	 * If a -1 is returned, then the phase is not defined in
	 * the Kinetics object.
	 */
Return the phase index of a phase in the list of phases
defined within the object.

@param ph string name of the phase

If a -1 is returned, then the phase is not defined in
the Kinetics object.
Return the phase index of a phase in the list of phases defined within the object . @param ph string name of the phase If a - 1 is returned then the phase is not defined in the Kinetics object .
int phaseIndex(string ph) { 
            if (m_phaseindex.find(ph) == m_phaseindex.end()) {
                return -1;
            }
            else {
                return m_phaseindex[ph] - 1;
            }
        }
int phaseIndex ( string ph ) { if ( m_phaseindex . find ( ph ) == m_phaseindex . end ( ) ) { return -1 ; } else { return m_phaseindex [ ph ] - 1 ; } }
Return the phase index of a phase in the list of phases
 defined within the object.
Return the phase index of a phase in the list of phases defined within the object .